Re: [Puppet Users] puppet manifest execution orders

2011-07-14 Thread Rony KB
Hi All, I am new in Puppet.I am using github for manifest store.I created following these three manifest for installing our web based application in ubuntu systems.I am not using any variables in these. 1. how to implement variables for dbname, document root folder path etc... in nods.pp file. 2.

[Puppet Users] Re: Seemingly random failures after 2.7.1 upgrade

2011-07-14 Thread treydock
I think the way I posted the contents of the modules may have been misleading, as I do actually have each class in it's own file so kvm::host class has it's own host.pp file. So far I've actually noticed this problem only on my modules that make use of the autoloading, so each class in it's own *.

[Puppet Users] Puppet 2.7.x and Facter 1.6 packages for Redhat/CentOS 5

2011-07-14 Thread rvlinden
All, I used to download the Puppet and Facter RHEL5 rpm packages from http://people.fedoraproject.org/~tmz/repo/puppet/epel/ but the latest version on that site is puppet 2.6.9 and facter 1.5.9. Does anyone know if this site is the still maintained ? or if there are other locations where the rpm

[Puppet Users] Re: puppet custom fuction run as user pupprt?

2011-07-14 Thread jcbollinger
On Jul 14, 1:15 am, flex wrote: > I wrote a custom fuction to read a root read-only file, it raised an > Permission Denied error. > During debug, i found  this fuction seems to run as user puppet, it is this > a feature or a bug? This is a feature. Puppet functions run in the master process,

[Puppet Users] Re: Exported Resources with --noop

2011-07-14 Thread Andrew Thompson
On Jul 13, 7:03 pm, Gabriel Filion wrote: > On 11-07-13 12:06 PM, Andrew Thompson wrote: > > > When I puppet with the noop flag resources are being exported to the > > db.  Is this expected or a bug? > > Hmm what version of puppet are you using? > > I've just encountered exactly this with puppet

Re: [Puppet Users] Puppet 2.7.x and Facter 1.6 packages for Redhat/CentOS 5

2011-07-14 Thread Todd Zullinger
rvlinden wrote: > I used to download the Puppet and Facter RHEL5 rpm packages from > http://people.fedoraproject.org/~tmz/repo/puppet/epel/ > > but the latest version on that site is puppet 2.6.9 and facter > 1.5.9. > > Does anyone know if this site is the still maintained ? or if there > are other

Re: [Puppet Users] Re: how to write classes to install package from source

2011-07-14 Thread Al @ Lab42
Thanks for the suggestions, they are going to be merged. That's a define I did various years ago that actually has been useful in various cases (I do agree that it's better to use packages, but sometimes this is the quickest and saner approach). Al On Wednesday, July 13, 2011 8:53:33 AM UTC+2,

[Puppet Users] Re: What is the best practice to clean up installed components on a node?

2011-07-14 Thread jcbollinger
On Jul 13, 11:39 am, Darrell Fuhriman wrote: > I've always thought there should be an implicit X::disabled class that gets > included for every host where X isn't included. > > Then if I create said class, it gets automatically executed on all hosts that > don't include X. It is not practica

Re: [Puppet Users] Re: Seemingly random failures after 2.7.1 upgrade

2011-07-14 Thread Gustavo Soares
Hi Trey, same problem for me.. I've notice the problem on modules using autoloading... I think I will stick to version 2.6.9... Gus On Thu, Jul 14, 2011 at 8:57 AM, treydock wrote: > I think the way I posted the contents of the modules may have been > misleading, as I do actually have each cl

Re: [Puppet Users] Re: Seemingly random failures after 2.7.1 upgrade

2011-07-14 Thread Nigel Kersten
On Wed, Jul 13, 2011 at 2:26 PM, Gus wrote: > Hi! > > I've also noticed this (weird) behaviour. I am planning an (huge) > upgrade (from 0.25.x to 2.7.1) in all my puppet's boxes... > > I've installed puppet's 2.7.1 gem and got a lot of "Could not find > class" problem... and everything worked jus

Re: [Puppet Users] Puppet 2.7.x and Facter 1.6 packages for Redhat/CentOS 5

2011-07-14 Thread Chris Phillips
On 14 July 2011 15:00, Todd Zullinger wrote: > rvlinden wrote: > > I used to download the Puppet and Facter RHEL5 rpm packages from > > http://people.fedoraproject.org/~tmz/repo/puppet/epel/ > > > > but the latest version on that site is puppet 2.6.9 and facter > > 1.5.9. > > > > Does anyone know

