nmay wrote: > Hi group. > I have such construction: > node "hostname" { > $passwd = "222" > include myclass > } > > class myclass { > $passwd = "111" > I think you should have
class myclass ($passwd = "111") { file {".... > file { "/var/tmp/myclass.conf": > owner => root, > group => wheel, > mode => 640, > backup => false, > content => template("myclass.conf"), > require => file["/var/tmp"], > } > } > > and myclass.conf content is > "my_passwd="<%= passwd %>"" > -- Trevor Hemsley Infrastructure Engineer ................................................. * C A L Y P S O * Brighton, UK OFFICE +44 (0) 1273 666 350 FAX +44 (0) 1273 666 351 ................................................. www.calypso.com This electronic-mail might contain confidential information intended only for the use by the entity named. If the reader of this message is not the intended recipient, the reader is hereby notified that any dissemination, distribution or copying is strictly prohibited. * P * /*/ Please consider the environment before printing this e-mail /*/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---