Various salt states, mainly for convenience, and ease of setup in a Ubuntu- based development environment.
One quick and easy possible way to use these states, is by running salt masterless. For a full reference see saltstack docs:
Note that you may have to allow pip based installs when you run install_salt.sh, i.e. include the -P flag:
$ sudo sh install_salt.sh -POnce you're setup with salt:
$ sudo mkdir /srv/ionics
$ sudo chown -R `id -un`:`id -gn` /srv/ionics
$ git clone <your_fork> /srv/ionicsEdit /etc/salt/minion, so that at a minimum, it has similar settings as
those in the minimalistic example minion file provided in this repo.
Pay attention to the grains setting, such so that user and group are set
to your user id name and group name (i.e.: id -un and id -gn).
Once set, you can check that the grains are porperly set:
$ sudo salt-call grains.get user
local:
# same as output of id -un
$ sudo salt-call grains.get group
local:
# same as output of id -gnTo apply the states:
$ sudo salt-call --local -l debug state.highstate