Advertisement
Guest User

Untitled

a guest
Mar 10th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. {% set nagiosadmin_password = salt['pillar.get']('nagios:nagiosadmin_password') %}
  2.  
  3. # show error if must-have password is not set
  4. nagios_test_is_nagiosadmin_password_set:
  5. {% if nagiosadmin_password %}
  6. test.succeed_without_changes
  7. {% else %}
  8. test.fail_without_changes
  9. {% endif %}
  10.  
  11. nagios_debconf:
  12. debconf.set:
  13. - name: nagios3-cgi
  14. - data:
  15. 'nagios3/adminpassword' : { 'type' : 'string', 'value' : '{{ nagiosadmin_password }}' }
  16. 'nagios3/adminpassword-repeat' : { 'type' : 'string', 'value' : '{{ nagiosadmin_password }}' }
  17. - require:
  18. - test: nagios_test_is_nagiosadmin_password_set
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement