[Puppet Users] Error 400 on SERVER: Could not write /var/lib/puppet/ssl/ca/requests/agent1.pem to csrdir: undefined method `exists?' for nil:NilClass

2012-08-28 Thread Edward Tuan
I've been confused by this question for near two days ...my puppet master version is 2.7.9-1.el6 and client versiong is 2.6.16-2.el5. This is what my command lines shows: *[root@agent1 ~]# puppet agent --server=edward --test --waitforce 30* info: Creating a new SSL key for agent1 warning: peer

[Puppet Users] Unable to generate certificate on Puppet Agent through Master

2012-08-28 Thread Ajeet Raina
Hi, I have a puppet master and agent installed. I want to generate and configure master-agent certificate and followed the steps: Master: == 1. Cleaned up all certificate on Master: [root@puppet-server manifests]# puppet cert sign --all No waiting certificate re

Re: [Puppet Users] Re: Announce: Puppet 3.0.0-rc4 Available

2012-08-28 Thread Sandra Schlichting
> > I just published the saved query that lists these tickets, for a little > nicer URL: > > https://projects.puppetlabs.com/projects/puppet/issues?query_id=263 > > That is a very interesting link. Do you know what the estimated time frame is for 3.0 final? -- You received this message beca

[Puppet Users] Re: Append string to list items.

2012-08-28 Thread Krzysztof Wilczynski
Hi, You could try this: matti@acrux ~ $ cat | puppet apply --noop notice bracket_expansion('gfs[01-10]:/var/bricks') notice: Scope(Class[main]): gfs01:/var/bricks gfs02:/var/bricks gfs03:/var/bricks gfs04:/var/bricks gfs05:/var/bricks gfs06:/var/bricks gfs07:/var/bricks gfs08:/var/bricks

Re: [Puppet Users] Array References?

2012-08-28 Thread Henrik Lindberg
On 2012-28-08 5:02, Douglas Garstang wrote: The first notice command shows the array as having two elements. The second notice command shows the same array as having only one element. Some sort of variable reference thing? How can I make a copy of the $nodes array rather than make a reference to

Re: [Puppet Users] Unable to generate certificate on Puppet Agent through Master

2012-08-28 Thread Ashish Jaiswal
Hi.. Can you check date and time on both master and agent.. it should be in sync with master.. Regards, Ashish Jaiswal On Aug 28, 2012 2:38 PM, "Ajeet Raina" wrote: > Hi, > > I have a puppet master and agent installed. I want to generate and > configure master-agent certificate and followed the

[Puppet Users] Re: class/define execution ordering

2012-08-28 Thread xkrantz
Hi Tolbkni, What version of Puppet do you use ? In puppet 2.6.x, this is a well known issue which can be solved by using the puppetlabs-stdlib "Anchor" type. https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/XfinNTV27T4 Hope it helped you ! Le lundi 27 août 2012 11:45:24 UT

[Puppet Users] Re: Exec{} keeps running

2012-08-28 Thread jcbollinger
On Monday, August 27, 2012 5:39:36 PM UTC-5, Douglas wrote: > > Argh. I have the definition below. The gluster peer probe command has > already been executed successfully, and I'm testing it with 'peer > status'. Running the unless=> command yields: > > root@gfs01:~# /usr/sbin/gluster peer sta

[Puppet Users] Re: Loading Hiera into array/hash

2012-08-28 Thread jcbollinger
On Monday, August 27, 2012 4:14:13 PM UTC-5, Douglas wrote: > > This is driving me crazy. I'm trying to load the nodes array into a > puppet array with hiera. Hiera seems to always flatten an array or a > hash to a string, with no delimiter in between, which makes it hard to > split into an ar

[Puppet Users] Hiera lookup by function.

2012-08-28 Thread Douglas Garstang
In addition to hiera looking at files based on environment and node role etc, I'd like to be able to specify a file name based on function. Ie break keys into files by function. Is there a way to do this? Doug -- You received this message because you are subscribed to the Google Groups "Puppet

Re: [Puppet Users] Re: Exec{} keeps running

2012-08-28 Thread Douglas Garstang
Thanks. This one turned out to be user error. :) On Tue, Aug 28, 2012 at 7:08 AM, jcbollinger wrote: > > > On Monday, August 27, 2012 5:39:36 PM UTC-5, Douglas wrote: >> >> Argh. I have the definition below. The gluster peer probe command has >> already been executed successfully, and I'm testing

[Puppet Users] Could not retrieve catalog from remote server

2012-08-28 Thread Bai Shen
I'm trying to get puppet to connect to my puppetmaster, but I keep getting the same error. err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed I've made sure ntpd is running during the kickstart and th

[Puppet Users] Why this "Could not evaluate" error?

2012-08-28 Thread Sandra Schlichting
Dear readers, When I do this node testip { package {'isc-dhcp-server': ensure => purged, } service {'isc-dhcp-server': ensure => stopped, enable => false, pattern => 'dhcpd' } } I get this error Error: /Stage[main]//Node[mttj-linuxterm1-puppet]/Service[is

[Puppet Users] Re: Why this "Could not evaluate" error?

2012-08-28 Thread Sandra Schlichting
Please replace "testip" with "mttj-linuxterm1-puppet" =) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/kljEiHtlKgIJ. To post to this group, send email to

Re: [Puppet Users] Error 400 on SERVER: Could not write /var/lib/puppet/ssl/ca/requests/agent1.pem to csrdir: undefined method `exists?' for nil:NilClass

