Is it possible to use a date variable in /etc/puppet/ manifests.site.pp? I would like to put it in File { backup => @@.<date format>@@ } -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Aug 17, 2010, at 5:07 AM, matonb wrote:> Is it possible to use a date variable in /etc/puppet/ > manifests.site.pp? > > I would like to put it in > > File { backup => @@.<date format>@@ }There may be a cleaner way, but you could definitely accomplish that with an inline template. http://docs.puppetlabs.com/references/latest/function.html#inline_template -- Rob McBroom <http://www.skurfer.com/> -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks for the pointer Rob, the link on the page you referenced for the templating docs (http://docs.puppetlabs.com/trac/puppet/wiki/ PuppetTemplating) is unfortuantely broken! On Aug 17, 1:16 pm, Rob McBroom <mailingli...@skurfer.com> wrote:> On Aug 17, 2010, at 5:07 AM, matonb wrote: > > > Is it possible to use a date variable in /etc/puppet/ > > manifests.site.pp? > > > I would like to put it in > > > File { backup => @@.<date format>@@ } > > There may be a cleaner way, but you could definitely accomplish that with an inline template. > > http://docs.puppetlabs.com/references/latest/function.html#inline_tem... > > -- > Rob McBroom > <http://www.skurfer.com/>-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Aug 17, 2010, at 8:38 AM, matonb wrote:> Thanks for the pointer Rob, the link on the page you referenced for > the templating docs (http://docs.puppetlabs.com/trac/puppet/wiki/ > PuppetTemplating) is unfortuantely broken!A lot of them are since the migration. You can find it on the main docs site, though. http://docs.puppetlabs.com/guides/templating.html -- Rob McBroom <http://www.skurfer.com/> It''s not that I think guns, drugs, prostitution, swimming, eating and reading should be legal. It''s just that no one on Earth has the authority to make them illegal. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
matonb wrote:> Thanks for the pointer Rob, the link on the page you referenced for > the templating docs (http://docs.puppetlabs.com/trac/puppet/wiki/ > PuppetTemplating) is unfortuantely broken! >This is fixed in the next release. When we regenerate the documentation for 2.6.1 the correct link will be displayed. Thanks James Turnbull -- Puppet Labs - http://www.puppetlabs.com C: 503-734-8571 -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.