diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-04 14:21:10 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-04 14:21:10 -0300 |
commit | fae36b34411860f7c68a2a21b5f94de5d4b598d2 (patch) | |
tree | bcc93a0be25fb0e8791e520bc9380e9927839099 /templates/puppet | |
parent | fb4dca646656a3bd5485de859b477b3d5d8800a3 (diff) | |
download | puppet-bootstrap-fae36b34411860f7c68a2a21b5f94de5d4b598d2.tar.gz puppet-bootstrap-fae36b34411860f7c68a2a21b5f94de5d4b598d2.tar.bz2 |
Configurator refactor
Diffstat (limited to 'templates/puppet')
-rw-r--r-- | templates/puppet/nodes.pp.erb | 20 |
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 -%> |