Re: [Puppet Users] The quantum effect when loading classes

2011-05-20 Thread Denmat
Hi, You should include the version number with your questions so we can narrow down answers :) First thing I would do is grep through manifest and look for any calls to the classes in your module. Also the syntax looks a bit odd to me. No doubt works but it is not the way puppet recommends. I

Re: [Puppet Users] Not able to execute shell script

2011-05-20 Thread Denmat
Hi, What is the exit code of the script when you run manually? Does it exit with 1? Cheers, Den On 20/05/2011, at 13:58, Sumith Sudhakaran wrote: > Hi, > > After configuring puppet ( 2.6.8 ) in RHEL 5 update 6, I am able to execute > commands individually but I am not able execute the she

Re: [Puppet Users] Not able to execute shell script

2011-05-20 Thread Sumith Sudhakaran
Thanks for your replay No, I just create a shell for testing with following content. chmod 777 /root/testfile Nothing else . On Fri, May 20, 2011 at 1:00 PM, Denmat wrote: > Hi, > > What is the exit code of the script when you run manually? Does it exit > with 1? > > Cheers, > Den > > > On 2

Re: [Puppet Users] Not able to execute shell script

2011-05-20 Thread Sumith Sudhakaran
Thanks for your reply No, I just create a shell for testing with following content. chmod 777 /root/testfile Nothing else. On Fri, May 20, 2011 at 1:00 PM, Denmat wrote: > Hi, > > What is the exit code of the script when you run manually? Does it exit > with 1? > > Cheers, > Den > > > On 20

[Puppet Users] Re: Intermittent errors for resource dependencies

