SaltStack Deconstructed - Intro
image/svg+xml
SaltStack Deconstructed - Intro
salt/modules
/srv/salt/_modules
Repo:
Custom:
$ salt '*' saltutil.sync_grains
Authority
Secret
Config
Data
salt-minion
salt-master
Other
cloud_profile.conf
salt-cloud
cloud_profile.conf
Minion
salt-minion
Sd
vault
.
set
Sd
vault
.
get
Sd
vault
.
delete
Sd
vault
.
get
Ex
my_db
.
setup
Ex
cmd
.
run
Sd
rest
.
delete
Sd
env
.
set
Sd
vault
.
get
salt/sdb
/srv/salt/_sdb
Repo:
Custom:
$ salt '*' saltutil.sync_sdb
version: '1.2.3'
host: dev
password: devpassword
/srv/pillar/config.sls
Master
Minion
salt-minion
salt-master
Pi
mysql
.
ext_pillar
/srv/pillar/top.sls
Pi
cmd_json
.
ext_pillar
Pi
libvirt
.
ext_pillar
Pi
mysql
.
ext_pillar
salt/pillar
/srv/salt/_pillar
Repo:
Custom:
$ salt '*' saltutil.sync_pillar
id: minion1
num_cpus: 4
salt-minion
mdadm
G
[...]
num_cpus
G
4
id
G
minion1
data_dev
G
/dev/sda
minion.d/grains.conf
Minion
salt-minion
Gr
mdadm
.
mdadm
Gr
metadata
.
metadata
Gr
mdadm
.
mdadm
Gr
core
.
core
salt/grains
/srv/salt/_grains
Repo:
Custom:
$ salt '*' saltutil.sync_grains
1
Start
pillar
sdb
End