[Puppet Users] Re: Adding a parameter to a custom Puppet type/provider

2011-11-14 Thread Gonzalo Servat
... and I just found this ( http://docs.puppetlabs.com/guides/troubleshooting.html): err: Could not retrieve catalog: Invalid parameter ‘foo’ for type ‘bar’ When you are developing new custom types, you should restart both the puppetmasterd and the puppetd before running the configuration using th

[Puppet Users] Adding a parameter to a custom Puppet type/provider

2011-11-14 Thread Gonzalo Servat
Hi All, I've downloaded a Puppet module and I'm trying to add a parameter to it by editing lib/puppet/type/.rb. I simply added: newproperty(:pcfree) do desc "My description here" end In the corresponding file in lib/puppet/provider, I do something with :pcfree. Whenever I call t

[Puppet Users] Announce: Puppet 2.7.7rc2 is available

2011-11-14 Thread Michael Stahnke
Puppet 2.7.7rc2 is available. This RC addresses a few significant issues found in 2.7.7rc1. File serving performance issue with large numbers of files: https://projects.puppetlabs.com/issues/9671 Agent may crash when attempting to manage permissions on non-NTFS filesystems (on Windows) https://p

[Puppet Users] Announce: Puppet Dashboard 1.2.3rc2 available

2011-11-14 Thread Michael Stahnke
This is a maintenance release of Puppet Dashboard release candidate. This rc address one issue: (#10024) Update Puppet Dashboard Workers init script This release is available for download at: http://downloads.puppetlabs.com/dashboard/ We have included Debian and RPM packages as well as a tarbal

Re: [Puppet Users] warning: Group users found in both groupadd and groupadd; skipping the groupadd version

2011-11-14 Thread Jo Rhett
On Nov 14, 2011, at 12:43 PM, Stefan Schulte wrote: > On Mon, Nov 14, 2011 at 11:27:40AM -0800, Jo Rhett wrote: >> Okay, so this is totally not the most helpful error message: >> $ ralsh group ops >> warning: Group users found in both groupadd and groupadd; skipping the >> group add ver

[Puppet Users] Re: How to use built-in resource in custom provider?

2011-11-14 Thread tmpup
That sort of works. The problem with that becomes multiple ways to get the file: source, content, target. You can't specify both in the file definition. There would have to be some sort of conditional, I suppose. On Nov 14, 12:56 pm, Aaron Grewell wrote: > Any parameters you don't always want t

Re: [Puppet Users] Re: How to use built-in resource in custom provider?

2011-11-14 Thread Aaron Grewell
Any parameters you don't always want to provide have to have sensible defaults in the define. define dostuff (ImOptional="true", ImRequired){} On Mon, Nov 14, 2011 at 12:12 PM, tmpup wrote: > An update - I went with a define as you suggested, and just made had > my type/provider handle s3 only.

Re: [Puppet Users] warning: Group users found in both groupadd and groupadd; skipping the groupadd version

2011-11-14 Thread Stefan Schulte
On Mon, Nov 14, 2011 at 11:27:40AM -0800, Jo Rhett wrote: > Okay, so this is totally not the most helpful error message: > $ ralsh group ops > warning: Group users found in both groupadd and groupadd; skipping the > group add version > > Huh? Anyone who has a clue what this is trying

[Puppet Users] Re: How to use built-in resource in custom provider?

2011-11-14 Thread tmpup
An update - I went with a define as you suggested, and just made had my type/provider handle s3 only. This is working great, so I guess this is the method I'll go with. Only issue I'm having now - all the parameters available with file() type. Sometimes we may want to specify owner, sometimes no

Re: [Puppet Users] Puppet runs in test mode but hangs as service

2011-11-14 Thread Jo Rhett
This is very likely related to the latest kernel release. Backgrade from 274.7.1 to 274.3.1 and the problem will disappear. This is documented in https://projects.puppetlabs.com/issues/10418 And RedHat bug https://bugzilla.redhat.com/show_bug.cgi?id=751214 On Nov 10, 2011, at 1:23 PM, Chip

[Puppet Users] warning: Group users found in both groupadd and groupadd; skipping the groupadd version

2011-11-14 Thread Jo Rhett
Okay, so this is totally not the most helpful error message: $ ralsh group ops warning: Group users found in both groupadd and groupadd; skipping the group add version Huh? Anyone who has a clue what this is trying to say? -- Jo Rhett Net Consonance : consonant endings by net p

[Puppet Users] Re: How to use built-in resource in custom provider?

2011-11-14 Thread tmpup
What you alluded to in your final paragraph is exactly right - I'm basically trying to extend the file type. I'd like for a source to be S3, and be able to specify it much like you specify the source being the puppet file server (e.g puppet:/// would be s3://). So, I got the s3 part working, now

Re: [Puppet Users] Puppet runs in test mode but hangs as service

2011-11-14 Thread Chip Schweiss
I stumbled upon a difference between my puppet clients that are still working fine and those that are not. Those that are hanging all have 'listen =- true' set in their puppet.conf. My puppet version hasn't change in a while but I do run yum update frequently on Centos. My guess is something upd

Re: [Puppet Users] Re: ANNOUNCE: Puppet-Dashboard 1.2.3rc1 available

2011-11-14 Thread Michael Stahnke
On Sat, Nov 5, 2011 at 6:31 AM, Stefan Heijmans wrote: > On 4 nov, 23:06, Matthaus Litteken wrote: >> -- Fix #10270 dashboard-workers init script should check the right pid files > > puppet-dashboard/ext/packaging/redhat/puppet-dashboard-workers.init > uses DASHBOARD_ROOT > this is not set in pup

Re: [Puppet Users] Stored config error "Could not autoload active_record: uninitialized constant ActiveRecord"

2011-11-14 Thread Ohad Levy
On Mon, Nov 14, 2011 at 2:10 PM, Tom wrote: > Hi, > > Attempting to get Puppet, Ruby Ent, Foreman, and Passenger working on > Centos 6 but ran into this problem with stored configs. > > Tried getting stored configs working through MySQL but when I run = > >>puppet agent --test --debug --no-daemoni

[Puppet Users] Stored config error "Could not autoload active_record: uninitialized constant ActiveRecord"

2011-11-14 Thread Tom
Hi, Attempting to get Puppet, Ruby Ent, Foreman, and Passenger working on Centos 6 but ran into this problem with stored configs. Tried getting stored configs working through MySQL but when I run = >puppet agent --test --debug --no-daemonize -v on the Puppet Master I get this error = "err: Cou

Re: [Puppet Users] Need a second set of eyes... cannot find a class..

2011-11-14 Thread Peter Berghold
On Mon, Nov 14, 2011 at 12:23 AM, Aaron Grewell wrote: > Try removing the hyphen from the class name. If that fixes it then you've > hit this: > http://projects.puppetlabs.com/issues/5268 > > It would appear that was the case. Surprised that I didn't run into this before. I actually ended up doi

[Puppet Users] Re: How to use built-in resource in custom provider?

2011-11-14 Thread jcbollinger
On Nov 13, 11:28 pm, tmpup wrote: > I'm trying to use the existing type: file in a custom provider.  I've > tried about every single thing I can find, and each way presents a > different problem. > > Here's how it looks now: > > --- > require 'puppet/file_serving/configuration' > require 'puppet

[Puppet Users] Re: How does puppet copy files?

2011-11-14 Thread jcbollinger
On Nov 13, 4:59 am, Dmitry wrote: > On Nov 11, 9:46 pm, Peter Meier wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > When agent notices that master.passwd should be refreshed, how > > > exactly does copy process happen? Is it atomic (e.g. fetch to some > > > temp filename

Re: [Puppet Users] Puppet in a bash script

2011-11-14 Thread John Kennedy
On Fri, Nov 11, 2011 at 18:40, Harish Agarwal wrote: > Hello, > > I'm using puppet via a bash script when I spin up a machine to configure > it. I'd like to restart the instance after puppet's run is complete. In > my bash script I have: > > puppet agent --test > shutdown -r now > > > Puppet ru

Re: [Puppet Users] Puppet node network configuration

2011-11-14 Thread Ohad Levy
On Mon, Nov 14, 2011 at 1:52 PM, Scott Merrill wrote: > > > On Nov 14, 2011, at 4:01 AM, John Kennedy wrote: > > > > On Mon, Nov 14, 2011 at 08:52, Will S. G. wrote: >> >> What I would like to do is to set up a list of MAC addresses, along >> with the IP addresses a head of time, and then have p

Re: [Puppet Users] Puppet node network configuration

2011-11-14 Thread Ohad Levy
On Mon, Nov 14, 2011 at 10:52 AM, Will S. G. wrote: > Hello everyone, > > I'm fairly new to the DevOps realm, and while I've written my fair > share of bash loops and such, I figured it was time to learn something > new. That being said, I've been working on automating the kickstart > process (no

Re: [Puppet Users] Puppet node network configuration

2011-11-14 Thread Scott Merrill
On Nov 14, 2011, at 4:01 AM, John Kennedy wrote: On Mon, Nov 14, 2011 at 08:52, Will S. G. wrote: > > > What I would like to do is to set up a list of MAC addresses, along > with the IP addresses a head of time, and then have puppet rewrite the > networking configuration of the host based on M

[Puppet Users] Re: Puppet node network configuration

2011-11-14 Thread Will S. G.
That makes sense, probably less code gymnastics too. I forgot to say that I did MAC address reservation in the past. I suppose I was thinking there was possibly a more efficient approach. Thanks for the quick reply, John. On Nov 14, 1:00 am, John Kennedy wrote: > On Mon, Nov 14, 2011 at 08:52, W

Re: [Puppet Users] Puppet node network configuration

2011-11-14 Thread John Kennedy
On Mon, Nov 14, 2011 at 08:52, Will S. G. wrote: > Hello everyone, > > I'm fairly new to the DevOps realm, and while I've written my fair > share of bash loops and such, I figured it was time to learn something > new. That being said, I've been working on automating the kickstart > process (no co

[Puppet Users] Puppet node network configuration

2011-11-14 Thread Will S. G.
Hello everyone, I'm fairly new to the DevOps realm, and while I've written my fair share of bash loops and such, I figured it was time to learn something new. That being said, I've been working on automating the kickstart process (no cobbler yet). I've configured my Kickstart script (CentOS 6) to

[Puppet Users] Re: Puppet in a bash script

2011-11-14 Thread Rune Stensø
I'm not sure where you execute this, but this sound like a problem with your path. For initialization script and such, where you're unsure of the path, I suggest using the complete path for the command. For example /usr/bin/puppet and /sbin/shutdown. RuneSt. On 11 Nov, 20:40, Harish Agarwal wrot

Re: [Puppet Users] can I use puppet for security configuration check in centos

2011-11-14 Thread Nigel Kersten
On Sun, Nov 13, 2011 at 11:48 PM, Ohad Levy wrote: > On Sun, Nov 13, 2011 at 4:00 AM, modversion wrote: >> hi all,can I use puppet for security configuration check in centos ? >> 1.check the kernel version whether great than 2.8.18.237-1 or not. >> 2.check the glibc,systemtap and udev version whe