Re: [Puppet Users] See puppet output in stdout when running --no-daemonize inside a bash script

2012-07-18 Thread Sam Simmons
Oh right, it's just gobbling up the --verbose argument as the auth.conf path. Running it like this: sudo puppet master --mkusers --verbose --no-daemonize --autosign Produces the informative error: Could not parse options: missing argument: --autosign #derp On Wednesday, July 18, 2012 8:46:38

Re: [Puppet Users] Hiera vs LDAP

2012-07-18 Thread Trevor Vaughan
Thanks for the post, it was quite interesting. For the attributes, I've seen some reasonable text about storing serialized JSON in LDAP attributes which should work quite well for preserving ordering, etc... In terms of infrastructure, if you've got any significant number of users, you're probabl

Re: [Puppet Users] See puppet output in stdout when running --no-daemonize inside a bash script

2012-07-18 Thread Sam Simmons
Ah ha! The problem was --autosignis a bit more than just a boolean arg so you have to explicitly say true or false. #!/bin/bash puppet master --mkusers --autosign true --verbose --no-daemonize Using the args I had origin

[Puppet Users] create_resources function and puppet enc

2012-07-18 Thread Arun S A G
Hi, I am trying to create multiple users using puppet. I have created a ENC and trying to use class wrapped defined types with create_resources function. For some reason things are falling apart. I would really appreciate some help on these Here are the details about my classes and configurati

Re: [Puppet Users] Hiera vs LDAP

2012-07-18 Thread Aaron Grewell
On Wed, Jul 18, 2012 at 2:09 PM, Trevor Vaughan wrote: > So, I was following the thread "how to conditionally add users to a > virtualized group?" and had a bit of a realization that I'm not quite > sure why Hiera is a better backend than LDAP. > In our environment at least, messing around with t

Re: [Puppet Users] Hiera vs LDAP

2012-07-18 Thread Christopher Wood
(inline, verbosely rhubarbing for the audience not the poster) On Wed, Jul 18, 2012 at 05:09:42PM -0400, Trevor Vaughan wrote: > So, I was following the thread "how to conditionally add users to a > virtualized group?" and had a bit of a realization that I'm not quite > sure why Hiera is a better

[Puppet Users] rspec-puppet and puppet doc conflicts

2012-07-18 Thread llow...@oreillyauto.com
I recently started trying to use rspec-puppet and puppetlabs-rspec-helper. When I ran 'rspec-puppet-init' in one o fmy modules, it created a series of symlinks. Now, when I run puppet doc (via a rake task supplied by The Foreman, but also when I call it directly) I get the following error: Cou

[Puppet Users] cert issues, puppet agent applying configs, problems oh my!

2012-07-18 Thread Zippy Zeppoli
So I'm new to puppet and I'm having a bear of a time just getting a test server going. I installed puppet and the puppet client via yum on CentOS on AWS, so that saved me some time. I followed a few various blog posts about getting everything set up and applying a file, etc. Now I am trying to

Re: [Puppet Users] Re: how to scale puppet with F5 load balancer?

2012-07-18 Thread Eric Sorenson
Great idea, thanks - I've mailed the i...@f5.com address to start this process but if anybody on list has a more specific contact at F5 I'd happily take this to them directly. Eric Sorenson - eric.soren...@puppetlabs.com On Wednesday, July 18, 2012 12:17:34 PM UTC-7, ed209 wrote: > > Someone fr

Re: [Puppet Users] stdlib empty() function not working?

2012-07-18 Thread Dave Lloyd
Nan: Since my test module worked and copying and pasting would be at best cumbersome, I've just created a github project with my module: https://github.com/ibikestl/puppet-netif Examples should be in the tests. Thanks again for your help on this, --dlloyd -- You received this message because

[Puppet Users] Hiera vs LDAP

2012-07-18 Thread Trevor Vaughan
So, I was following the thread "how to conditionally add users to a virtualized group?" and had a bit of a realization that I'm not quite sure why Hiera is a better backend than LDAP. Hiera: - Stores hierarchical data locally on your system - Uses YAML - Integrates with puppet LDAP - Stores hie

[Puppet Users] Shared helper functions for facter

2012-07-18 Thread ZJE
I've started writing custom ruby facts and storing them in a location specified by $FACTERLIB. I would like to reuse some code I have repeated in multiple .rb files, but I'm not quite sure what path to save the module/class in. I'd like to have them in a customizable location and I'd rather not

