init.yml 794 B

12345678910111213141516171819202122232425262728
  1. classes:
  2. - default.users
  3. - default.motd
  4. - default.empty
  5. states:
  6. - openssh
  7. pillars:
  8. default:
  9. network:
  10. dns:
  11. {% if __grains__['os'] == 'should_never_match' %}
  12. srv1: 192.168.0.1
  13. srv2: 192.168.0.2
  14. domain: example.com
  15. {% endif %}
  16. ntp:
  17. srv1: 192.168.10.10
  18. srv2: 192.168.10.20
  19. test_list:
  20. - a: ${default:network:ntp:srv1}
  21. - ${default:network:ntp:srv2}
  22. test_str: ${motd:text}
  23. test_str_var_first: ${default:network:ntp:srv2} is the second ntp srv
  24. test_str_var_not_first: The second ntp server is ${default:network:ntp:srv2}
  25. test_str_var_middle: The second ntp server - ${default:network:ntp:srv2} - is broken
  26. test_str_multiple_var: 'There is 2 NTP server: ${default:network:ntp:srv1} and ${default:network:ntp:srv2}'