Puppet Muppet
2013-Nov-16 18:13 UTC
[Puppet Users] site.pp Does include work inside a node definition?
Hi, Is it possible to use Include as I have done below, inside my node statement? I''m guessing not as it''s not working :) Any ideas how I get my test.pp manifest so that it only applys to my puppetagent001? #site.pp node ''puppetagent001'' { include test file {''/tmp/puppet-test-node-def'': ensure => present, content => "Hello World!", } } #test.pp class test file {''/tmp/puppet-test'': ensure => present, content => "Hello World!", } } Many thanks, PM -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1c3e82cc-c972-4fb6-91ae-71ee41bb37fd%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Puppet Muppet
2013-Nov-17 15:58 UTC
[Puppet Users] Re: site.pp Does include work inside a node definition?
OK got it working! On Saturday, November 16, 2013 6:13:04 PM UTC, Puppet Muppet wrote:> > > Hi, > > Is it possible to use Include as I have done below, inside my node > statement? > I''m guessing not as it''s not working :) > > Any ideas how I get my test.pp manifest so that it only applys to my > puppetagent001? > > > #site.pp > node ''puppetagent001'' { > include test > file {''/tmp/puppet-test-node-def'': > ensure => present, > content => "Hello World!", > } > } > > > #test.pp > class test > file {''/tmp/puppet-test'': > ensure => present, > content => "Hello World!", > } > } > > > Many thanks, > PM >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/790e75e8-6864-47a0-b9a4-d729d143866b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
jcbollinger
2013-Nov-18 15:10 UTC
[Puppet Users] Re: site.pp Does include work inside a node definition?
On Saturday, November 16, 2013 12:13:04 PM UTC-6, Puppet Muppet wrote:> > > Hi, > > Is it possible to use Include as I have done below, inside my node > statement? >For the record, yes, the ''include'' statement can be used inside node definitions. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/45dcd5bf-97cf-4aa0-bcfc-60c6dc2cc93f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.