Hi list, is it possible to add a system variable like config_version to a template? -- Cheers, Daniel -- 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.
Am 16.03.2010 17:16, schrieb Daniel Kerwin:> is it possible to add a system variable like config_version to a template?I don''t understand your question? What do you mean with "system variable"? Facts? Manifest variables? Do you want just to *use* variables in templates? Do you want to set them from templates (which would I consider as bad idea)? Cheers Christian -- Dipl.-Inf. Christian Kauhaus <>< · mail/jabber: kc@gocept.com gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 11 · fax +49 345 1229889 1 Zope and Plone consulting and development -- 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.
I want add the content of puppet.conf''s variable config_version to a template. Currently I use a generate statement and it would be great to get rid of the duplicate code On 3/17/10, Christian Kauhaus <kc@gocept.com> wrote:> Am 16.03.2010 17:16, schrieb Daniel Kerwin: >> is it possible to add a system variable like config_version to a template? > > I don''t understand your question? What do you mean with "system variable"? > Facts? Manifest variables? > > Do you want just to *use* variables in templates? Do you want to set them > from templates (which would I consider as bad idea)? > > Cheers > > Christian > > -- > Dipl.-Inf. Christian Kauhaus <>< · mail/jabber: kc@gocept.com > gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany > http://gocept.com · tel +49 345 1229889 11 · fax +49 345 1229889 1 > Zope and Plone consulting and development > > -- > 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. > >-- Sent from Google Mail for mobile | mobile.google.com Cheers, Daniel -- 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 Wed, Mar 17, 2010 at 5:17 AM, Daniel Kerwin <daniel@linuxaddicted.de> wrote:> I want add the content of puppet.conf''s variable config_version to a > template. Currently I use a generate statement and it would be great > to get rid of the duplicate codeYou could search through through the source and see what object instance is being used by the logging system then see if that instance is in scope when your templates are compiled, but this doesn''t sound like a very clean or robust solution to me. -Jeff -- 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.