From 17a9aeb84797a6b76d8a07cf27957909aacaacb3 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 6 Dec 2022 20:34:13 +0100 Subject: [PATCH] updated salt_minion state --- states/salt_minion/defaults.yaml | 18 +++++++----------- states/salt_minion/install.sls | 6 ++++++ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/states/salt_minion/defaults.yaml b/states/salt_minion/defaults.yaml index fc44ffc..4a61af2 100644 --- a/states/salt_minion/defaults.yaml +++ b/states/salt_minion/defaults.yaml @@ -2,14 +2,10 @@ salt_minion: enabled: true version: 3005.1 - config: - master: salt.paulbsd.com - #ping_interval: 1 - ## hash_type: sha256 - #state_verbose: 'True' - #tcp_keepalive: 'True' - #tcp_keepalive_idle: 300 - #random_reauth_delay: 60 - #recon_default: 1000 - #recon_max: 10000 - #recon_randomize: 'True' + deps: + - redis + - ovh + - pynetbox + - cherrypy + - gitdb + config: {} diff --git a/states/salt_minion/install.sls b/states/salt_minion/install.sls index 3326b6a..6dbfa83 100644 --- a/states/salt_minion/install.sls +++ b/states/salt_minion/install.sls @@ -3,3 +3,9 @@ salt-minion-install: pip.installed: - name: salt=={{ salt_minion.version }} + +{% for dep in salt_minion.deps %} +salt-minion-install-{{ dep }}: + pip.installed: + - name: {{ dep }} +{% endfor %}