2011-05-20 Thread tobyriddell
Hi Nan, The /etc/nslcd.conf file is declared in a separate class called 'nss': if ($osclass == 'rhel') and ($operatingsystemrelease =~ /^6/) { # Push out nslcd.conf file{'/etc/nslcd.conf': tag => ['weekday','name_service'], owner =>

Re: [Puppet Users] Fun with hashes and ERB

2011-05-20 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Thanks, that worked perfectly! I had no idea key and value were reserved > words. they aren't and imho your example looks quite fine. But as you didn't post the erb error in the first place, it's hard to tell what is actually really wrong. ~pete -

Re: [Puppet Users] autosign by hostname not working?

2011-05-20 Thread Arnau Bria
On Thu, 19 May 2011 09:10:22 -0700 Patrick Patrick wrote: Hi, > Sorry. I ready your whole email backwords. I can only blame being > tired. no problem! > Did you clean using "puppetca --clean hostname" on the server, by > using "rm" on the client, or both? clean on the server. > Are you us

Re: [Puppet Users] autosign by hostname not working?

2011-05-20 Thread Arnau Bria
On Thu, 19 May 2011 23:46:32 + Nan Liu wrote: thanks Nan, with your help and Patrick's I've understood the problem and solved. Many thanks for you reply! Cheers, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this gro

Re: [Puppet Users] changing the default key length and hash

2011-05-20 Thread Mark Stanislav
Hi Micah, In short, I'm in agreement with you. With the CA which is defaulted to 5 years (not at all surprising) there's no doubt that soon (maybe 2.7 is a good time?) that 2048 key size should be used for at least the CA key, if not default for client key generation as well. Secondly, yes, I d

[Puppet Users] Re: Not able to execute shell script

2011-05-20 Thread jcbollinger
On May 19, 10:58 pm, Sumith Sudhakaran wrote: > Hi, > > After  configuring  puppet ( 2.6.8 ) in RHEL 5 update 6, I am able to > execute commands individually but I am not able  execute the shell script, > its giving error only. Somebody please help me how can I execute a shell > script in rhel5

[Puppet Users] Re: Intermittent errors for resource dependencies

2011-05-20 Thread jcbollinger
On May 20, 4:07 am, tobyriddell wrote: > I realise that the config. for the new host I'm working on doesn't > include the 'nss' class so that would explain why the error appears in > the first place (thanks for helping me track that down). > > But I still don't have a grasp on why it's intermitt

[Puppet Users] Re: custom function from .24.6 not working in 2.6 (from squeeze)

2011-05-20 Thread jcbollinger
On May 19, 5:10 pm, Bill Anderson wrote: > I'm in the process of upgrading an existing installation from .24.x to 2.6. > > We seem to have a custom function that is throwing the error: > "err: Could not retrieve catalog from remote server: Error 400 on SERVER: > private method `gsub' called for

[Puppet Users] Including a class multiple times, with different variables

2011-05-20 Thread Bilco105
Hi, I'm defining a class whose responsibility is to setup an application folder, virtual host, init script and so forth for a rails application. The class is defined as follows: class rails($name, $environment) ## Include General Software require nginx require mysql  ## Setup application

Re: [Puppet Users] Not able to execute shell script

2011-05-20 Thread Peter Bukowinski
On Thursday, May 19, 2011 at 11:58 PM, Sumith Sudhakaran wrote: Hi, > > After configuring puppet ( 2.6.8 ) in RHEL 5 update 6, I am able to execute > commands individually but I am not able execute the shell script, its giving > error only. Somebody please help me how can I execute a shell scrip

[Puppet Users] Inheritance in parametrized classes

2011-05-20 Thread Carles Amigó
Hi, I'm trying to pass a parameter different from the default to the child of a parametrized class with inheritance, but the inherited code from the parent class doesn't seem to be taking the correct parameter. For example, in the following code: class parent ( $foo = "bar" ) { notice("

Re: [Puppet Users] The quantum effect when loading classes

2011-05-20 Thread Nigel Kersten
On Thu, May 19, 2011 at 8:45 PM, John Warburton wrote: > Can anyone comment / expand upon > http://www.nico.schottelius.org/blog/puppet-sometimes-loads-a-class/ > > I am experiencing a case which may be related. We have an ENC, and recently > on our twice daily noop runs from cron, puppet has repo

Re: [Puppet Users] changing the default key length and hash

2011-05-20 Thread Nigel Kersten
On Fri, May 20, 2011 at 5:39 AM, Mark Stanislav wrote: > Hi Micah, > > In short, I'm in agreement with you. With the CA which is defaulted to 5 > years (not at all surprising) there's no doubt that soon (maybe 2.7 is a > good time?) that 2048 key size should be used for at least the CA key, if > n

[Puppet Users] Defined resources not being applied, breaking dependencies

2011-05-20 Thread Jake - USPS
I'm running into an issue where I have a resource (package "ipwatchd") dependent on another resource (exec "fix_sle_sdk_pool_repo"), but the resource that its dependent on isn't being included into the catalog. What's where is that the ipwatchd resource is actually dependent on 5 different exec 're

Re: [Puppet Users] Including a class multiple times, with different variables

2011-05-20 Thread Nigel Kersten
On Fri, May 20, 2011 at 5:26 AM, Bilco105 wrote: > Hi, > > I'm defining a class whose responsibility is to setup an application > folder, virtual host, init script and so forth for a rails > application. The class is defined as follows: > > class rails($name, $environment) > ## Include General S

Re: [Puppet Users] RFC: erronously disabling apt-listchanges - #5604

2011-05-20 Thread Nigel Kersten
On Tue, Jan 25, 2011 at 4:36 PM, Micah Anderson wrote: > > Hi all, > > It seems that an isolated group of us has come to a mini-consensus about > #5604, but I wanted to post to the list to get some wider discussion. > > As detailed in #5604, the puppet apt provider mysteriously, and rather > aggr

Re: [Puppet Users] apt-pinning & puppet package management

2011-05-20 Thread Felix Frank
On 05/16/2011 10:49 PM, CoolCold wrote: > Using "latest" is not the cure, because it will look only on version > (as i understand) and not on pins. Have you tried this? If apt-cache policy lists a newer candidate for a package, it's my understanding that ensure => latest with the apt provider sho

Re: [Puppet Users] Defined resources not being applied, breaking dependencies

2011-05-20 Thread Nigel Kersten
On Fri, May 20, 2011 at 8:29 AM, Jake - USPS wrote: > I'm running into an issue where I have a resource (package "ipwatchd") > I can't see that actual package defined below, just usps-ipwatchd. Are you perhaps running into the issue where a specific require in a resource will override (rather th

Re: [Puppet Users] apt-pinning & puppet package management

2011-05-20 Thread Nigel Kersten
On Fri, May 20, 2011 at 8:42 AM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 05/16/2011 10:49 PM, CoolCold wrote: > > Using "latest" is not the cure, because it will look only on version > > (as i understand) and not on pins. > > Have you tried this? > > If apt-cache policy lists a

[Puppet Users] finding consultants or full time puppet experts?

2011-05-20 Thread Mark
We are looking to hire a full time (or possibly a consultant) in Boston with experience in AWS and Puppet (or Chef :) http://www.fiksu.com/company/careers/cloud-operations-manager Any good leads on other places to look for someone like that? Thanks! -- You received this message because you are

[Puppet Users] Re: Defined resources not being applied, breaking dependencies

2011-05-20 Thread Jake - USPS
That was a typo on my part, usps-ipwatchd is where the issues stems from as the error shows. And as you stated, that is the only thing defined. Sorry for the confusion. As you can see also, I'm not specifying any requires when defining the usps-ipwatchd package. And as the error shows its getti

[Puppet Users] Re: custom function from .24.6 not working in 2.6 (from squeeze)

2011-05-20 Thread Bill Anderson
On Friday, May 20, 2011 7:47:54 AM UTC-6, jcbollinger wrote: > > > > > It looks like at least one function argument is being received as an > array instead of as a string. It may be that 0.24.x was flattening > that array into a series of individual arguments, whereas 2.6.x does > not. If th

[Puppet Users] Re: Defined resources not being applied, breaking dependencies

2011-05-20 Thread Jake - USPS
Huge user error on my part. I have 2 environments, and this error was coming from the outdated one, while I was referencing the good one when troubleshooting. :-\ Thanks for taking a look! Regards, Jake On May 20, 11:01 am, Jake - USPS wrote: > That was a typo on my part, usps-ipwatchd is whe

[Puppet Users] PC EU feedback: should be able to symlink Puppet's management directories

2011-05-20 Thread Randall Hansen
Several people complained that if Puppet's management directories (e.g., confdir) were symlinks, Puppet would overwrite them with real directories. It turns out that this issue was a ticket already, and an old one. http://projects.puppetlabs.com/issues/650 Please comment on the ticket or reply h

Re: [Puppet Users] finding consultants or full time puppet experts?

2011-05-20 Thread Daniel Pittman
On Fri, May 20, 2011 at 08:31, Mark wrote: > We are looking to hire a full time (or possibly a consultant) in > Boston with experience in AWS and Puppet (or Chef :) > > http://www.fiksu.com/company/careers/cloud-operations-manager > Any good leads on other places to look for someone like that? He

[Puppet Users] ANNOUNCE: Facter 1.5.9 Final!

2011-05-20 Thread Jacob Helwig
Facter 1.5.9 is a maintenance release containing fixes and updates. This release contains several fixes, and updated facts, as well as adding some new facts. These include enhancements with Facter & EC2, additional memory facts for OS X, and better Ruby 1.9 support. As always, please let us know

[Puppet Users] Does the puppet module tool work with ruby1.9.2?

2011-05-20 Thread Kevin Beckford
puppet-module changelog /opt/local/lib/ruby1.9/gems/1.9.1/gems/puppet-2.6.8/lib/puppet/util/log/destinations.rb:99: warning: class variable access from toplevel /opt/local/lib/ruby1.9/gems/1.9.1/gems/puppet-2.6.8/lib/puppet/application/kick.rb: /opt/local/lib/ruby1.9/gems/1.9.1/gems/puppet-2.6

[Puppet Users] PC EU feedback: automatically realize required virtual resources

2011-05-20 Thread Randall Hansen
This an existing ticket, too: http://projects.puppetlabs.com/issues/2084 E.g., given: @file { foo: ... } @service { bar: require => File[ foo ] } realize Service[ foo ] File[ foo ] should also be realized. Please comment on the ticket or reply here, whichever you prefer.

[Puppet Users] PC EU feedback: unpack array variables in string interpolation

2011-05-20 Thread Randall Hansen
http://projects.puppetlabs.com/issues/7598 If your goal is this (pseudo-code): @file { "host_one" } @file { "host_two" } You should be able to say this: $array = [ "one", "two" ] @file { "host_$array" } Instead of this: @file { "host_one", "host_two" } Please comment on t

[Puppet Users] PC EU feedback:

2011-05-20 Thread Randall Hansen
http://projects.puppetlabs.com/issues/7599 This (or something very like it) should work: file { foo: ensure => present mode => 0644 } Note the lack of commas after key/value pairs. Please comment on the ticket or reply here, whichever you prefer. Thanks! r P.S. This i

[Puppet Users] PC EU feedback: ability to remove all unmanaged resources

2011-05-20 Thread Randall Hansen
http://projects.puppetlabs.com/issues/7600 I call this the "agent orange" option :) This works, purging all unmanaged hosts entries: resources { 'host': purge => true, noop => true, } We should have a similar property for all (most?) types. Please comment on the ticket

[Puppet Users] PC EU feedback: long online docs pages should be broken up

2011-05-20 Thread Randall Hansen
http://projects.puppetlabs.com/issues/7601 Our very long docs pages are difficult to use. E.g., http://docs.puppetlabs.com/references/2.6.8/type.html Please comment on the ticket or reply here, whichever you prefer. Thanks! r P.S. This is in response to feedback from my "Improving the Puppet D

[Puppet Users] PC EU feedback: import should also include subdirectories

2011-05-20 Thread Randall Hansen
http://projects.puppetlabs.com/issues/7604 import "/etc/puppet/manifests/nodes/*" Should import all manifests in subdirectories as well. Note that this conflicts with #4732, which proposes that Puppet globs act more like shell globs. Please comment on the ticket or reply here, whichever you

[Puppet Users] puppet code to find out which is the first active network interface

2011-05-20 Thread hyzhang
I have a piece of shell script as below: ACTIVE_INTERFACE=`/sbin/ifconfig | /bin/gawk ' /^eth/ { print $1 } ' | /usr/bin/head -1` How do I translate it to puppet code, for example to assign the result as a variable to use? Thanks, -Haiyan -- You received this message because you are subscribed

[Puppet Users] PC EU feedback: virtual resource operator is too magical, hard to read

2011-05-20 Thread Randall Hansen
http://projects.puppetlabs.com/issues/7605 The virtual resource operator: @user { luke: ensure => present } Is relatively easy to type but, if you don’t know it, very hard to read. We should consider a word-based syntax, e.g.: virtual user { luke: ensure => present } Please comment on

[Puppet Users] PC EU feedback: spaceship operator too magical, hard to read

2011-05-20 Thread Randall Hansen
http://projects.puppetlabs.com/issues/7606 The spaceship operator: User <| group == sysadmin or title == luke |> Is relatively easy to type but, if you don’t know it, very hard to read. We should consider a word-based syntax, e.g.: collect User { group == sysadmin or title == luke }

[Puppet Users] PC EU feedback: exported resource syntax is too magical, hard to read

2011-05-20 Thread Randall Hansen
http://projects.puppetlabs.com/issues/7612 The exported resources syntax: @@user { luke: ensure => present } Is concise and powerful, but very difficult to read. We should consider word-based syntax, e.g.: export @user { luke: ensure => present } And taking into account #7605, perhaps:

Re: [Puppet Users] PC EU feedback: exported resource syntax is too magical, hard to read

2011-05-20 Thread Russell Jackson
On 05/20/2011 01:24 PM, Randall Hansen wrote: > http://projects.puppetlabs.com/issues/7612 > > The exported resources syntax: > > @@user { luke: ensure => present } > > Is concise and powerful, but very difficult to read. We should > consider word-based syntax, e.g.: > > export @user {

[Puppet Users] report for schedule items

2011-05-20 Thread Corey Osman
Hi, Currently when a resource is scheduled, that resource doesn't run until its supposed to. However, the puppet report currently doesn't show if a resource is schedule as it just marks it as skipped. Is there a way to separate out skipped from scheduled in puppet reports? Corey -- You

Re: [Puppet Users] PC EU feedback: virtual resource operator is too magical, hard to read

2011-05-20 Thread Jordan Sissel
On Fri, May 20, 2011 at 1:20 PM, Randall Hansen wrote: > http://projects.puppetlabs.com/issues/7605 > > The virtual resource operator: > >@user { luke: ensure => present } > > Is relatively easy to type but, if you don’t know it, very hard to > read. We should consider a word-based syntax, e.g

[Puppet Users] Re: PC EU feedback: ability to remove all unmanaged resources

2011-05-20 Thread jcbollinger
On May 20, 3:17 pm, Randall Hansen wrote: > http://projects.puppetlabs.com/issues/7600 > > I call this the "agent orange" option :) > > This works, purging all unmanaged hosts entries: > >     resources { 'host': >         purge => true, >         noop => true, >     } > > We should have a simil

Re: [Puppet Users] puppet code to find out which is the first active network interface

2011-05-20 Thread Daniel Pittman
On Fri, May 20, 2011 at 13:19, hyzhang wrote: > I have a piece of shell script as below: > > ACTIVE_INTERFACE=`/sbin/ifconfig | /bin/gawk ' /^eth/ { print $1 } ' > | /usr/bin/head -1` > > How do I translate it to puppet code, for example to assign the result > as a variable to use? You want to wr

[Puppet Users] Puppetmaster leaving files open with "too many files open" error

2011-05-20 Thread treydock
Every few days I have to restart the puppetmaster process due to this error "Could not read YAML data for node Too many open files". I have 9 clients being controlled by Puppet and each one of those will generate the same error once this happens. Running 'lsof' during this time shows me 100

Re: [Puppet Users] PC EU feedback: long online docs pages should be broken up

2011-05-20 Thread Nicolas Jungers
On 2011-05-20 22:18, Randall Hansen wrote: http://projects.puppetlabs.com/issues/7601 Our very long docs pages are difficult to use. E.g., http://docs.puppetlabs.com/references/2.6.8/type.html I'd disagree on one point. It's not the length of the page that bother me, because having all on on