User Tools

Site Tools


Sidebar






newpage

linux:saltstack

This is an old revision of the document!


Table of Contents

Saltstack

infrastructure management, configuration management, orchestration & remote execution

Here are some tricks, because the documentation is a bit …dense, structured strange and incomplete..

gitfs

You can use a local repository to store states, but it must be a *bare* repository.

Salt refreshes the cache by default every 60 seconds!

# create bare repository:
mkdir -p /srv/repos/salt/states
git init --bare
# clone it somewhere and add your states:
git clone file:///srv/repos/salt/states
# ...
git add .
git commit
git push

Salt master configuration:

fileserver_backend:
  - git
gitfs_remotes:
  - file:///root/salt/states
linux/saltstack.1481231578.txt.gz · Last modified: 2016/12/08 22:12 by tkilla