Re: [Puppet Users] Re: how to scale puppet with F5 load balancer?

2012-07-18 Thread Doug Chapman
Someone from Puppetlabs should reach out to F5 and have them create a deployment guide. http://www.f5.com/solutions/resources/deployment-guides.html (selfishly interested in seeing this as well). On Wed, Jul 18, 2012 at 1:41 AM, ollies...@googlemail.com < paul.seym...@barcap.com> wrote: > > On

Re: [Puppet Users] Re: Puppet can't find class from imported files

2012-07-18 Thread jcbollinger
On Tuesday, July 17, 2012 11:09:18 AM UTC-5, Anatoliy Lisovskiy (Wavebourn) wrote: > > > The problem is, when I expand the node ("kvm7" in the example) that > inherits description of another node ("default" in the example) puppet > can't find the class I add to the node ("vm_create" in the exa

Re: [Puppet Users] "could not find user" when running as daemon

2012-07-18 Thread jcbollinger
On Wednesday, July 18, 2012 9:09:12 AM UTC-5, krish wrote: > > On Wed, Jul 18, 2012 at 7:28 PM, pattryn wrote: > > Nope. > > > > Curiously it works if I enable the nscd daemon but it's not very > reliable > > and I would prefer not to use it. > > > > > nscd is kinda required to read your

Re: [Puppet Users] how to conditionally add users to a virtualized group?

2012-07-18 Thread Jo Rhett
On 07/17/2012 07:31 PM, Jo Rhett wrote: >> Is this not the epitome of diverse and redundant dependancies? I can't >> edit my hiera data without evaluating puppet manifests, I can't edit the >> puppet manifests without editing the hiera data… On Jul 18, 2012, at 1:19 AM, Felix Frank wrote: > Rather

Re: [Puppet Users] See puppet output in stdout when running --no-daemonize inside a bash script

2012-07-18 Thread Juan Sierra Pons
On Jul 18, 2012 5:30 PM, "Sam Simmons" wrote: > > I'm simply trying to run puppet inside a bash script but I'm not seeing any output. > > #!/bin/bash > puppet master --mkusers --autosign --verbose --no-daemonize > > Is there an I/O redirection incantation I'm missing? > > -- > You received this me

Re: [Puppet Users] Overriding parametrised class parameter

2012-07-18 Thread Martin Alfke
Hi, I assume that this is related to node inheritance and variable scoping: http://docs.puppetlabs.com/guides/troubleshooting.html#node-inheritance-and-variable-scope - Martin On 18.07.2012, at 15:32, Rik Theys wrote: > Hi, > > I have a parametrised class to manage /etc/security/access.conf t

Re: [Puppet Users] Start puppet with a non root user different than default 'puppet'

2012-07-18 Thread Jan
Hi, On 07/18/2012 03:55 PM Javi wrote: > Add: > > [main] > ... > user myuser > > And: > > [main] > ... > user myuser > > sudo /etc/init.d/pupettmaster restart > > But no luck. Any idea? which distribution you're running on? The user might be set by the init script by passing the necessary pa

[Puppet Users] See puppet output in stdout when running --no-daemonize inside a bash script

2012-07-18 Thread Sam Simmons
I'm simply trying to run puppet inside a bash script but I'm not seeing any output. #!/bin/bash puppet master --mkusers --autosign --verbose --no-daemonize Is there an I/O redirection incantation I'm missing? -- You received this message because you are subscribed to the Google Groups "Puppet

Re: [Puppet Users] How to restart Winbind when hung?

2012-07-18 Thread Matthew Burgess
On Wed, Jul 18, 2012 at 3:08 PM, Adam wrote: > Hello fellow puppet masters, > > We currently use winbind to allow our admins to log onto our Linux servers > with their Windows AD accounts. Every now and then, a comms issue will drop > AD out from under the server, which causes winbind to stop che

[Puppet Users] Puppet modules for Ceph

2012-07-18 Thread François Charlier
[Note: This message has also been sent to ceph-de...@vger.kernel.org & puppet-openst...@puppetlabs.com] Hi, I'm currently working on writing a Puppet module for Ceph. As after some research I found no existing module, I'll start from scratch but I would be glad to hear from people who would alre

Re: [Puppet Users] "could not find user" when running as daemon

