Orchestration, as we know, is an extremely important feature that should be available in any configuration management system. In Salt, this objective has been achieved till date by overstate. However, a new runner, called orchestrate, has been introduced in Salt to achieve the same objective in a much more efficient manner, and it replaces overstate. In this recipe, you will learn about how to use the orchestrate runner.
Configure two minions,
stgdc1web01
andstgdc1dbs01
. Configure theserver_type
grain instgdc1web01
with the valueweb
and instgdc1dbs01
asdb
.Create two new states called
nginx
andmysql
by creating directories for both in the base directory of the staging environment.Create the
/opt/salt-cookbook/staging/nginx/init.sls
file and edit it to have the following entries:nginx_package: pkg.installed: - name: nginx nginx_service: service: - name: nginx - running - enable: True - require: - pkg: nginx_package...