2012-08-28 Thread Ashish Jaiswal
Hi, To me it seems to be permission issue on SSL directory on master .. can you let me what is the permission on SSL directory .. This is just a wild guess.. Regards, Ashish Jaiswal On Aug 28, 2012 12:53 PM, "Edward Tuan" wrote: > I've been confused by this question for near two days ...my pup

Re: [Puppet Users] Could not retrieve catalog from remote server

2012-08-28 Thread Ashish Jaiswal
Hi,, Have you tried deleting the existing directory of master and agent.. rm -frv /var/lib/puppet/ssl Try this and see if this work!! Regards, Ashish Jaiswal On Aug 28, 2012 8:58 PM, "Bai Shen" wrote: > I'm trying to get puppet to connect to my puppetmaster, but I keep getting > the same error

Re: [Puppet Users] Could not retrieve catalog from remote server

2012-08-28 Thread Bai Shen
That didn't seem to help. I got some weird errors about the certs not being able to be signed. I was finally able to get one test run, but after that it went back to giving me the same error. Any other suggestions? On Tue, Aug 28, 2012 at 12:18 PM, Ashish Jaiswal wrote: > Hi,, > > Have you tri

Re: [Puppet Users] Re: Hiera, OSSEC and per-node stuff?

2012-08-28 Thread Jakov Sosic
On 08/27/2012 08:45 PM, jcbollinger wrote: > "Right" is a tricky word, but I'm happy to say that your approach is > "reasonable", "good", "acceptable", and perhaps even "standard". There > is at least one hiera-based alternative that I would describe with many > of the same terms, but why mess wi

Re: [Puppet Users] Re: Announce: Puppet 3.0.0-rc4 Available

2012-08-28 Thread Eric Sorenson
When all the tickets in that query say "Merged - Pending Release", it's done. :) On Tuesday, August 28, 2012 2:14:04 AM UTC-7, Sandra Schlichting wrote: > > I just published the saved query that lists these tickets, for a little >> nicer URL: >> >> https://projects.puppetlabs.com/projects/puppet

Re: [Puppet Users] Re: Announce: Puppet 3.0.0-rc4 Available

2012-08-28 Thread Matthaus Owens
Here are another couple of helpful links: 3.0.0 target version (with a nifty percentage done graphic): https://projects.puppetlabs.com/versions/271 3.0.0 remaining open tickets: https://projects.puppetlabs.com/projects/puppet/issues?fixed_version_id=271&set_filter=1&status_id=o On Tue, Aug 28, 20

Re: [Puppet Users] Could not retrieve catalog from remote server

