From 05b63a14950d21e43b9dad9e5f44c359a21bbb87 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Tue, 29 May 2018 16:40:48 -0400 Subject: [PATCH] Master Module - Initial Skeleton --- pillar/static/example.sls | 2 +- pillar/top.sls | 2 ++ salt/master/init.sls | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pillar/static/example.sls b/pillar/static/example.sls index 6cfc6bee6..2f1fdb178 100644 --- a/pillar/static/example.sls +++ b/pillar/static/example.sls @@ -3,4 +3,4 @@ static: ntpserver: homenet: proxy: - masterupdate: + masterupdate: diff --git a/pillar/top.sls b/pillar/top.sls index 555e2be48..53c3ba411 100644 --- a/pillar/top.sls +++ b/pillar/top.sls @@ -2,7 +2,9 @@ base: 'G@role:so-sensor': - sensors.schedule - sensors.{{ grains.host }} + - static 'G@role:so-master': - masters.schedule - masters.{{ grains.host }} + - static diff --git a/salt/master/init.sls b/salt/master/init.sls index 6b30fcbf1..be522c30e 100644 --- a/salt/master/init.sls +++ b/salt/master/init.sls @@ -12,3 +12,17 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . + +{% set masterproxy = salt['pillar.get']('static:masterupdate', '0') %} + +{% if masterproxy == 1 %} + +# Create the config directory for apt-cacher-ng +# Copy the config +# Install the apt-cacher-ng container + +# Create the config directory for the docker registry +# Copy the config +# Install the registry container + +{% endif %}