Re: [Puppet Users] Re: Puppet 4.0 Future Parser, Variable Case

2014-11-26 Thread Matthew Walster
On 26 November 2014 at 21:52, R.I.Pienaar wrote: > puppet apply -e '$FooBar="1" notice($FooBar)' --parser=future > Error: Illegal variable name, The given name 'FooBar' does not conform to > the naming rule /^((::)?[a-z]w*)*((::)?[a-z_]w*)$/ at line 1:1 > > Which is weird because 'fooBar' also do

Re: [Puppet Users] Re: is there anyway to merge two facts into single one

2014-11-26 Thread Spriya
Hi, I tried that also whether the fact is returing nil or by writing into separate facts Here is the code: Facter.add("java_foundversion#{java_count}_foundversion") do setcode do java_version[1] end end #end #end #end #end Facter.add("java_foundversion#{java_count}_path") do setcode do

Re: [Puppet Users] Re: is there anyway to merge two facts into single one

2014-11-26 Thread Zachary Stern
If that's happening, then one of the facts must be returning nil. On Wed, Nov 26, 2014 at 10:25 AM, Spriya wrote: > Hi, > > When i am concatenating using your method. Its only returning one values. > It should have version in front of path > > Facter.add("java_foundversion#{java_count}_foundver

[Puppet Users] Re: is there anyway to merge two facts into single one

2014-11-26 Thread Spriya
Hi, When i am concatenating using your method. Its only returning one values. It should have version in front of path Facter.add("java_foundversion#{java_count}_foundversion#{java_count}_path") do setcode do java_version[1] + java_path end end The output of facts /opt/puppet/bin/facter

[Puppet Users] Austin Puppet Users Group - Onsite #Puppethack event and last meetup of 2014

2014-11-26 Thread Byron Miller
@ATXPUG has gotten off to a great start this year and I would like to invite everyone to join us for our last two meet ups of the year! December 4th 2014 - ATXPUG will be doing an on-site collaborative effort with the #puppethack online hackday at HomeAway. There will be food, lunch, coffee a

Re: [Puppet Users] Re: Puppet 4.0 Future Parser, Variable Case

2014-11-26 Thread R.I.Pienaar
- Original Message - > From: "jcbollinger" > To: "puppet-users" > Sent: Wednesday, November 26, 2014 1:47:41 PM > Subject: [Puppet Users] Re: Puppet 4.0 Future Parser, Variable Case > On Tuesday, November 25, 2014 7:38:09 PM UTC-6, Matthew Walster wrote: >> >> There seems to be a littl

[Puppet Users] Re: Puppet 4.0 Future Parser, Variable Case

2014-11-26 Thread jcbollinger
On Tuesday, November 25, 2014 7:38:09 PM UTC-6, Matthew Walster wrote: > > There seems to be a little ambiguity in the documentation for the future > parser, I was wondering if someone could clear this up for me -- I'm > referencing > https://docs.puppetlabs.com/puppet/latest/reference/experim

Re: [Puppet Users] hiera lookup , extract one element

2014-11-26 Thread Felix Frank
Hi, please note that create_resources('iis::manage_site', hiera_hash('iis::sites', [])) is not the most atomic way of looking up hiera data at all. You could do the same thing like this: $sites = hiera('iis::sites', {}) create_resources('iis::manage_site', $sites) This gives you the advantage

Re: [Puppet Users] Hi Team

2014-11-26 Thread Denmat
Hi, You need: puppet:///modules/... https://docs.puppetlabs.com/guides/file_serving.html for details. Den > On 26 Nov 2014, at 17:43, Jegadeesh Kumar wrote: > > source => "puppet://modules/files/etc/motd" -- You received this message because you are subscribed to the Google G

[Puppet Users] Setting a fact based on an included role (class)

2014-11-26 Thread Rabbie Zalaf
Hi All, I am building a cluster of nodes in a master-less configuration. I wanted to ask for some assistance in setting a fact based on an included role, early on in the configuration so that this fact is available for all profiles further down the deployment track. I have the necessary config

[Puppet Users] Puppet 4.0 Future Parser, Variable Case

2014-11-26 Thread Matthew Walster
There seems to be a little ambiguity in the documentation for the future parser, I was wondering if someone could clear this up for me -- I'm referencing https://docs.puppetlabs.com/puppet/latest/reference/experiments_future.html : "Variable names may not contain capital letters. They are limi

[Puppet Users] Hi Team

2014-11-26 Thread Jegadeesh Kumar
I am a new bee in puppet world. I wrote one class to copy a file from puppet master to puppet agent. i puppet client says following error. Error: /Stage[main]/Motd/File[motd]: Could not evaluate: Could not retrieve file metadata for puppet://modules/files/etc/motd: getaddrinfo: Temporary fai