salt-ssh -c configdir '*cron*' -i --state-output=mixed --roster-file configdir/roster state.sls clobber_minion_master
[ERROR ] An Exception occurred while executing state.sls: [Errno 13] Permission denied: '/opt/salt/running_data/var'
cron-1:
An Exception occurred while executing state.sls: [Errno 13] Permission denied: '/opt/salt/running_data/var'
The state itself is just a file.managed:
# The minion_master needs to be overwritten when we replace a
# saltmaster Trying to manage a file directly from salt-ssh using
# e.g. file.manage_file is just difficult and seems to be
# having a hard time finding a file via a salt://somefile url.
#
# This should simplify the matter
/etc/salt/pki/minion/minion_master.pub:
file.managed:
- source: salt://clobber_minion_master/assets/minion_master.pub
- user: root
- group: root
- mode: 0755