State system (High State & Low State) in SALT STACK:
For this example we are using top.sls and httpd_require.sls wihch contain, # cat top.sls base: '*': - httpd_require root@ranjith1:/srv/salt# cat httpd_require.sls install_httpd: pkg.installed: - name: httpd service.running: - name: httpd - enable: True - require: - file: install_httpd file.managed: - name: /var/www/html/index.html - source: salt://index1.html - user: root - group: root - mode: 644 - require: - pkg: install_httpd High state: We can see all the aspects of high state system while working with state files( .sls), There are three specific components. - High data: - SLS file: - High State - Each individual State represents a piece of high data. - for example: file.managed: - name: /var/www/html/index.html - source: salt://index1.html - user: root - group: root - mode: 644 - require: - pkg: install_httpd - Salt will compile all relevant SLS inside the top.sls, When these files are tied tog