[Puppet Users] How to use notify to invoke something prior to a change

2011-07-14 Thread PBWebGuy
I have a Chicken and Egg scenario here and trying to come up with a way to solve it. I have a mount definition that manages mount points. The problem arises when the mount point changes after it is in use. Case in point, we have mount points for the mysql data and logs directories. If we change

[Puppet Users] Puppet 2.6.x fate

2011-07-14 Thread Michael Stahnke
It was decided earlier this week that the 2.6 series will have it's last release at 2.6.10 (we're currently at 2.6.9). However, we are not doing a 2.6.10 RC/release this month. That will wait until August. If you have patches waiting on some final tweaks or any other work that you feel like just

[Puppet Users] Re: Puppet 2.6.x fate

2011-07-14 Thread PBWebGuy
Hi Mike, I wanted to comment on bug http://projects.puppetlabs.com/issues/7680 which is a regression introduced in 2.6.8. I recently ran into this issue and had to downgrade to 2.6.7 from 2.6.8. When I discovered the issue I tried upgrading to 2.6.9 and it was still an issue. The problem is sim

[Puppet Users] Re: puppet custom fuction run as user pupprt?

2011-07-14 Thread PBWebGuy
John, You bring up a good point and I wanted to ask this question anyways. To the best of my knowledge, functions run on the master and facts run on the node. If that is the case, it perplexes me that functions get sync'd to the node in the /var/lib/puppet/lib... directory. That is unless functi

[Puppet Users] Re: wrong nodes.pp being accessed by the client

2011-07-14 Thread PBWebGuy
Also you should specify the environments that the master supports: [master] # Environments that are defined for this PuppetMaster environments=development,main HTH, John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this

Re: [Puppet Users] Re: how to write classes to install package from source

2011-07-14 Thread KarthiKeyan. Kesavan
Hi guys, Thanks a lot for the suggestions . Regards K.Karthikeyan On Thu, Jul 14, 2011 at 7:33 PM, Al @ Lab42 wrote: > Thanks for the suggestions, they are going to be merged. > That's a define I did various years ago that actually has been useful in > various cases (I do agree that it's bett

[Puppet Users] LDAP ENC

2011-07-14 Thread Craig White
Seems straight forward enough but I keep getting errors. On a client... err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node ubuntu5.ttinet: LDAP Search failed on the puppet master... puppet.conf [master] # ENC (external node classificiations)

Re: [Puppet Users] Re: What is the best practice to clean up installed components on a node?

2011-07-14 Thread Darrell Fuhriman
> > Puppet does not keep track of the state before applying a resource. > Even if Puppet *did* track prior state, there would still be an issue > of choosing which of possibly many prior states to revert to. I'm not asking puppet to know what to do, which I agree is ridiculous. I'm saying that i

Re: [Puppet Users] Re: Puppet 2.6.x fate

2011-07-14 Thread Jacob Helwig
On Thu, 14 Jul 2011 09:53:36 -0700, PBWebGuy wrote: > > Hi Mike, > > I wanted to comment on bug http://projects.puppetlabs.com/issues/7680 > which is a regression introduced in 2.6.8. I recently ran into this > issue and had to downgrade to 2.6.7 from 2.6.8. When I discovered the > issue I trie

[Puppet Users] Re: puppetrun/puppet kick

2011-07-14 Thread Craig White
Too stupid a question? (puppet kick seems to be identical to puppetrun command as discussed in Pro Puppet book) I spent enough time looking through puppet documentation and googling and couldn't solve it so I asked... On Jul 12, 2011, at 4:21 PM, Craig White wrote: > Can't seem to make it work

Re: [Puppet Users] puppetrun/puppet kick

2011-07-14 Thread Nick Lewis
On Tuesday, July 12, 2011 at 4:21 PM, Craig White wrote: > Can't seem to make it work > > puppet 2.6.8 (client/server) > > # puppet kick -f ubuntu4.ttinet > Triggering ubuntu4.ttinet > Host ubuntu4.ttinet failed: Error 400 on SERVER: 'save ' is not an allowed > value for method directive > ubu

Re: [Puppet Users] puppetrun/puppet kick

