[Puppet Users] Re: How to add user in centos 6.6 from puppetserver to puppetAgent

2015-08-12 Thread Huynh Tran
Thank you! I have the code in ../manifestss/site.pp: user {'testuser': ensure => 'present', comment => 'testuser', # gid => '500', # home => '/home/testuser', managehome => true, # password => '$6$L41Vuii1$MVPd0RAeVTopbm4sgFp1dwTvP3cyY//.8jQs3xvdUKtNbCthRcVCvxSHwhG0w.blW8V2KPaY7HhFkGApVcm1o0', #

Re: [Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2015-08-12 Thread Ken Barber
> Can you help with this query? I am trying to get 2 facts from all of our > puppet clients in PuppetDB. > I tried variations of the following, but no luck: ('["or", ["=", "name", > "kernelversion"], ["=", "name", "instance_uuid"]]') For me this query works. Here is the full curl example in the l

Re: [Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2015-08-12 Thread robert keating
Can you help with this query? I am trying to get 2 facts from all of our puppet clients in PuppetDB. I tried variations of the following, but no luck: ('["or", ["=", "name", "kernelversion"], ["=", "name", "instance_uuid"]]') Thank you! On Tuesday, September 3, 2013 at 11:09:19 AM UTC-7, Ken

Re: [Puppet Users] [Style Guide] No recommendation about quoting or not element of an enumerable set of options

2015-08-12 Thread Johan De Wit
Hi, For me, it has become a habit to NOT use qoutes with enumarable sets of options. puppet-lint does not complain if unquoted or single quoted. All examples I see in the official docs dont use quotes. Just checked the forge also. No quotes. Hth Johan On Wed, 2015-08-12 at 10:06 -0700, David Ra

[Puppet Users] [Style Guide] No recommendation about quoting or not element of an enumerable set of options

2015-08-12 Thread David Racodon
Hi, The style guide is stating that "Quoting is optional when the string is an enumerable set of options (such as present/absent)". But it doesn't make any recommendations. Should those strings be unquoted so that it's easier to spo

[Puppet Users] Unable to Serve the files for environments

2015-08-12 Thread yugandhar . devopsengg
Hi Techies, i am unable to serve the the files for my environments. Here, i have environments like webmachines, hadoopmachines instead of production and development etc., By using environment setup, it is working fine for modules and site.pp. But the problem is i am getting error when i try

[Puppet Users] Help on puppet ERB template

2015-08-12 Thread b . goldi . cool
Hi Guys I am new to puppet and ruby. I am working on some erb template for ldap. Following is sample code <% if TCPSocket.new("host1", 636) and TCPSocket.new("host2", 636) %> host port 636 tls_checkpeer yes <% else -%> host port 389 tls_checkpeer no <% end %> Above works if 636 i