2012-07-18 Thread krish
On Wed, Jul 18, 2012 at 7:28 PM, pattryn wrote: > Nope. > > Curiously it works if I enable the nscd daemon but it's not very reliable > and I would prefer not to use it. > nscd is kinda required to read your passwd database and such. AFAIK, puppet relies on it to read if a user/group exist <-- C

[Puppet Users] How to restart Winbind when hung?

2012-07-18 Thread Adam
Hello fellow puppet masters, We currently use winbind to allow our admins to log onto our Linux servers with their Windows AD accounts. Every now and then, a comms issue will drop AD out from under the server, which causes winbind to stop checking AD. The service is still technically running

[Puppet Users] Overriding parametrised class parameter

2012-07-18 Thread Rik Theys
Hi, I have a parametrised class to manage /etc/security/access.conf that accepts an "entries" parameter. I've included this class in a generic node definition: node common-node { class{'pam_access': entries => ["+ : ALL : ALL"], } } My real nodes inherit this node definition: node 'tes

Re: [Puppet Users] "could not find user" when running as daemon

2012-07-18 Thread pattryn
Nope. Curiously it works if I enable the nscd daemon but it's not very reliable and I would prefer not to use it. On Thursday, 31 May 2012 21:33:10 UTC+1, Jo wrote: > Sounds like you changed nsswitch.conf but haven't restarted puppet daemon. > So puppet has no idea how to see those users.

[Puppet Users] Start puppet with a non root user different than default 'puppet'

2012-07-18 Thread Javi
Good evening. I tried: cd /set sudo chown -R myuser:myuser puppet sudo vim /etc/puppet/puppet.conf Add: [main] ... user myuser And: [main] ... user myuser sudo /etc/init.d/pupettmaster restart But no luck. Any idea? Thanks -- You received this message because you are subscribed to the Go

[Puppet Users] Remote site puppet infrastructure

