Re: [Puppet Users] Selecting repos

2011-07-12 Thread Stefan Schulte
Hi Den, at least I can tell you that you're not the only one encountering this issue: http://projects.puppetlabs.com/issues/2247 -Stefan On Tue, Jul 12, 2011 at 01:13:10AM +, tu2bg...@gmail.com wrote: > Hi all, > > Got an issue which is starting to annoy me. > > How do people currently sel

Re: [Puppet Users] Selecting repos

2011-07-12 Thread Arnaud Gomes-do-Vale
Hi, tu2bg...@gmail.com writes: > How do people currently select repos from which to install particular > packages? Currently we have a base centos, (enabled by default), and > several others that I want to enable and disable for particular > packages, like being able to use the --disablerepo=* >

[Puppet Users] Re: Running puppet client on OS X

2011-07-12 Thread treydock
That's what I was thinking would be the case, but since the puppetmaster files are also installed in OS X, that must by why a puppet user is required. So is there a way to do a "client only" install of Puppet in OS X? On Jul 12, 1:47 am, Patrick wrote: > On Jul 11, 2011, at 7:51 PM, treydock wr

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

2011-07-12 Thread CHEBRIAN
Hi, I want to write the class to install the packages from source . Please suggest me how to achieve the following things . 1. download the source file and extract it . 2. to the make && make install and verify the installation Regards CHEBRIAN -- You received this message because you are s

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

