January 2017
Intermediate to advanced
258 pages
4h 53m
English
We will be using SaltStack to apply configuration management on both our Jenkins and demo-app web server nodes. We will be using Grains to define which States/Pillars apply to which host. Let us have a look at the code:
The top file shows us that some states are shared between all hosts/roles while others are assigned based on the role:
base:
'*':
- users
- yum-s3
'roles:jenkins':
- match: grain
- jenkins
- nginx.jenkins
- docker
- packer
'roles:demo-app':
- match: grain
- php-fpm
- nginx.demo-app
- demo-app
You are already familiar with the users and the yum-s3 States. Now this ...
Read now
Unlock full access