aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/puppet/nodes.pp.erb20
1 files changed, 14 insertions, 6 deletions
diff --git a/templates/puppet/nodes.pp.erb b/templates/puppet/nodes.pp.erb
index 15290d8..4acddc6 100644
--- a/templates/puppet/nodes.pp.erb
+++ b/templates/puppet/nodes.pp.erb
@@ -1,6 +1,14 @@
-import "nodes/<%= hostname %>.pp"
-import "nodes/<%= hostname %>-master.pp"
-import "nodes/<%= hostname %>-proxy.pp"
-import "nodes/<%= hostname %>-web.pp"
-import "nodes/<%= hostname %>-storage.pp"
-import "nodes/<%= hostname %>-test.pp"
+#
+# Node definitions.
+#
+
+<%- if first_nodes == 'present' then -%>
+import "nodes/<%= first_hostname %>.pp"
+import "nodes/<%= first_hostname %>-master.pp"
+import "nodes/<%= first_hostname %>-proxy.pp"
+import "nodes/<%= first_hostname %>-web.pp"
+import "nodes/<%= first_hostname %>-storage.pp"
+import "nodes/<%= first_hostname %>-test.pp"
+<%- else -%>
+#import "nodes/example.pp"
+<%- end -%>