Peter Foley
2012-Apr-24 21:14 UTC
[Puppet Users] Can you check a setting set in puppet.conf from within a module
Hi List, In a module that I am developing I would like to do different things depending on if storeconfigs is true or false. Is there any way to: if $storeconfigs == true { # Use stored config values } else { # Use non stored config values } Thanks, Peter. -- 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.
Gary Larizza
2012-Apr-24 22:56 UTC
Re: [Puppet Users] Can you check a setting set in puppet.conf from within a module
Hey Peter, You should be able to do $settings::storeconfigs to get that value. On Tue, Apr 24, 2012 at 2:14 PM, Peter Foley <peter@ifoley.id.au> wrote:> Hi List, > > In a module that I am developing I would like to do different things > depending on if storeconfigs is true or false. > > Is there any way to: > > if $storeconfigs == true { > # Use stored config values > } else { > # Use non stored config values > } > > Thanks, > > Peter. > > -- > 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. >-- Gary Larizza Professional Services Engineer Puppet Labs -- 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.
Peter
2012-Apr-25 07:30 UTC
[Puppet Users] Re: Can you check a setting set in puppet.conf from within a module
Hi Gary, Thank you very much! I thought it may have been a scoping issue! Peter. On Apr 25, 8:56 am, Gary Larizza <g...@puppetlabs.com> wrote:> Hey Peter, > > You should be able to do $settings::storeconfigs to get that value. > > > > > > > > > > On Tue, Apr 24, 2012 at 2:14 PM, Peter Foley <pe...@ifoley.id.au> wrote: > > Hi List, > > > In a module that I am developing I would like to do different things > > depending on if storeconfigs is true or false. > > > Is there any way to: > > > if $storeconfigs == true { > > # Use stored config values > > } else { > > # Use non stored config values > > } > > > Thanks, > > > Peter. > > > -- > > 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. > > -- > > Gary Larizza > Professional Services Engineer > Puppet Labs-- 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.
Dan Carley
2012-May-04 07:08 UTC
Re: [Puppet Users] Re: Can you check a setting set in puppet.conf from within a module
On 25 April 2012 08:30, Peter <peter@ifoley.id.au> wrote:> Hi Gary, > > Thank you very much! I thought it may have been a scoping issue! > > Peter. > > On Apr 25, 8:56 am, Gary Larizza <g...@puppetlabs.com> wrote: > > Hey Peter, > > > > You should be able to do $settings::storeconfigs to get that value. >Speaking of scope, you probably want to use $::settings::storeconfigs -- 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.