Salt Master

Note

A Salt master starts life as a minion.

To create the minion (which will become a master), follow the instructions in Salt Cloud - Install (Legacy Notes), followed by Digital Ocean or Rackspace

Log into your new master server as root

Install

Install salt master:

apt update
apt install salt-master

Configuration

vim /etc/salt/master
# uncomment the following lines:
# file_roots:
#   base:
#     - /srv/salt

# and uncomment the following lines:
# pillar_roots:
#   base:
#     - /srv/pillar

Then re-start the salt master:

systemctl restart salt-master.service

Check out the sls and pillar files from your repository so they are in the following folder structure:

├── srv
│   ├── pillar
│   │   ├── db
│   │   ├── global
│   │   ├── README.rst
│   │   ├── service
│   │   ├── sites
│   │   └── top.sls
│   ├── salt
│   │   ├── db
│   │   ├── default
│   │   ├── devpi
│   │   ├── nginx
│   │   ├── README.rst
│   │   ├── solr
│   │   ├── ssh
│   │   ├── supervisor
│   │   ├── top.sls
│   │   ├── uwsgi
│   │   └── web
│   └── ssl

Provision

The Salt pillar should be set-up to install the services you require for your master e.g:

base:
  'master':
    - global.yourcompany.users
    - service.yourcompany.devpi

To set-up your master, follow the instructions in Salt - Provision remembering to use localhost as the IP address of the master.