cleanup salt more strict
* finally satisfy salt - add virt-what pkg by default for all.
* set default log_file: /var/log/salt/(minion|master)
For some reason salt 2017.7.5+ds-1 ignore default values and stuck after
restart with
2018-07-19 20:04:04,811 [salt.log.setup :1145][ERROR ][32030] An un-handled exception was caught by salt's global exception handler:
IOError: [Errno 9] Bad file descriptor
IOError: [Errno 9] Bad file descriptor
Change-Id: I276e410a86ba8f8ad8f68b110a90408558800d70
diff --git a/mirror-image/files/root/minion.conf b/mirror-image/files/root/minion.conf
index 24aba72..15345f7 100644
--- a/mirror-image/files/root/minion.conf
+++ b/mirror-image/files/root/minion.conf
@@ -4,37 +4,6 @@
max_event_size: 100000000
-grains:
- roles:
- - iptables.service
- - telegraf.agent
- - heka.log_collector
- - openssh.server
- - ntp.client
- - grafana.collector
- - nginx.server
- - prometheus.collector
- - rsyslog.client
- - linux.storage
- - linux.network
- - linux.system
- - salt.minion
- - aptly.publisher
- - aptly.server
- services:
- - iptables
- - telegraf
- - heka
- - openssh
- - ntp
- - grafana
- - nginx
- - prometheus
- - rsyslog
- - linux
- - salt
- - aptly
-
grains_dirs:
- /var/lib/salt/grains
@@ -43,5 +12,7 @@
grains.items: []
mine_interval: 60
-log_level: info
+log_file: /var/log/salt/minion
+log_level_logfile: warning
+
state_output: changes