Re: [Puppet Users] Re: puppetmasterd continuously consuming high CPU, with many interrupts

2012-07-03 Thread Walter Heck
The fix is actually not that weird, a call to clock_settime() function is enough (which setting the date on the command line does). More explained in the comments here: http://blog.mozilla.org/it/2012/06/30/mysql-and-the-leap-second-high-cpu-and-the-fix/ Walter On Tue, Jul 3, 2012 at 3:23 AM, Ken

[Puppet Users] Puppet v2.7.11 Seg Faults

2012-07-03 Thread ollies...@googlemail.com
Hello, Migrating some clients from an ancient client to a new infrastructure based on 2.7.11 these are RHEL boxes Some clients are hitting an issue [30/06/12 05:11:37 UTC] /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:733: [BUG] Segmentation fault [30/06/12 05:11:37 UTC] ruby 1.8.5 (

Re: [Puppet Users] is site.pp a must to have‏

2012-07-03 Thread Hendrik Jäger
Hi, On Mon, 2 Jul 2012 16:00:28 -0700 (PDT) Hai wrote: > Hi, > > is site.pp a file must to have? No, see https://docs.puppetlabs.com/references/stable/configuration.html#manifest > I have set up a puppet server, but my > following manifest just cannot apply to my client, the server itself.

[Puppet Users] PuppetCamp Dublin this Friday 6th July 2012

2012-07-03 Thread Simon McCartney
http://puppetcampdublin.eventbrite.com/ http://lanyrd.com/2012/puppet-camp-dublin/ PuppetCamp Dublin, in conjunction with Engineers Ireland Computing Division: Puppet Camp is a community oriented gathering of Puppet users and developers. You’ll have the opportunity to network with a diverse gr

[Puppet Users] Conditionals within a class based of something else than facter variable

2012-07-03 Thread Itamar Landsman
Hi All, First I want to apologize, I never completely dove into the fine details of puppet. I just use it on my network of +-100 VMs for odd jobs. my question is: I know how to set up a class that would, for example, install a package on a machine based on a facter variable (e.g. operating sys

Re: [Puppet Users] Conditionals within a class based of something else than facter variable

2012-07-03 Thread Eric Shamow
On Tuesday, July 3, 2012 at 5:31 AM, Itamar Landsman wrote: > Hi All, > > First I want to apologize, I never completely dove into the fine details of > puppet. I just use it on my network of +-100 VMs for odd jobs. > > my question is: I know how to set up a class that would, for example, insta

Re: [Puppet Users] Re: Style guide question..

2012-07-03 Thread Eric Shamow
On Friday, June 29, 2012 at 9:55 AM, jcbollinger wrote: > Note, however, that elsewhere the style guide (version 1.1.2) says "Classes > should generally not declare other classes," which is a bunch of bologna. A > Puppetlabs employee told me recently that he would have that removed, but > evide

Re: [Puppet Users] UX/UI of puppet help when face actions have unmet dependencies

2012-07-03 Thread Eric Shamow
On Friday, June 29, 2012 at 1:22 PM, Daniel Pittman wrote: > Pieter is absolutely right that reporting errors on the output channel > is a bad habit in Puppet - it makes us wildly different to the Unix > standard. Every normal application behaves the way we do now - errors > to stderr - and if the

Re: [Puppet Users] Re: Style guide question..

2012-07-03 Thread jcbollinger
On Tuesday, July 3, 2012 6:34:10 AM UTC-5, Eric Shamow wrote: > > On Friday, June 29, 2012 at 9:55 AM, jcbollinger wrote: > > Note, however, that elsewhere the style guide (version 1.1.2) says "*Classes > should generally not declare other classes*," which is a bunch of > bologna. A Puppetlabs

Re: [Puppet Users] Re: Style guide question..

2012-07-03 Thread Eric Shamow
On Tuesday, July 3, 2012 at 8:39 AM, jcbollinger wrote: > You mean "less objectionable" I presume? I agree that classes generally > should not define other classes, but the guide already says that elsewhere. > I guess there's no harm in repeating it, if you think it worth the emphasis. Sorry,

[Puppet Users] Re: bootstrap aws instance - set server address in instance puppet.conf?

2012-07-03 Thread Leej
So I've cracked the initial problem and I can deploy an instance and auto configure puppet but I am still missing something, possibly a conceptual misunderstanding on my part. I spin up an aws instance with : puppet node_aws bootstrap --image ami-e1e8d395 --keyname puppet --login ubuntu --keyf

Re: [Puppet Users] Using onlyif

2012-07-03 Thread jcbollinger
On Monday, July 2, 2012 11:14:25 PM UTC-5, Ryan Coleman wrote: > > Binaries like curl and test must be fully qualified (ex. /bin/rm) or you > must pass the path attribute to your exec resource with a search path like > '/bin:/usr/bin' as the value. Or you can set a path via Exec's 'path' pa

Re: [Puppet Users] is site.pp a must to have‏

2012-07-03 Thread Corey Hammerton
You can also set the PUPPETMASTER_MANIFEST variable in /etc/sysconfig/puppetmaster, if you're running puppet via an RPM build, to change the site manifest from the default /etc/puppet/manifests/site.pp to something else. On Tuesday, July 3, 2012 5:00:52 AM UTC-4, Hendrik Jäger wrote: > > Hi,

Re: [Puppet Users] is site.pp a must to have‏

2012-07-03 Thread Worker Bee
I ran into this as well. I found that the puppetmaster will start without a site.pp but, it does not build the catalog and actually apply anything. So, I think that a site.pp file IS required. It can be simple like: import 'nodes.pp' $puppetserver = 'somehost' On Mon, Jul 2, 2012 at 7:00 PM,

Re: [Puppet Users] PuppetCamp Dublin this Friday 6th July 2012

2012-07-03 Thread Giuseppe Futia
Dear Simon, the meeting will be available in streaming? Thank you, Giuseppe 2012/7/3 Simon McCartney > http://puppetcampdublin.eventbrite.com/ > http://lanyrd.com/2012/puppet-camp-dublin/ > > PuppetCamp Dublin, in conjunction with Engineers Ireland Computing > Division: > > Puppet Camp is a c

[Puppet Users] Style Guide question

2012-07-03 Thread llow...@oreillyauto.com
Is there an ETA for getting the Style Guide up to date for 2.7.x or even 3.X? Currently it is geared towards the 2.6.X line, and says that certain things should not be done due to 2.6.x compatibility issues. For example, it says to use this: class ntp( $server = 'UNSET' ) {

Re: [Puppet Users] Error 400 on SERVER: invalid value for Integer

2012-07-03 Thread Kmbu
Thanks for your support! It's actually Puppet 2.7.6. Not sure what this means in terms of finding a solution, though. On Friday, 29 June 2012 19:16:23 UTC+2, Eric Sorenson wrote: > > I saw this in the past, and the encoded data was the fact upload from the > client, which for some reason is malf

[Puppet Users] Stored Configs Question

2012-07-03 Thread Worker Bee
Hi Everyone; I have installed and configured stored configs using mysql. But, I am a bit confused about how it works. I was my understanding that only resources prefaced with "@@" would be collected and stored. However, if is run 'select * from resources;', I get everything included in all modul

Re: [Puppet Users] Stored Configs Question

2012-07-03 Thread Craig Dunn
On 03/07/2012 16:18, Worker Bee wrote: Hi Everyone; I have installed and configured stored configs using mysql. But, I am a bit confused about how it works. I was my understanding that only resources prefaced with "@@" would be collected and stored. However, if is run 'select * from resource

Re: [Puppet Users] Stored Configs Question

2012-07-03 Thread JA
Thanks! On Tue, Jul 3, 2012 at 11:24 AM, Craig Dunn wrote: > On 03/07/2012 16:18, Worker Bee wrote: > >> Hi Everyone; >> >> I have installed and configured stored configs using mysql. But, I am a >> bit confused about how it works. I was my understanding that only >> resources prefaced with "

Re: [Puppet Users] Style Guide question

2012-07-03 Thread Nan Liu
On Tue, Jul 3, 2012 at 7:53 AM, llow...@oreillyauto.com wrote: > Is there an ETA for getting the Style Guide up to date for 2.7.x or even > 3.X? > > Currently it is geared towards the 2.6.X line, and says that certain things > should not be done due to 2.6.x compatibility issues. > > For example,

[Puppet Users] puppet doc problem.

2012-07-03 Thread llow...@oreillyauto.com
I'm trying to get some docs using puppet doc, and I'd like to get the PDF format. So, following the example in 'puppet help doc' I did the following: $ puppet doc -m pdf -r configuration creating pdf Could not run: wrong number of arguments (1 for 2) Additionally, when I try to use an rdoc typ

[Puppet Users] Modules Question

2012-07-03 Thread Worker Bee
When writing modules, is it required that then entry point be named init.pp? I have written a module and if I try to call the module via nodes.pp from a file named other than init.pp, I get an error that the module cannot be found. If I rename the file to init.pp, it works fine. So, can someone

Re: [Puppet Users] Modules Question

2012-07-03 Thread Craig Dunn
On 03/07/2012 17:28, Worker Bee wrote: When writing modules, is it required that then entry point be named init.pp? I have written a module and if I try to call the module via nodes.pp from a file named other than init.pp, I get an error that the module cannot be found. If I rename the file

Re: [Puppet Users] Modules Question

2012-07-03 Thread Worker Bee
Craig; Thank you for your repl(ies)! However, this leaves me puzzled that I may not fully understand the way stored configs/modules work. I have another module that does not have an init.pp and it works?? class user::virtual { @user {fabauto: ensure => present, comment =

Re: [Puppet Users] Modules Question

2012-07-03 Thread Craig Dunn
However, this leaves me puzzled that I may not fully understand the way stored configs/modules work. I have another module that does not have an init.pp and it works?? class user::virtual { init.pp is not mandatory for a module per se, but it is the place the autoloader will look for a cl

Re: [Puppet Users] Modules Question

2012-07-03 Thread Worker Bee
yes! that clarified things! I get it now and realize it was a silly question... light bulb is now on! Thank you and have a great weekend! On Tue, Jul 3, 2012 at 12:50 PM, Craig Dunn wrote: > > However, this leaves me puzzled that I may not fully understand the way >> stored configs/modules

[Puppet Users] Re: groups dependencies at user creation

2012-07-03 Thread eduardo
Dears all, I'd got a solution , far away from the best because it's based on execute method and also because it's not use Group[$groups] - > User[$username] dependencies way. Testing something like this are good : $a_groups = inline_template( "<% groups.each do |grp| -%> <%= use

Re: [Puppet Users] Re: groups dependencies at user creation

2012-07-03 Thread Tim Mooney
In regard to: [Puppet Users] Re: groups dependencies at user creation,...: Thanks tim for answer me, The fact is $groups is an array, so when i try something like this -- Group[$groups] -> User[$username] user { $username: comment => "$email",

Re: [Puppet Users] Re: groups dependencies at user creation

2012-07-03 Thread Nan Liu
On Tue, Jul 3, 2012 at 10:46 AM, Tim Mooney wrote: > In regard to: [Puppet Users] Re: groups dependencies at user creation,...: > > >> Thanks tim for answer me, The fact is $groups is an array, so when i >> try something like this >> >> -- >>Group[$groups] -> User[$username] >> >>

Re: [Puppet Users] Unable to Install puppet Master

2012-07-03 Thread RAM
I was experiencing the same problem. I installed java by executing jdk-6u33-linux-x64-rpm.bin. After the execution "rpm -qa | grep java" showed the below: sun-javadb-docs-10.6.2-1.1 sun-javadb-client-10.6.2-1.1 sun-javadb-core-10.6.2-1.1 sun-javadb-javadoc-10.6.2-1.1 sun-javadb-common-10.6.2-1

[Puppet Users] java dependency error in installing pupeet enterprise

2012-07-03 Thread RAM
Hi Everybody, I was trying to install puppet-enterprise-2.5.1-el-5-x86_64 master on my linux box: Linux SERVERX3 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux I was following the steps as in http://docs.puppetlabs.com/pe/2.5/install_basic.html. But I run

Re: [Puppet Users] Unable to Install puppet Master

2012-07-03 Thread Matthaus Litteken
The jdk rpm provides jdk of version 2000:1.6.0_33-fcs. pe-tanukiwrapper requires java of >= 1.5.0, which the jdk does not provide. The pe-virtual-java package supplies with el versions of PE can help in overcoming this, as it provides java (it is explained better here: http://docs.puppetlabs.com/p

Re: [Puppet Users] Puppet can't successfully restart puppetd

2012-07-03 Thread Steve Traylen
On Wednesday, 27 June 2012 11:31:17 UTC+2, Felix.Frank wrote: > > On 06/27/2012 11:19 AM, Matthew Burgess wrote: > >> We redefined the restart command: > >> > > >> > restart => '/usr/bin/nohup /etc/init.d/puppet restart &' > > Nice! Thanks very much, Martin, that works really nicely. > > Befo

[Puppet Users] Re: Hiera ordered hashes

2012-07-03 Thread jcbollinger
On Monday, July 2, 2012 3:42:34 PM UTC-5, Jeremy Carroll wrote: > > During DevOpsDays it was brought up that there may be a patch for ordered > hashes with Hiera. Without this patch, all of my catalogs are compiled in > random order. Any links to a patch that I can back-port, or a commit #? I

Re: [Puppet Users] Problem during setting password for user, using puppet provisioner of Vagrant

2012-07-03 Thread jcbollinger
On Monday, July 2, 2012 2:24:15 PM UTC-5, Brian Gupta wrote: > > On Mon, Jul 2, 2012 at 11:10 AM, nikosd23 wrote: > > Hi, > > > > I am trying to set the password for a user that I have created using the > > puppet provisioner of Vagrant for a Linux version 2.6.32-71.el6.x86_64 > Red > > Ha

[Puppet Users] can puppet-dashboard be installed on CentOS 5.4?

2012-07-03 Thread Hai Tao
Hi, I am trying to install puppet-dashboard on my puppet server, which is running CentOS 5.4. However, I cannot find a RPM for REHL 5 on http://yum.puppetlabs.com/. So the question is how I can get the puppet-dashboard rpm for CentOS 5.4? Thanks. Hai Tao -- You received this message because

[Puppet Users] Re: groups dependencies at user creation

2012-07-03 Thread eduardo
Thanks your answers. I don't figure out how avoid execute because i have a massive input account by ENC json setting all users and membership of each one of them. I had to make uniq entries array to avoid Duplicate definition error condition because many users could (in fact are) belong to a sam

Re: [Puppet Users] puppet doc problem.

2012-07-03 Thread Lorenzo Salvadorini
> > Additionally, when I try to use an rdoc type I either am not getting any > output or can't find it. > > $puppet doc -m rdoc --manifestdir /etc/puppet/environments/test/manifests/ > --modulepath /etc/puppet/environments/test/modules/ --outputdir > /home//puppetdoc/rdoc/ /etc/puppet/environments/

Re: [Puppet Users] hiera questions

2012-07-03 Thread Wolf Noble
This thought crossed our minds as well. I created the following feature request awhile back: https://projects.puppetlabs.com/issues/13934#change-60706 the intent behind which is "if this fact is flagged as immutable, and it changes, something is drastically wrong… (don't)? do something" until

[Puppet Users] Re: groups dependencies at user creation

2012-07-03 Thread eduardo
It's important to say that updssh::user_keys , updssh::check_groups and updssh::load_ssh_key are defined resource types. On 3 jul, 17:43, eduardo wrote: >  Thanks your answers. >  I don't figure out how avoid execute because i have a massive input > account by ENC json setting all users and mem

Re: [Puppet Users] can puppet-dashboard be installed on CentOS 5.4?

2012-07-03 Thread Michael Stahnke
Puppet Dashboard *can* be installed on EL 5 based systems if you've updated Ruby to a 1.8.7 version. By default, EL5 comes with 1.8.5 versions of ruby which have known issues with Dashboard. If you search the archives of this list, there are a few posts about getting 1.8.7 onto EL5 specifically f

Re: [Puppet Users] Nvidia driver install - condition for install

2012-07-03 Thread James A. Peltier
Check to see if an nVidia module already exists for the current kernel and if not build if [ ! -e /lib/modules/`uname -r`/kernel/drivers/video/nvidia.ko ]; then - Original Message - | Hello all, | I'd like to use puppet to install an Nvidia driver on a local | workstation. I've writt