object_hostgroup.conf.erb 954 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * WARNING: This hostgroup definition is automatically generated by Puppet.
  3. * ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN!
  4. */
  5. /**
  6. * A hostgroup definition. You can create your own configuration files
  7. * in the conf.d directory (e.g. one per host). By default all *.conf
  8. * files in this directory are included.
  9. *
  10. */
  11. object HostGroup "<%= @object_hostgroup_name %>" {
  12. <%#- If any of the @ parameters are undefined, don't print anything for them: -%>
  13. <%- if @template_to_import -%>
  14. <%#- Otherwise, include the parameter: -%>
  15. import "<%= @template_to_import -%>"
  16. <%- end -%>
  17. <%- if @display_name -%>
  18. display_name = "<%= @display_name -%>"
  19. <%- end -%>
  20. <%- if @groups.length != 0 -%>
  21. groups = [ <%- @groups.each do |group| -%> "<%= group %>", <%- end -%>]
  22. <%- end -%>
  23. <%- if @assign_where -%>
  24. assign where <%= @assign_where %>
  25. <%- end -%>
  26. <%- if @ignore_where -%>
  27. ignore where <%= @ignore_where %>
  28. <%- end -%>
  29. }