2012-08-28 Thread Ashish
Hi, You sure, cos it seem to be really ugly certificate issue openssl x509 -text -noout -in /var/lib/puppet/ssl/certs/hostname.tld.pem | grep -A2 Validity Can you check the time period of your certificate.. and compare it with master one. if it is same, then something serious is happening

[Puppet Users] How to delete previous resources from directory

2012-08-28 Thread Glenn Poston
I'm using hiera to define a list of database engine id's for a node. I'm using this variable to feed into a defined type to create a set of files (upstart configs). The problem I would like to solve isŠ. How do I delete files/resources that were previously created but are now removed (without de

[Puppet Users] Hash Access... Frustrating!

2012-08-28 Thread Douglas Garstang
Boy... accessing hashes in puppet is downright painful. I have this in a yaml file... glusterfs_volumes: gfsvol01: master_node: gfs01.us1.xxx.com transport: tcp replicas: 0 nodes: - gfs01.us1.xxx.com hostname: gfs01 state: mounted - gfs02.us1.xxx.com

[Puppet Users] Re: Why this "Could not evaluate" error?

2012-08-28 Thread Krzysztof Wilczynski
Hi, Thanks for the hugs :) There seem to be a problem with underlying provider / binaries on which said provider relies. Nothing wrong with your content, as far as I can tell from the little snippet provided. KW On Tuesday, August 28, 2012 4:37:51 PM UTC+1, Sandra Schlichting wrote: > > Pleas

[Puppet Users] Puppet not picking up manifests

2012-08-28 Thread Bai Shen
I created some manifest files, but my client doesn't seem to be picking them up. According to all of the tutorials, I'm doing this right, so I'm not sure what the issue is. nodes.pp: node default { include ntp } ntp.pp: class ntp { package { ntp:

[Puppet Users] Puppet Error

2012-08-28 Thread Ajay Muppuri
Hello, I am trying to build puppet on Amazon VPC and am getting this error pretty consistently. >sudo puppet agent --test --server=ip-10-0-1-83 --waitforcert 60 err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificat

[Puppet Users] Puppet and AIX

2012-08-28 Thread Worker Bee
Hi Everyone; I am working on installing puppet agents on AIX servers. I downloaded the rpm's from the puppet site: http://projects.puppetlabs.com/projects/1/wiki/PuppetAix However, I am confused about why db-3.1.11 is required. Isn't this a database package? Does anyone know why this is needed

[Puppet Users] using puppet augeas to add entry in /etc/syslog.conf

2012-08-28 Thread Clay
Hi , I"m trying to add a entry in /etc/syslog.conf using puppet augeas like this " *.warning;mail.none;authpriv.none;cron.none @syslog_host" , seems the way to do this with augeas is : augeas { "syslog_conf": lens=> "syslog.lns",

[Puppet Users] Re: Hash Access... Frustrating!

2012-08-28 Thread jcbollinger
On Tuesday, August 28, 2012 2:55:20 PM UTC-5, Douglas wrote: > > Boy... accessing hashes in puppet is downright painful. > > I have this in a yaml file... > > glusterfs_volumes: > gfsvol01: > master_node: gfs01.us1.xxx.com > transport: tcp > replicas: 0 > nodes: >

[Puppet Users] Re: Why this "Could not evaluate" error?

2012-08-28 Thread jcbollinger
On Tuesday, August 28, 2012 3:03:45 PM UTC-5, Krzysztof Wilczynski wrote: > > Hi, > > Thanks for the hugs :) > Never can get enough of those :) > > There seem to be a problem with underlying provider / binaries on which > said provider relies. Nothing wrong with your content, as far as I can

[Puppet Users] Speed up file resource on Windows

2012-08-28 Thread Roger
Puppet is taking about 5 minutes per run on a Windows 2008 R2 server. Here's the breakdown: config_retrieval 1.638 exec 1.0764 file 320.1297 Total 322.8441 There are only 13 file resources: 4 are directories 2 are small powershell scripts 6 are relatively small text files 1 image file (9K png

[Puppet Users] Announce: Hiera-Puppet 1.0.0 available

2012-08-28 Thread Matthaus Owens
We are happy to announce Hiera-Puppet 1.0.0. It includes Puppet functions for hiera and also the puppet backend for hiera lookups. Downloads are available: * Source http://downloads.puppetlabs.com/hiera/hiera-puppet-1.0.0.tar.gz * Apt and yum repositories * Apple package http://puppetlabs.com/

[Puppet Users] Re: Puppet not picking up manifests

2012-08-28 Thread Nick Fagerlund
Could you please link me to these tutorials, so I may destroy them. Okay, anyway, here's how Puppet works: The master has ONE manifest file that it ALWAYS reads, called /etc/puppet/manifests/site.pp. (use puppet master --configprint manifest to confirm its location. You can set the 'manifest'

[Puppet Users] trouble with nodes.pp regex

2012-08-28 Thread Gregory Damiani
I'm having a bit of trouble figuring out how regex matching (and maybe inheritance?) are working in my nodes.pp file. I've got a host with the hostname "lms-www0-2x-qa.domain" 1) In my site.pp file I 'import nodes.pp' --> pretty sure that works 2) In my nodes.pp file, I have a default stanza --

Re: [Puppet Users] Refresh not working with launchd service provider?

2012-08-28 Thread Clay Caviness
I'm seeing the same thing. I can't actually recall the last time I verified it was working, but it _was_ at some point in the past. Currently it's not, though, at least with puppet 2.7.18 on OS X 10.8.1. Debug output shows a trigger of a refresh, but no execs are ever run: [...] notice: /Stage[ma

Re: [Puppet Users] Re: Hash Access... Frustrating!

2012-08-28 Thread Douglas Garstang
Having fixed the yaml... glusterfs_volumes: gfsvol01: master_node: gfs01.us1.xxx.com transport: tcp replicas: 0 nodes: - name: gfs01.us1.xxx.com bricks: - /var/bricks/b1 - name: gfs02.us1.xxx.com bricks: - /var/bricks/b2 - nam

Re: [Puppet Users] trouble with nodes.pp regex

2012-08-28 Thread Ramin K
On 8/28/2012 4:24 PM, Gregory Damiani wrote: Is it a case of single matching? That my host can only match one of those stanzas in nodes.pp? Yes. You get one match. http://docs.puppetlabs.com/puppet/2.7/reference/lang_node_definitions.html#regular-expression-names Ramin -- You received this

Re: [Puppet Users] Re: Hash Access... Frustrating!

2012-08-28 Thread Douglas Garstang
It looks like it's flattening the darned thing out... :( err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship source "Glusterfs::Add_peers[bricks/var/bricks/b3namegfs03.us1.xxx.com]" :( On Tue, Aug 28, 2012 at 4:

Re: [Puppet Users] Re: Hash Access... Frustrating!

2012-08-28 Thread Jenner La Fave
You still can't use anything other than a string as a resource title. Since you're passing an array of hashes, it's being converted to a string, specifically by Puppet::Resource::Type#set_name_and_namespace, which does @name = name.to_s.downcase. In your case, you'll probably want to use the cr

Re: [Puppet Users] Re: Puppet not picking up manifests

2012-08-28 Thread Ashish
Hi, And see to that you get output while going for this command # dnsdomainname example.com Regards, System Admin Ashish Jaiswal On Wednesday 29 August 2012 04:25:23 AM IST, Nick Fagerlund wrote: Could you please link me to these tutorials, so I may destroy them. Okay, anyway, here's how Pu

Re: [Puppet Users] Error 400 on SERVER: Could not write /var/lib/puppet/ssl/ca/requests/agent1.pem to csrdir: undefined method `exists?' for nil:NilClass

2012-08-28 Thread Edward Tuan
Much thanks for your reply. Is this your meaning: [edward@edward ~]$* cd /var/lib/puppet/* [edward@edward puppet]$ ls bucket clientbucket client_yaml lib rrd sslyaml classes.txt client_data factsreports server_data state [edward@edward puppet]$ cd ssl *[edward

Re: [Puppet Users] Error 400 on SERVER: Could not write /var/lib/puppet/ssl/ca/requests/agent1.pem to csrdir: undefined method `exists?' for nil:NilClass

2012-08-28 Thread Ashish
Hi Edward, You won't be able to access as normal user, you need to be root for that. If you have deleted your ssl directory, nothing much to worry it will generate again, what I was asking the permission on ssl directory.? On my server it has something like this # ls drwxrwx--x 8 puppet roo

Re: [Puppet Users] Re: Hash Access... Frustrating!

2012-08-28 Thread Douglas Garstang
Thanks. I'll check it out. Does anyone know where the docs for this are? All the links on the puppet web site are broken for create_resources. Doug. On Tue, Aug 28, 2012 at 6:03 PM, Jenner La Fave wrote: > You still can't use anything other than a string as a resource title. Since > you're passi

Re: [Puppet Users] Re: Hash Access... Frustrating!

2012-08-28 Thread Douglas Garstang
Oops. There's a working link right there... On Tue, Aug 28, 2012 at 7:38 PM, Douglas Garstang wrote: > Thanks. I'll check it out. Does anyone know where the docs for this > are? All the links on the puppet web site are broken for > create_resources. > > Doug. > > On Tue, Aug 28, 2012 at 6:03

Re: [Puppet Users] Error 400 on SERVER: Could not write /var/lib/puppet/ssl/ca/requests/agent1.pem to csrdir: undefined method `exists?' for nil:NilClass

2012-08-28 Thread Edward Tuan
Hi Ashish, 1st, what on my server is this: [root@edward ~]# ls -ld /var/lib/puppet/ssl/ drwxrwx--x. 8 puppet root 4096 Aug 27 17:21 /var/lib/puppet/ssl/ [root@edward ~]# 2nd, I debug on my server with puppet cert --list --debug, and the result is(not far only this,I just show 5 lines): debug:

Re: [Puppet Users] Re: Puppet not picking up manifests

2012-08-28 Thread Anatoliy Lisovskiy
On Tue, Aug 28, 2012 at 3:55 PM, Nick Fagerlund < nick.fagerl...@puppetlabs.com> wrote: > Could you please link me to these tutorials, so I may destroy them. > It is easy to destroy incomplete tutorials, but harder to offer something good instead! When I started using Puppet it took long time un

[Puppet Users] hiera-puppet no longer installs

2012-08-28 Thread Thomas Hallgren
I'm unable to install hiera-puppet. Seems it requires hiera ~> 1.0. $ gem install hiera-puppet ERROR: While executing gem ... (Gem::DependencyError) Unable to resolve dependencies: hiera-puppet requires hiera (~> 1.0) Hiera installs, but version 0.3.0 $ gem install hiera Fetching: hier

[Puppet Users] dmz network configuration

2012-08-28 Thread Andrei-Florian Staicu
Hi all, I need to install puppet agent on some DMZ hosts, so I need to have all TCP ports. Can anyone tell me what the data flow is between agents and the master? Also, what would be the case when using MCollective, inseatad of puppet kick? Thanks. -- Beware of programmers who carry screwdriver

[Puppet Users] minor change in inkling/postgresql – PostgreSQL

2012-08-28 Thread OXS007
Hi, When running the Postgresql module the database installed by default is 8.4 what we need is 9.1 where do i define the version to be installed by puppet. If i edit the params,pp like; $client_package_name = 'postgresql91' $server_package_name = 'postgresql91' The 9.1 is being installed

[Puppet Users] Re: minor change in inkling/postgresql – PostgreSQL

2012-08-28 Thread OXS007
On more thing the postgresql-9.1 is installed but when you run service postgresql-9.1 start you get /var/lib/pgsql/9.1/data is missing, Use "service postgresql-9.1.4 initdb" to initialize the cluster first. Any idea ? Op woensdag 29 augustus 2012 02:14:54 UTC-4 schreef OXS007 het volgende: >