SaltStack Deconstructed - Intro
image/svg+xml
SaltStack Deconstructed - Intro
salt/modules
/srv/salt/_modules
Repo:
Custom:
$ salt '*' saltutil.sync_grains
Ex
cp
.
get_file
Ex
file
.
user_to_uid
Ex
file
.
file_exists
Ex
cmd
.
run_all
Ex
git
.
clone
Ex
git
.
current_branch
Ex
git
.
rev_parse
Ex
git
.
checkout
Ex
git
.
status
St
git
.
cloned
+
/srv/salt/svc.sls
St
service
.
running
/srv/salt/pkg.sls
St
pkg
.
installed
St
git
.
cloned
St
service
.
running
St
pkg
.
installed
$ salt '*' saltutil.sync_states
$ salt '*' selinux.setenforce 0
$ salt '*' http.query ...
$ salt '*' lvs.add_server ...
$ salt '*' test.ping
$ salt '*' cmd.run 'touch /file'
Ex
git
.
clone
Ex
test
.
ping
Ex
cmd
.
run
$ salt '*' saltutil.sync_modules
1
Start
state
End