2011-07-14 Thread Craig White
On Jul 14, 2011, at 10:50 AM, Nick Lewis wrote: > On Tuesday, July 12, 2011 at 4:21 PM, Craig White wrote: > >> Can't seem to make it work >> >> puppet 2.6.8 (client/server) >> >> # puppet kick -f ubuntu4.ttinet >> Triggering ubuntu4.ttinet >> Host ubuntu4.ttinet failed: Error 400 on SERVER: '

Re: [Puppet Users] LDAP ENC

2011-07-14 Thread Rob McBroom
On Jul 14, 2011, at 1:16 PM, Craig White wrote: > Seems straight forward enough but I keep getting errors. On a client... > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Failed when searching for node ubuntu5.ttinet: LDAP Search failed Have you looked at the logs

Re: [Puppet Users] Re: Seemingly random failures after 2.7.1 upgrade

2011-07-14 Thread Gustavo Soares
Hi Nigel, here we go... * all my classes are "included" (I was still using 0.25.x...) * In my $confdir/manifests/classes/roles I have a very generic class for all puppet hosts declared as follow: class role_puppet_common { $role = "puppet_common" include common include puppet::common include pu

Re: [Puppet Users] LDAP ENC

2011-07-14 Thread Craig White
On Jul 14, 2011, at 11:16 AM, Rob McBroom wrote: > On Jul 14, 2011, at 1:16 PM, Craig White wrote: > >> Seems straight forward enough but I keep getting errors. On a client... >> >> err: Could not retrieve catalog from remote server: Error 400 on SERVER: >> Failed when searching for node ubunt

Re: [Puppet Users] LDAP ENC

2011-07-14 Thread Rob McBroom
On Jul 14, 2011, at 2:41 PM, Craig White wrote: > doesn't appear to actually do anything other than bind - I don't see the > results of any search operation when I run slapd trace level (-d 1) It’s reporting error 53 when you bind, which is “unwilling to perform”. I think the only time I’ve see

Re: [Puppet Users] LDAP ENC

2011-07-14 Thread Craig White
On Jul 14, 2011, at 12:32 PM, Rob McBroom wrote: > On Jul 14, 2011, at 2:41 PM, Craig White wrote: > >> doesn't appear to actually do anything other than bind - I don't see the >> results of any search operation when I run slapd trace level (-d 1) > > It’s reporting error 53 when you bind, whi

Re: [Puppet Users] Re: how to write classes to install package from source

2011-07-14 Thread Scott Smith
Use fpm http://github.com/jordansissel/fpm On Jul 14, 2011 10:08 AM, "KarthiKeyan. Kesavan" wrote: > Hi guys, > > Thanks a lot for the suggestions . > > Regards > > K.Karthikeyan > > On Thu, Jul 14, 2011 at 7:33 PM, Al @ Lab42 wrote: > >> Thanks for the suggestions, they are going to be merged.

[Puppet Users] facts_terminus = rest

2011-07-14 Thread Glenn Bailey
Anyone using this? I'm trying to setup a separate inventory server for multiple puppet masters to report back. For testing purposes I have in my auth.conf: path /facts auth any method find, search allow * Then on the "slave" puppet masters I have in the puppet.conf [master] section: facts_termin

[Puppet Users] Re: What is the best practice to clean up installed components on a node?

2011-07-14 Thread jcbollinger
On Jul 14, 12:16 pm, Darrell Fuhriman wrote: > > Puppet does not keep track of the state before applying a resource. > > Even if Puppet *did* track prior state, there would still be an issue > > of choosing which of possibly many prior states to revert to. > > I'm not asking puppet to know what

[Puppet Users] More ENC / LDAP difficulty

2011-07-14 Thread Craig White
Ignoring my inability to authenticate for the time being, if I define classes in LDAP, it seems that doesn't work: # ubuntu5.ttinet, Hosts, ttinet.local dn: cn=ubuntu5.ttinet,ou=Hosts,dc=ttinet,dc=local objectClass: device objectClass: top objectClass: puppetClient objectClass: ipHost ipHostNumbe

Re: [Puppet Users] Re: What is the best practice to clean up installed components on a node?

2011-07-14 Thread Darrell Fuhriman
> > That still isn't sensible. It simply is not safe to assume that the > absence of class X in a node's catalog is a signal that X::disabled > should be included in that catalog. For instance, suppose I have a > pair X, X::disabled of classes specific to OS X. I don't want *either > one* on my

[Puppet Users] Problem to start puppet

2011-07-14 Thread Anton
Hello Im following this guide http://aaronwalrath.wordpress.com/2010/09/03/installing-and-configuring-puppet-on-centos-linux/ (running centos 5.6). But when i try puppetmasterd --verbose --no- daemonize on the supposed server machine it only prints (like cat) / etc/puppet/puppet.conf. in the termi

Re: [Puppet Users] Puppet 2.7.x and Facter 1.6 packages for Redhat/CentOS 5

2011-07-14 Thread Michael Stahnke
I have builds of facter 1.6 and puppet 2.7.2 for EL 5 and 6 available http://stahnma.fedorapeople.org/puppetlabs/ I'm working on Fedora 14/15 builds currently also. These also are not currently signed, and there is no stahnma-repo rpm or anything like that. I'm basically just trying scratch a

[Puppet Users] Using puppet to import database on client side

2011-07-14 Thread newguy
Hi guys I have database dump available on pastebin/exzxzxz I want the puppet server to download the dump from pastebin and store it at a fixed location(suppose /home/dump) and then open mysql on the client side(mysql is installed on the client) and run the import command so that the downloaded du

[Puppet Users] Re: Puppet agent creates certificates for localhost.localdomain and does not pick up the changed hostname

2011-07-14 Thread Sriramu Singaram
Hi Guyz, After lot of changes, I finally found out the solution for the problem, it was the /etc/sysconfig/puppet and /etc/logrotate.d/puppet file. Once I removed this file everything works perfectly. Apparently this file I guess overrides the commandline flags I give to puppetd when starting it

[Puppet Users] Re: Puppet agent creates certificates for localhost.localdomain and does not pick up the changed hostname

2011-07-14 Thread Sriramu Singaram
Also, I did not have to modify any of the other files like /etc/hosts or /etc/sysconfig/network. Thanks, Sriramu On Jul 14, 5:47 pm, Sriramu Singaram wrote: > Hi Guyz, > > After lot of changes, I finally found out the solution for the > problem, it was the /etc/sysconfig/puppet and /etc/logrotat

[Puppet Users] ANNOUNCE: Puppet Dashboard 1.2rc1

2011-07-14 Thread Michael Stahnke
This a feature release candidate of Puppet Dashboard. This release is available for download at: http://downloads.puppetlabs.com/dashboard/ We have included Debian and RPM packages as well as a tarball. See the Verifying Puppet Download section at: http://projects.puppetlabs.com/projects/puppet

[Puppet Users] new variable scoping in templates

2011-07-14 Thread lurdan
hi, What's the best way to refer variables which pass as defined resource parameter from template erbs? I've been made many modules which has resource definitions containing file templating. After I upgrade my puppet version to 2.7.0rc (debian experimental), I'm getting many warnings "Dynamic loo

Re: [Puppet Users] Re: What is the best practice to clean up installed components on a node?

2011-07-14 Thread Scott Smith
You never heard of nmap, eh? If you want to start talking about security and auditing, that's a whole other can of worms. It's a bad idea to assume that Defined State and Actual State will match. Anyway, I think you're forgetting that node state in Puppet is explicit by nature. What you're asking

Re: [Puppet Users] facts_terminus = rest

2011-07-14 Thread Scott Smith
I personally couldn't get it to work (no facts in Dashboard), but only spent a short amount of time on it. On Thu, Jul 14, 2011 at 1:50 PM, Glenn Bailey wrote: > Anyone using this? I'm trying to setup a separate inventory server for > multiple puppet masters to report back. For testing purposes I

[Puppet Users] Re: Using puppet to import database on client side

2011-07-14 Thread newguy
Guys somebody please help On Jul 14, 5:32 pm, newguy wrote: > Hi guys > I have database dump available on pastebin/exzxzxz > > I want the puppet server to download the dump from pastebin and store > it at a fixed location(suppose /home/dump) and then open mysql on the > client side(mysql is

[Puppet Users] Re: Using puppet to import database on client side

2011-07-14 Thread Al @ Lab42
The quick way is to apply a pair of exec resources on the client machine: - One that downloads the sql file and the other one (that requires the first one) that applies it. Something like: exec { "Retrieve $url": cwd => "$work_dir", command => "wget $url",

Re: [Puppet Users] Re: Using puppet to import database on client side

2011-07-14 Thread Marek Dohojda
Personally I don't think using puppet for this would not be the best solution. However here is what I would do. Write a shell script to do what you need, and than use puppet's EXEC statement to launch this command as needed. You could also use custom Fact for this. For instance have you cus