I ended up having to use $hostname not braces, nothing, weird
On Fri, Aug 5, 2011 at 12:54 AM, Denmat <tu2bg...@gmail.com> wrote: > Hi, > > You can use facts supplied by facter to do the following (assuming you want > to do this for host with hostname host1). > > > puppet:///files/configuration_files/${hostname}/mystuff/test.sh', > > > You can also assign variables easily like: > $host = 'host1' > > And then use $host in your source statement. Depends on exactly what you > want to do. > > The puppet docs cover all this very well. > > Cheers, > Den > > On 05/08/2011, at 15:31, octomeow <octom...@gmail.com> wrote: > > > Hi > > > > I have a very simple manifest > > > > file { '/mystuff/test.sh': > > ensure => file, > > mode => 0755, > > source => 'puppet:///files/configuration_files/host1/mystuff/ > > test.sh', > > } > > > > I would like to define the "host1" as a variable while fetching from > > the puppetmaster > > How can I do that? > > > > -- > > 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. > > > > -- > 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. > > -- 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.