Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set nagiosadmin_password = salt['pillar.get']('nagios:nagiosadmin_password') %}
- # show error if must-have password is not set
- nagios_test_is_nagiosadmin_password_set:
- {% if nagiosadmin_password %}
- test.succeed_without_changes
- {% else %}
- test.fail_without_changes
- {% endif %}
- nagios_debconf:
- debconf.set:
- - name: nagios3-cgi
- - data:
- 'nagios3/adminpassword' : { 'type' : 'string', 'value' : '{{ nagiosadmin_password }}' }
- 'nagios3/adminpassword-repeat' : { 'type' : 'string', 'value' : '{{ nagiosadmin_password }}' }
- - require:
- - test: nagios_test_is_nagiosadmin_password_set
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement