[Puppet Users] Problem of ordering with exported files

2013-08-26 Thread François Lafont
Hi, I use Puppet 3.2 (with hiera) on Debian Wheezy and I have a problem of ordering with exported files. I have 2 puppet clients : 1) server.mydomain.priv with this yaml: --- classes: - test::server 2) and node.mydomain.priv with this yaml: --- classes: - test::node Here is my (very simple

[Puppet Users] nagios puppet dynamic moniroting setup - unable to populate host_resource files

2013-08-26 Thread Chucks
Hi all - I am setting up dynamic monitoring using puppet/nagios modules. I am following this doc to achieve basic setup http://www.allgoodbits.org/articles/view/32 Here is my configs [root@ip-10-172-161-25 puppet]# cat modules/nagios/manifests/init.pp class nagios::server { pack

[Puppet Users] Changing the PE3 console's RAILS_RELATIVE_URL_ROOT? How to prepend a URL string?

2013-08-26 Thread Stephen Wallace
Hi All, I'm looking to prepend a string to all (RHEL based) PE3 console URLs. I'm trying to proxy the console thru an Oracle web server (Apache under the hood), and for security we need to make all URLs easily identifiable as having originated from Puppet in the web log files. A PCI requirement I

Re: [Puppet Users] "Could not back up" errors when files change

2013-08-26 Thread Rich Burroughs
Ahh nevermind I got this figured out. I had copied over my site.pp from the previous install and I changed the hostname of the master on the new setup. The one in the filebucket in site.pp no longer exists. I changed it to "puppet" and it's working now. Rich -- You received this message becaus

Re: [Puppet Users] Puppet ssl errors " SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"

2013-08-26 Thread Ken Barber
> What does this mean ? > > Warning: /etc/puppetdb/ssl/private.pem does not match the file used by > Puppet (/var/lib/puppet/ssl/private_keys/puppettest.eng.com.pem) > Warning: /etc/puppetdb/ssl/public.pem does not match the file used by Puppet > (/var/lib/puppet/ssl/certs/puppettest.eng.com.pem) >

[Puppet Users] "Could not back up" errors when files change

2013-08-26 Thread Rich Burroughs
Hi, I'm new to the group but not as new to Puppet. I've used the open source version at work for a while and taken the Puppet Fundamentals course. I set up a couple of CentOS 6.4 VMs that I'm using to have a look at PE 3.0.1. One is master.localdomain and one is agent1.localdomain. I'm running

[Puppet Users] Puppet apply hangs on Executing '/etc/init.d/ntp status'

2013-08-26 Thread rdoherty
Hi, after a machine has been up for a few days the following command hangs when running `puppet apply` (--debug added to see what was hanging) Service[ntpd](provider=debian): Executing '/etc/init.d/ntp status' Running `/etc/init.d/ntp status` works fine when run as root or as myself. Is there a

Re: [Puppet Users] Puppet ssl errors " SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"

2013-08-26 Thread Chucks
On Monday, August 26, 2013 4:39:20 PM UTC-7, Ken Barber wrote: > > > I tired multiple times revoke master cert and created new, no luck > > Can you run puppetdb-ssl-setup -f ... restart puppetdb and show us the > results? > > ken. > Ken - It worked for me, I am new to puppet, can you pleas

Re: [Puppet Users] Puppet ssl errors " SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"

2013-08-26 Thread Chucks
> > Can you run puppetdb-ssl-setup -f ... restart puppetdb and show us the > results? > > ken. > [root@ip-10-172-161-25 modules]# puppetdb-ssl-setup -f PEM files in /etc/puppetdb/ssl already exists, checking integrity. Warning: /etc/puppetdb/ssl/private.pem does not match the file used by Pu

Re: [Puppet Users] Puppet ssl errors " SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"

2013-08-26 Thread Ken Barber
> I tired multiple times revoke master cert and created new, no luck Can you run puppetdb-ssl-setup -f ... restart puppetdb and show us the results? ken. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop r

[Puppet Users] Puppet ssl errors " SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"

2013-08-26 Thread Chucks
Hi all, I am trying to setup puppet master and puppetdb on same node using puppetdb module. When I try to run puppet agent -t, I see following erorr notice: Unable to connect to puppetdb server (ip-10-172-161-25.us-west-1.compute.internal:8081): SSL_connect returned=1 errno=0 state=SSLv3 read

Re: [Puppet Users] service subscription to a concat managed file

2013-08-26 Thread opticpow
Hi Ygor, of course a silly miss by me. Thanks for the heads up on the module, I'll check it out. Cheers, Wayne. On Tuesday, August 27, 2013 7:24:29 AM UTC+10, Ygor wrote: > > It should be (I think) > > subscribe => File[$config] > > But then I use this for my sysctl: > https://forge.puppetlabs

[Puppet Users] Puppet Venezuela User Group

2013-08-26 Thread Cesar Villanueva
We are a group of Venezuela Puppet practitioners and are starting a new user group directed to the Venezuela community. The initial core members comprised Puppet practitioners and Sysadmins with years of experience. Some are now actually running Puppet on a major account and has been a total su

Re: [Puppet Users] Configuration Management

2013-08-26 Thread Florin Dragu
Thanks Gareth. I will check out Hiera and what types of backends it supports that I could use for all my config, including the Togglz StateRepository store. On Monday, August 26, 2013 11:43:54 AM UTC-7, garethr wrote: > > On 26 August 2013 19:14, Florin Dragu > > wrote: > > I'm are looking at

Re: [Puppet Users] service subscription to a concat managed file

2013-08-26 Thread Dan White
It should be (I think) subscribe => File[$config] But then I use this for my sysctl: https://forge.puppetlabs.com/fiddyspence/sysctl On Aug 25, 2013, at 9:56 PM, opticpow wrote: > Hi All, > > I'm using the ripienaar/concat module to manage a number of configuration > files. Is it pos

[Puppet Users] Windows agent cannot connect to puppet master

2013-08-26 Thread Harsh Desai
Hi I am trying to connect my puppet agent on windows 7 professional and it fails with the following error. Error: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self sig ned certificate in certi

Re: [Puppet Users] Using hiera lookups with defined types

2013-08-26 Thread Stuart Cracraft
Proceed forward through http://docs.puppetlabs.com/learning/index.html --Stuart RHCE/RHCSA/Oracle DBA/Sun/Mensa On Aug 26, 2013, at 12:00 PM, Ken Weiss wrote: > Thanks to Chris's suggestion I have this mostly working. I need to add a few > final touches and then I'll post a closing note w

Re: [Puppet Users] Using hiera lookups with defined types

2013-08-26 Thread Ken Weiss
Thanks to Chris's suggestion I have this mostly working. I need to add a few final touches and then I'll post a closing note with full examples of the solution. I really appreciate the help. I'm just getting started with Puppet, barely understood defined resources, and didn't even know that crea

Re: [Puppet Users] Using hiera lookups with defined types

2013-08-26 Thread Ellison Marks
Agreed, create resources is the way to create defined types using hiera data. As a note though, if you need to create a bunch of defined types without parameters, if, for example, you're only relying on the name parameter, you can pass an array of titles to a declaration. http://docs.puppetlabs

Re: [Puppet Users] Configuration Management

2013-08-26 Thread Gareth Rushgrove
On 26 August 2013 19:14, Florin Dragu wrote: > I'm are looking at ways to improve the way we do config management. > > I know Puppet is very good at managing deploy time OS and env config, > however, when it comes to app/code config it gets a bit tricky as there are > various levels of config: bui

Re: [Puppet Users] hiera and defaults

2013-08-26 Thread Calvin Walton
On Fri, 2013-08-23 at 04:50 +, Igor Galić wrote: > > - Original Message - > > Hi, > > > > is this puppet 3? I shall suppose it is. > > > > With the parameter name of "bar", you likely trigger the automagic hiera > > lookup of foo::bar, which is (naturally) not done using hiera_array.

Re: [Puppet Users] Confusion with puppetdb (storeconfig) and query database

2013-08-26 Thread Miguel Angel Coa Morales
Hello Ken, I resolved the database problem configure the value connection in the "/etc/puppetdb/conf.d/database.ini" file. Before i've the value in the "/etc/puppetdb/conf.d/config.ini" and not found. [..] [database] subname = file:/var/lib/puppetdb/db/db;hsqldb.tx=mvcc;sql.syntax_pgs=true

[Puppet Users] Configuration Management

2013-08-26 Thread Florin Dragu
I'm are looking at ways to improve the way we do config management. I know Puppet is very good at managing deploy time OS and env config, however, when it comes to app/code config it gets a bit tricky as there are various levels of config: build vs deploy vs runtime/dynamic. For dynamic/runtim

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-26 Thread RedHotChiliPepper
Thanks Ygor - I'm currently on the Variables, Conditionals and Facts section of the second link you provided. Can *anyone* who is reading this post please give me a high level understanding of how I'm "putting the bits together" incorrectly? I'm really struggling to understand why I'm gettin

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-26 Thread Dan White
Your syntax is fine. The way you are putting the bits together is very messed up. It seems to me that you need some basic understanding of Puppet and how it works and how to use it. Try these links: http://finninday.net/wiki/index.php/Zero_to_puppet_in_one_day http://docs.puppetlabs.com/learni

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-26 Thread RedHotChiliPepper
Hi Ygor - Can you ever declare a class with no parameters using the following syntax? class { 'morefangs::one' : } I am new to puppet, are class declarations not allowed in site.pp? I renamed site.pp to test.pp but when I tried to apply the test.pp manifest I got the same exact error. Can yo

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-26 Thread RedHotChiliPepper
Hi Francois - I tried both syntaxes separately include morefangs::one include morefangs::two class { 'morefangs::one' : } class { 'morefangs::two' : } and still got the same error message Could not find class one for ec2.compute-1.amazonaws.com at /etc/puppet/modules/morefangs/manifests/site

Re: [Puppet Users] Re: Installing Puppet on Windows: Error 1053

2013-08-26 Thread tinnycloud
I met exactly the same error when installing puppet 3.2.4 with win32-dir 0.4.3 Is their a workable version? 在 2013年8月5日星期一UTC+8上午1时27分59秒,Иван Кадочников写道: > > Thanks for the tip, I just tried it, now I get a different error, which is > usually a good sign: > > c:\Program Files\Puppet Labs\Pu

Re: [Puppet Users] squeeze dist-upgrade considerations - puppet 2.6.2 -> 2.7.18

2013-08-26 Thread Felix Frank
Hi, I found 2.6 -> 2.7 to be quite pleasant. There are new deprecations, but there was nothing in our manifests that broke or acted "funny". Do have a test master and perform gratuitous --noop runs against it if you're paranoid about this kind of thing. I know I am. Stig's advice is very good, b

Re: [Puppet Users] squeeze dist-upgrade considerations - puppet 2.6.2 -> 2.7.18

2013-08-26 Thread maling list
Am Montag, 26. August 2013 12:29:17 UTC+2 schrieb Stig Sandbeck Mathisen: > > maling list > writes: > > > It would be nice to be able to prepare for the most problem - before - > > breaking the setup. > > > > Does anybody has more experiences on this issue. > > Seriously. Check your syslog _

Re: [Puppet Users] squeeze dist-upgrade considerations - puppet 2.6.2 -> 2.7.18

2013-08-26 Thread Stig Sandbeck Mathisen
maling list writes: > It would be nice to be able to prepare for the most problem - before - > breaking the setup. > > Does anybody has more experiences on this issue. Seriously. Check your syslog _before_ upgrading. New features, scope changes, and other potential problems are marked as "will b

Re: [Puppet Users] What is the alternative to Ruby DSL as use of the Ruby DSL is deprecated ?

2013-08-26 Thread Stefan Schmid
Hi Mike Yes, create_resources seems to be just right. Thanks for the hint. - Stefan Am Sonntag, 25. August 2013 22:03:47 UTC+2 schrieb Mike Delaney: > > Hi Stefan, > > I believe for the general case, the best practice is to encapsulate the > logic that can't > be expressed directly in the Pupp

Re: [Puppet Users] Re: Freebsd + Puppet 3.2.2 pkg_add -f ?

2013-08-26 Thread Russell Jackson
I've had a little time to look at this. What looks to be happening is that the URI class adds a hard leading slash to ftp:// uri path components which fetch(1) doesn't handle well. You can work around this by setting the package resource's 'source' parameter to use the http:// scheme. Set it gl