2012-07-18 Thread Jake - USPS
I'm trying to figure out if there is a common/working setup that people are using to host puppet in remote sites. At first our setup was that we have several puppetmasters (PM) in site A and a couple in our smaller site B. In site A we are also hosting Foreman and our mysql DB for storeconfigs

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Yaniv Fine
this time i got it . i have made a newbie error by creating the mentifest/pp file inside a directory name share_var instead of sharevar !! thank you very much for you kind help ... On Wed, Jul 18, 2012 at 2:03 PM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 07/18/2012 12:22 P

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Felix Frank
On 07/18/2012 12:22 PM, Yaniv Fine wrote: > ... > still getting it even after fixing . > > Could not find class sharedvar::generic in namespaces newmodule::men > > i am doing copy paste . > damm Is the module name "sharevar" or "sharedvar"? The easiest way about this was for you to supply the f

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Yaniv Fine
... still getting it even after fixing . Could not find class sharedvar::generic in namespaces newmodule::men i am doing copy paste . damm On Wed, Jul 18, 2012 at 12:52 PM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 07/18/2012 11:26 AM, Yaniv Fine wrote: > > i am getting > > > >

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Felix Frank
On 07/18/2012 11:26 AM, Yaniv Fine wrote: > i am getting > > Error 400 on SERVER: Could not find class sharevar::generic in > namespaces newmodule::men Hardly surprising. > inside "sharevar"/manifest/genreic.pp >> class sharevar::generec { Both file and class name are horribly typoed. Please fi

Re: [Puppet Users] How to override $::operatingsystem fact

2012-07-18 Thread j.cos...@gmail.com
Hi, Thanks ! Hailee, your solution works great. Very usefull for me. 2012/7/18 Garrett Honeycutt > On 7/17/12 11:30 PM, julien cosmao wrote: > > Hi, > > > > I want to introduce "Proxmox" as new value in $::operatingsystem. > > "Proxmox" is based on Debian, so the normal value is currently "De

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Yaniv Fine
i am getting Error 400 on SERVER: Could not find class sharevar::generic in namespaces newmodule::men On Wed, Jul 18, 2012 at 12:16 PM, Yaniv Fine wrote: > i'll try that . > > > On Wed, Jul 18, 2012 at 12:12 PM, R.I.Pienaar wrote: > >> >> >> - Original Message - >> > From: "Yaniv Fine"

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Yaniv Fine
i'll try that . On Wed, Jul 18, 2012 at 12:12 PM, R.I.Pienaar wrote: > > > - Original Message - > > From: "Yaniv Fine" > > To: puppet-users@googlegroups.com > > Sent: Wednesday, July 18, 2012 10:03:01 AM > > Subject: Re: [Puppet Users] Re: Out-of-Scope Variables > > > > > > Frank . > >

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Yaniv Fine
class newmodule::men { file {'/tmp/bootstrap.properties': mode => '644', owner => 'root', group => 'root', content => template('newmodule/bootstrap.erb') } } On Wed, Jul 18, 2012 at 12:11 PM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > > > On 07/18/20

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread R.I.Pienaar
- Original Message - > From: "Yaniv Fine" > To: puppet-users@googlegroups.com > Sent: Wednesday, July 18, 2012 10:03:01 AM > Subject: Re: [Puppet Users] Re: Out-of-Scope Variables > > > Frank . > let me put it all together :) > > i have a module name "sharevar" > i have another module

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Felix Frank
On 07/18/2012 11:03 AM, Yaniv Fine wrote: > Frank . > let me put it all together :) > > i have a module name "sharevar" > i have another module "newmodule" > inside "sharevar"/manifest/genreic.pp > class sharevar::generec { > $vartest = 'infooramtion' > } > > i have newmodule/manifest/men.pp >

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Yaniv Fine
Frank . let me put it all together :) i have a module name "sharevar" i have another module "newmodule" inside "sharevar"/manifest/genreic.pp class sharevar::generec { $vartest = 'infooramtion' } i have newmodule/manifest/men.pp that include the content => template path erb file and i have the n

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Felix Frank
On 07/18/2012 10:44 AM, Yaniv Fine wrote: > in "newmodule" pp file > > I presume you have a file { } somewhere that uses content => template(...). > > Where is that file declared? Let me rephrase that: What is the name of the class in which the file is defined? If it's not inside a class, put it

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Yaniv Fine
in "newmodule" pp file On Wed, Jul 18, 2012 at 11:39 AM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 07/18/2012 10:31 AM, Yaniv Fine wrote: > > i am missing something here . > > those classes are from the same module . > > i am calling sharedvar::vartest > > class sharedvar { > > $

[Puppet Users] Re: how to scale puppet with F5 load balancer?

2012-07-18 Thread ollies...@googlemail.com
On Tuesday, 17 July 2012 16:14:05 UTC+1, Matt wrote: > > Is there no one who has done this that can provide examples of how they > did it? I would if I could. Company policy and all that. Generated the SSL certificate with the single F5 DNS address that all the clients globally will hit pu

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Felix Frank
On 07/18/2012 10:31 AM, Yaniv Fine wrote: > i am missing something here . > those classes are from the same module . > i am calling sharedvar::vartest > class sharedvar { > $vartest = 'blabla > }' > from template file that reside on module "newmodule" > > where do i put the include class and what

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Yaniv Fine
i am missing something here . those classes are from the same module . i am calling sharedvar::vartest class sharedvar { $vartest = 'blabla }' from template file that reside on module "newmodule" where do i put the include class and what syntax i use to call it ? thank you :) On Wed, Jul 18, 201

Re: [Puppet Users] how to conditionally add users to a virtualized group?

2012-07-18 Thread Felix Frank
On 07/17/2012 07:31 PM, Jo Rhett wrote: > > Is this not the epitome of diverse and redundant dependancies? I can't > edit my hiera data without evaluating puppet manifests, I can't edit the > puppet manifests without editing the hiera data… Hmm, by "managing your hiera data" I wasn't implying that

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Felix Frank
On 07/18/2012 09:47 AM, Erik Dalén wrote: > Make sure you include sharedvar class in your sharedvar::generic class > before the template is called. Right, but more succinctly: sharedvar::generic does not appear to be the caller, but rather some class in mymodule. The point is: The class that use

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Erik Dalén
Make sure you include sharedvar class in your sharedvar::generic class before the template is called. On 18 July 2012 09:10, Yaniv Fine wrote: > i have tested this again today when i arrived to the office , with no luck . > when calling another module (sharedvar)/mainfest/generic.pp file from wit

Re: [Puppet Users] Re: Out-of-Scope Variables

2012-07-18 Thread Yaniv Fine
i have tested this again today when i arrived to the office , with no luck . when calling another module (sharedvar)/mainfest/generic.pp file from within my template file . ** class sharedvar { $vartest = 'test1' } ** i use in my erb file in module/mymodule/templates