MDR Salt Notes.md 918 B

MDR Salt Notes.md

Deploying Salt event monitoring for Splunk

  1. push new git files
  2. sync_all
  3. refresh_pillar
  4. salt state for updating minions config


Custom grains _grains/mdr_environment.py This file discovers which aws account the ec2 instnace is in. grain is called mdr_environment but it is broken on salt master, the minion has a static file /etc/salt/grains saltutil.sync_grains


Cron job for state.apply salt manages a cron job on the master


salt-minion reactor when a salt-minion restarts the reactor kicks off a state.apply. This causes a notification when the salt-minion starts up and you try to apply a state.


gitfs lock file /var/cache/salt/master/gitfs/gitfs-base-msoc/.git/update.lk


Switch branch on test salt-master for testing salt-run fileserver.update salt-run fileserver.file_list | grep mystuff