While minimal configuration needs to be done to get Salt up and running, there are an extensive amount of configuration options that allow us to change how Salt performs and how it behaves. One of these changes is that we can set a git backend so our Salt states and formulas are under version control. In this hands-on lab, we’ll use Salt’s configuration options to set up a git backend for use with our Salt master.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Prepare the Master
- Install pygit2.
- Install Salt on the master.
- Configure Salt
- Update the master configuration to use the
gitfs
backend. - Add the git remote (https://github.com/linuxacademy/content-salt-project-base.git).
- Restart the master.
- Update the master configuration to use the
- Test the Configuration
- Install Salt on the minion.
- Run a highstate (
salt 'dev' state.highstate
).