2011-07-12 Thread Al @ Lab42
You might find this define useful ( https://github.com/example42/puppet-modules/blob/master/common/manifests/defines/netinstall.pp ): define netinstall ( $url, $extracted_dir, $destination_dir, $owner = "root", $group = "root", $work_dir = "/var/tmp", $extract_comman

[Puppet Users] Seemingly random failures after 2.7.1 upgrade

2011-07-12 Thread treydock
I recently upgraded my Puppetmaster to 2.7.1, and am now having what seem to be random puppet run failures on almost all my nodes. All nodes except the actual puppetmaster are running 2.6.8. Right now I will get alerted about a failure, then log into that system and do a manual run, which will su

Re: [Puppet Users] How to avoid the use of defined

2011-07-12 Thread Arnaud Gomes-do-Vale
Arnaud Gomes-do-Vale writes: > class wordpress { > # apache::lamp includes apache::php > include apache::lamp > > if $::os == 'rhel5' { > include apache::php53 > } > # .../... > } Including apache::php53 before apache::lamp fixes the issue. I wouldn't trust this is rock-solid thoug

[Puppet Users] Re: all classes applied to every node

2011-07-12 Thread jcbollinger
On Jul 11, 10:52 am, Zach wrote: > Hi all, > > I'm noticing that all classes I have created are being applied to > every node, even ones that don't specifically "include" them.  There > is no inheritance occurring that would allow this to happen.  I've > been reading docs and couldn't find anyth

[Puppet Users] Re: A Question about mixing Puppet with other things

2011-07-12 Thread Brian
On Jul 7, 2:47 pm, Dan White wrote: > In "Pro Linux System Administration" Mr. Turnbull discusses Cobbler and Puppet > In "Pro Puppet" he discusses Foreman and Puppet. > > Would anyone out there be willing and able to talk about the differences > between Cobbler and Foreman as they relate to Pu

[Puppet Users] Re: all classes applied to every node

2011-07-12 Thread Zach
You guys got me on the right track... Turns out I was running into this: "One of THE MOST DIFFICULT concepts to understand for puppet newbies is that these two things are identical: include foo class { 'foo': }" In my case, I was declaring things like: class { "nagios::webserver":

[Puppet Users] Re: Possible leaking records in dashboard db

2011-07-12 Thread Rob Braden
There is already a bug open on this issue: http://projects.puppetlabs.com/issues/6717 So far, I've been manually cleaning out tables periodically, but that's not going to work long term. On Jul 12, 1:17 am, Patrick wrote: > I'm using puppet-dashboard 1.1.0-1 on Ubuntu.  I remove old reports usi

Re: [Puppet Users] Re: Running puppet client on OS X

2011-07-12 Thread Nan Liu
On Tue, Jul 12, 2011 at 2:21 AM, treydock wrote: > That's what I was thinking would be the case, but since the > puppetmaster files are also installed in OS X, that must by why a > puppet user is required.  So is there a way to do a "client only" > install of Puppet in OS X? Puppet 2.6+ is a sing

[Puppet Users] Re: How to avoid the use of defined

2011-07-12 Thread jcbollinger
On Jul 11, 11:31 am, Arnaud Gomes-do-Vale wrote: > Hi folks, > > This is a "best practices" question as much as a technical one. > > I am trying to redefine variables when I include a specific class. The > use case is installing php 5.3 on a few select centos 5 boxes while > keeping the default

Re: [Puppet Users] Re: all classes applied to every node

2011-07-12 Thread Jacob Helwig
Zach wrote: You guys got me on the right track... Turns out I was running into this: "One of THE MOST DIFFICULT concepts to understand for puppet newbies is that these two things are identical: include foo class { 'foo': }" In my case, I was declaring things like: class { "nagios::webserver":

Re: [Puppet Users] Re: A Question about mixing Puppet with other things

2011-07-12 Thread Dan White
This tells me RedHat picked Foreman over Cobbler. It does not tell me WHY. Their reasons may not apply to my situation. I am not trying to be difficult, but I find that I cannot accept an opinion on a technical issue without technical information to back it up. Also, this is for my job, so I

[Puppet Users] Possible bug? Can't remove and then put back a file?

2011-07-12 Thread Haitao Jiang
This happens to Puppet 2.7.1 (both master and client). I have a file resource that I set to ensure => absent, Puppet removed it correctly with info line that it has a duplicate entry in the filebucket. I then changed the ensure => present, the agent run gave me following error: /usr/bin/puppet:19

Re: [Puppet Users] Selecting repos

2011-07-12 Thread James A. Peltier
- Original Message - | Hi all, | | Got an issue which is starting to annoy me. | | How do people currently select repos from which to install particular | packages? Currently we have a base centos, (enabled by default), and | several others that I want to enable and disable for particular

Re: [Puppet Users] Possible bug? Can't remove and then put back a file?

2011-07-12 Thread Jacob Helwig
On Tue, 12 Jul 2011 08:41:24 -0700, Haitao Jiang wrote: > > This happens to Puppet 2.7.1 (both master and client). I have a file > resource that I set to ensure => absent, Puppet removed it correctly > with info line that it has a duplicate entry in the filebucket. I then > changed the ensure => p

[Puppet Users] Re: Issue with puppet file serving api not parsing yaml content correctly

2011-07-12 Thread Derek Tamsen
Unfortunately, it does not work. That was the first thing I had tried to try and reproduce the problem in ruby outside a puppet run. Also, here are the ruby util modules for puppet in 0.25.4: /opt/ruby-1.8.6-p287/lib/ruby/site_ruby/1.8/puppet/util autoload autoload.rb backups.rb cacher.rb checksu

Re: [Puppet Users] Moving config to an ENC

2011-07-12 Thread Justin Lambert
I have just gotten to playing with this and am doing something wrong, probably very basic. On the puppetmaster (which for my testing is also the client) I have create_resources.rb in /var/lib/puppet/lib/puppet/parser/functions. I wrote a new ENC that will just output a very basic YAML to test thi

Re: [Puppet Users] Possible bug? Can't remove and then put back a file?

2011-07-12 Thread Haitao Jiang
Jacob Thanks. I did that, the checksum is a3f7372d40abae273d2680b650ca4715. This is the second checksum in the error, what did 1st checksum came from? The file itself never changed during my tests. What is the next step? Thanks Haitao On Tue, Jul 12, 2011 at 9:53 AM, Jacob Helwig wrote: > On

Re: [Puppet Users] Possible bug? Can't remove and then put back a file?

2011-07-12 Thread Jacob Helwig
Well, it turns out that it's definitely a puppet bug. The streaming checksumming that's used doesn't actually only look at the first 512 characters like the static checksumming that's used for verifying the file on disk does. http://projects.puppetlabs.com/issues/8385 -- Jacob Helwig On Tue, 1

Re: [Puppet Users] Possible bug? Can't remove and then put back a file?

2011-07-12 Thread Haitao Jiang
Jacob Thanks for confirming that. There might be another related bug: when I changed the ensure => mtime, it still failed: /usr/bin/puppet:19:in `load' /usr/bin/puppet:19 err: /Stage[main]/Emb/File[/opt/jetty-distribution-7.4.2.v20110526.tar.gz]/ensure: change from absent to file failed: Could

Re: [Puppet Users] Re: A Question about mixing Puppet with other things

2011-07-12 Thread Scott Smith
Doesn't the Foreman use Cobbler for managing PXE and Kickstart? -scott On Tue, Jul 12, 2011 at 8:26 AM, Dan White wrote: > This tells me RedHat picked Foreman over Cobbler. It does not tell me WHY. > > Their reasons may not apply to my situation. > > I am not trying to be difficult, but I find

[Puppet Users] Freezes at "debug: file_metadata supports formats:"

2011-07-12 Thread Mathew Binkley
Hi. I have a client and server running Puppet 2.7.1 from GEMS (though the same problem occurs using the Ubuntu Lucid standard packages). I try to update the client against the server, and it freezes at this line: debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw yaml; usi

Re: [Puppet Users] Re: A Question about mixing Puppet with other things

2011-07-12 Thread Ohad Levy
On Tue, Jul 12, 2011 at 10:53 PM, Scott Smith wrote: > Doesn't the Foreman use Cobbler for managing PXE and Kickstart? not at all. Ohad > > -scott > > > On Tue, Jul 12, 2011 at 8:26 AM, Dan White wrote: > >> This tells me RedHat picked Foreman over Cobbler. It does not tell me >> WHY. >> >>

Re: [Puppet Users] Re: A Question about mixing Puppet with other things

2011-07-12 Thread Denmat
Okay I'll have a stab at some differences for you and some similarities. Cobbler is written in python and foreman in ruby like puppet. They each do a similar kind of thing with a similar tool set; dns, pxe, dhcp. Each have a gui. Cobbler only recently included debian support in their main line a

[Puppet Users] I: Cloud hosting made easy with OpenStack and Puppet

2011-07-12 Thread pinto.e...@gmail.com
Perhaps someone of this list is interested. Regards Messaggio originale Da: SearchEnterpriseLinux.com Inviato: 12/07/2011, 21:02 A: pinto.e...@gmail.com Oggetto: Cloud hosting made easy with OpenStack and Puppet Search

[Puppet Users] Run this only once!!

2011-07-12 Thread vella1tj
Hi, I am trying run a package once and when it completes I want my manifest to create a touch file and from that file being placed there it will not run again. I have this so far, but have been running into syntax problems/invalid parameters. #Package to install package { 'Bindscript20100601.dmg

Re: [Puppet Users] Moving config to an ENC

2011-07-12 Thread Denmat
Hi, is 'something::other' valid in yaml? Cheers Den On 13/07/2011, at 3:43, Justin Lambert wrote: > I have just gotten to playing with this and am doing something wrong, > probably very basic. > > On the puppetmaster (which for my testing is also the client) I have > create_resources.rb in /v

Re: [Puppet Users] Run this only once!!

2011-07-12 Thread Jacob Helwig
On Tue, 12 Jul 2011 13:19:34 -0700, vella1tj wrote: > > Hi, I am trying run a package once and when it completes I want my > manifest to create a touch file and from that file being placed there > it will not run again. I have this so far, but have been running into > syntax problems/invalid param

Re: [Puppet Users] Run this only once!!

2011-07-12 Thread vella1tj
package { 'Bindscript20100601.dmg': provider => pkgdmg, ensure => installed, source => 'temp/location/rightnow/Bindscript20100601.dmg', } Seems to work fine I return this once it runs "notice: //Package[Bindscript20100601.pkg.dmg]/ensure: created" So it will only run once o

Re: [Puppet Users] Run this only once!!

2011-07-12 Thread Nigel Kersten
On Tue, Jul 12, 2011 at 1:37 PM, Jacob Helwig wrote: > > This shouldn't actually be necessary. The pkgdmg provider should keep > track of which things it's installed, so it won't keep trying to install > the .dmg on every run. > > and for further detail, due to OS X not having a real package man

Re: [Puppet Users] Run this only once!!

2011-07-12 Thread Jacob Helwig
On Tue, 12 Jul 2011 13:43:45 -0700, vella1tj wrote: > > package { 'Bindscript20100601.dmg': > provider => pkgdmg, > ensure => installed, > source => 'temp/location/rightnow/Bindscript20100601.dmg', > } > > Seems to work fine I return this once it runs "notice: > //Package[B

Re: [Puppet Users] Moving config to an ENC

2011-07-12 Thread Justin Lambert
I am using the create_resource module backported from 2.7 to 2.6 to make this possible. The module I am using was recommeded by Dan Bode and can be found at https://github.com/puppetlabs/puppetlabs-create_resources. I'm sure it is just something in the way I am implementing it. On Tue, Jul 12, 2

[Puppet Users] puppetrun/puppet kick

2011-07-12 Thread Craig White
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 ubuntu4.ttinet finished with exit code 2 Failed: ubuntu4.ttinet root@ubuntu4:~#

Re: [Puppet Users] A Question about mixing Puppet with other things

2011-07-12 Thread Glenn Bailey
We use Cobbler to provision and Puppet to manage. Once our server is provisioned it'll never speak to the Cobbler server again. Lay down the most basic config you need with Cobbler to allow it to pull the Puppet agent and config from a repo, and then let Puppet take over. I have little experience

[Puppet Users] Perform puppetrun on a subset of the included classes

2011-07-12 Thread Andrew Thompson
Does puppet have/support the use case where I only want to include certain classes if the puppet daemon is running, and another set if classes if puppet is run manually with the runonce option? I think a good example would be: * I want to include nagios and nrpe when run via the daemon * I want to

Re: [Puppet Users] Perform puppetrun on a subset of the included classes

2011-07-12 Thread Ken Barber
Have you looked at tags? http://docs.puppetlabs.com/references/stable/metaparameter.html#tag http://docs.puppetlabs.com/references/stable/function.html#tag It allows you to tag parts of your content, and selectively run it with --tags on the command line. Classes are already tagged implicitly w

[Puppet Users] puppet never finishing when there are thousands of resources

2011-07-12 Thread Rich Rauenzahn
We are using puppet to export nagios resources (now we're using file resources to represent them) and the number of resources is probably in the thousands -- our puppet runs take 6GB (on the client side) and then just sort of spin forever (it's been running for a couple of hours now -- and no, we'r

Re: [Puppet Users] puppet never finishing when there are thousands of resources

2011-07-12 Thread Nigel Kersten
On Tue, Jul 12, 2011 at 7:53 PM, Rich Rauenzahn wrote: > We are using puppet to export nagios resources (now we're using file > resources to represent them) and the number of resources is probably > in the thousands -- our puppet runs take 6GB (on the client side) and > then just sort of spin for

[Puppet Users] puppet-dashboard delayed workers

2011-07-12 Thread Nathan
Hello I have just installed puppet dashboard from git. everything seems to load ok except it seems as though background tasks are not being run. According to the code README: running: # env CPUS=4 RAILS_ENV=production /.../script/delayed_job -p dashboard -n $CPUS -m start will start the worker

[Puppet Users] nodes.pp in different environments

2011-07-12 Thread newguy
Hi guys I have a small question, I have 3 environments in puppet.conf file: [development] modulepath=/etc/puppet/development/modules manifests=/etc/puppet/development/manifests/site.pp I have defined the site.pp path, my question is do I need to make a nodes.pp for every environment?? Thanks

[Puppet Users] Best way to create a repo, looking for advice and tips

2011-07-12 Thread S Ahmed
What is the best way to create a repo? I like to take baby steps, and test things as I go. Is this kind of development style possible with puppet? My hope was to do something like: Have 1 ec2 vm open that will be my test vm where I will manually install e.g. mysql or nginx, and then look at wha

Re: [Puppet Users] nodes.pp in different environments

2011-07-12 Thread Michael Knox
Hi, On 13/07/11 2:03 PM, newguy wrote: Hi guys I have a small question, I have 3 environments in puppet.conf file: [development] modulepath=/etc/puppet/development/modules manifests=/etc/puppet/development/manifests/site.pp I have defined the site.pp path, my question is do I need to make a no

[Puppet Users] Re: nodes.pp in different environments

2011-07-12 Thread newguy
SO if I understand you correctly, if am not using ENC I should have a nodes.pp for each environment? On Jul 12, 10:19 pm, Michael Knox wrote: > Hi, > > On 13/07/11 2:03 PM, newguy wrote:> Hi guys > > I have a small question, I have 3 environments in puppet.conf file: > > > [development] > > modu

Re: [Puppet Users] Moving config to an ENC

2011-07-12 Thread Dan Bode
On Tue, Jul 12, 2011 at 10:43 AM, Justin Lambert wrote: > I have just gotten to playing with this and am doing something wrong, > probably very basic. > > On the puppetmaster (which for my testing is also the client) I have > create_resources.rb in /var/lib/puppet/lib/puppet/parser/functions. > >

Re: [Puppet Users] puppet-dashboard delayed workers

2011-07-12 Thread John Warburton
On 13 July 2011 13:49, Nathan wrote: > Hello > > I have just installed puppet dashboard from git. > > everything seems to load ok except it seems as though background tasks > are not being run. > > You have to start them up yourself. An init script is a good idea to ensure they get started at boo

Re: [Puppet Users] Re: A Question about mixing Puppet with other things

2011-07-12 Thread Ohad Levy
On Tue, Jul 12, 2011 at 6:26 PM, Dan White wrote: > This tells me RedHat picked Foreman over Cobbler. It does not tell me WHY. > > Their reasons may not apply to my situation. > > I am not trying to be difficult, but I find that I cannot accept an opinion > on a technical issue without technical

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

2011-07-12 Thread vagn scott
On 07/12/2011 06:19 AM, Al @ Lab42 wrote: command => "mkdir -p $destination_dir ; cd $destination_dir ; $extract_command $work_dir/$source_filename", Nice. But I would suggest changing ';' to '&&'. That way, if the mkdir or cd fail you don't end up trying to extract the archive i