Master Module - Initial Skeleton

This commit is contained in:
Mike Reeves
2018-05-29 16:40:48 -04:00
parent caef8d2da4
commit 05b63a1495
3 changed files with 17 additions and 1 deletions

View File

@@ -3,4 +3,4 @@ static:
ntpserver: ntpserver:
homenet: homenet:
proxy: proxy:
masterupdate: masterupdate:

View File

@@ -2,7 +2,9 @@ base:
'G@role:so-sensor': 'G@role:so-sensor':
- sensors.schedule - sensors.schedule
- sensors.{{ grains.host }} - sensors.{{ grains.host }}
- static
'G@role:so-master': 'G@role:so-master':
- masters.schedule - masters.schedule
- masters.{{ grains.host }} - masters.{{ grains.host }}
- static

View File

@@ -12,3 +12,17 @@
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
{% 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 %}