Salt Notes.md 1.0 KB

Salt Notes.md

Salt is the configuration management tool


My first section 02/02/2020

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 10/20/2019

_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


Highstate 11/20/2019

Cron job for state.apply ( DISABLED DURING REFACTOR ) 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


Test salt master

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