[Puppet Users] Managing network interfaces?

2012-10-25 Thread Brian Rak
I've been using Puppet to manage network interfaces on our machines. To do this I've got a class very similar to http://forge.puppetlabs.com/razorsedge/network . I'm encountering some annoyances with this method of handling it: 1) Every interface I have has to have a unique alias number. Thi

[Puppet Users] Re: What is the "@" used for?

2012-10-25 Thread Ben McCann
See http://docs.puppetlabs.com/guides/virtual_resources.html On Thursday, October 25, 2012 5:01:45 PM UTC-7, Dave Alden wrote: > > Hi, > Sorry to be dense, but I've recently switched over to use the puppet labs > apache module, but I was having trouble with the firewall not getting > updated.

Re: [Puppet Users] Re: Trouble adding a user to a group

2012-10-25 Thread Ben McCann
Definitely seems like a bug. I added the Puppet Ubuntu repo and upgraded to puppet 3.0.1 and it works now. I'm not going to bother filing it since it seems like it's since been fixed. On Thursday, October 25, 2012 5:01:11 PM UTC-7, Ben McCann wrote: > > That's not it. I changed it to Users::

[Puppet Users] What is the "@" used for?

2012-10-25 Thread Alden, David
Hi, Sorry to be dense, but I've recently switched over to use the puppet labs apache module, but I was having trouble with the firewall not getting updated. It turns out that the "@" in front of the firewall line seems to be keeping it from running. As soon as I removed it, my firewall got up

Re: [Puppet Users] Re: Trouble adding a user to a group

2012-10-25 Thread Ben McCann
That's not it. I changed it to Users::Virtual::Localuser <| |> and the problem is still happening. On Thu, Oct 25, 2012 at 4:59 PM, Stefan Schulte < stefan.schu...@taunusstein.net> wrote: > On Thu, Oct 25, 2012 at 04:34:26PM -0700, Ben McCann wrote: > > Yes, I am realizing it: > > Users::Virt

Re: [Puppet Users] Re: Trouble adding a user to a group

2012-10-25 Thread Stefan Schulte
On Thu, Oct 25, 2012 at 04:34:26PM -0700, Ben McCann wrote: > Yes, I am realizing it: > Users::Virtual::Localuser <| gid == users |> > > If I go onto the host and delete the user (sudo userdel myuser) then puppet > will create a new user and that user will be a member of all the groups I > desir

Re: [Puppet Users] Re: Trouble adding a user to a group

2012-10-25 Thread Jeff McCune
On Thu, Oct 25, 2012 at 4:34 PM, Ben McCann wrote: > Yes, I am realizing it: > Users::Virtual::Localuser <| gid == users |> > > If I go onto the host and delete the user (sudo userdel myuser) then > puppet will create a new user and that user will be a member of all the > groups I desire: >

Re: [Puppet Users] Re: Trouble adding a user to a group

2012-10-25 Thread Ben McCann
Yes, I am realizing it: Users::Virtual::Localuser <| gid == users |> If I go onto the host and delete the user (sudo userdel myuser) then puppet will create a new user and that user will be a member of all the groups I desire: notice: /Stage[main]/Users/Users::Virtual::Localuser[myuser]/User

Re: [Puppet Users] Re: Trouble adding a user to a group

2012-10-25 Thread Jeff McCune
On Thu, Oct 25, 2012 at 4:23 PM, Ben McCann wrote: > If I remove the virtualization aspect then it works. Any idea why that > might stop the groups from being applied? When you mark the resource as virtual, are you also realizing it somewhere else in your manifests? Without realizing a virtual

[Puppet Users] Re: Trouble adding a user to a group

2012-10-25 Thread Ben McCann
If I remove the virtualization aspect then it works. Any idea why that might stop the groups from being applied? On Thursday, October 25, 2012 1:01:08 PM UTC-7, Ben McCann wrote: > > Hi, > > I'm trying to add a user to a group. I've added the groups I would like > the user to appear in using

[Puppet Users] Announce: Facter 1.6.14-rc1 Available

2012-10-25 Thread Moses Mendoza
Facter 1.6.14-rc1 is a maintenance release candidate in the 1.6.x branch with bug fixes. Downloads are available at: * Source: https://downloads.puppetlabs.com/facter/facter-1.6.14-rc1.tar.gz RPMs are available at https://yum.puppetlabs.com/el or /fedora Rubygem available at http://rubygems.org

[Puppet Users] puppet-dashboard does not work after upgrade to puppet 3.0.1 and puppet-dashboard 1.21

2012-10-25 Thread danielt
Hi, I upgraded my running Puppet 2.6.7 to 3.0.1 today as well as my puppet-dashboard to 1.21. Since then the workers are not processing the reports anymore. I only see the following error in the Logfiles. [2012-10-25 23:24:06] ERROR bad Request-Line `?g\001\003\001\000N\000\000\000\020\000\000

Re: [Puppet Users] Connection Timed Out updating node on 3g mobile broadband device

2012-10-25 Thread Denmat
Interesting setup. Sometimes providers block uncommon ports. Can you get to 8140 over your 3/4g? If not, try running on 443 (change puppet.conf or apache ports). If none of these work check the docs for timeout settings (can't remember of hand). Den On 26/10/2012, at 3:55, Steve wrote: > I

[Puppet Users] creating a list of files from an external define

2012-10-25 Thread danielt
Hi! I have a helper module called helper with a define which looks like this: define helper::files ($path='', $requires='', $owner=root, $group=root, $mode=644, $ensure=present) { file { "${name}": ensure => $ensure, owner=> $owner, group=> $group, mode

[Puppet Users] Trouble adding a user to a group

2012-10-25 Thread Ben McCann
Hi, I'm trying to add a user to a group. I've added the groups I would like the user to appear in using the groups attribute: @users::virtual::localuser { "myuser": uid => "3000", groups => [ "sudo", "adm", "mygroup", ], sshkey => "", } I've defined loc

[Puppet Users] Announce: PuppetDB 1.0.2 Available

2012-10-25 Thread Matthaus Owens
PuppetDB 1.0.2 is now available for download! This is a bug-fix release of PuppetDB. This release addresses an issue with ruby 1.9 on debian based platforms where Puppet would not be able to load the puppetdb-terminus. # Downloads == Available in native package format at: http://yum.p

Re: [Puppet Users] Puppet Agent not sync with Puppet Master

2012-10-25 Thread Josh Cooper
Hi Saravanan, On Mon, Oct 22, 2012 at 11:48 PM, Saravanan Veeran wrote: > Dear Team, > > Currently, we have deployed "puppet-enterprise-2.6.0-el-6-x86_64" in our > environment. > Master Details: Red Hat Enterprise Linux Server release 6.1 (Santiago) > x86_64. > We have installed the Master as per

Re: [Puppet Users] Git clone manifest for windows puppet clinet

2012-10-25 Thread Josh Cooper
Hi Viktoriya, On Tue, Oct 23, 2012 at 3:29 PM, VT wrote: > Can anybody help to come up with a manifest file, which should instruct a > puppet client running on windows to clone a repository from github directly > to puppet client? Great thanks for help! > > -- > You received this message because

Re: [Puppet Users] using --tags --noop does not show changes ?

2012-10-25 Thread Jeff McCune
On Wed, Oct 24, 2012 at 5:21 PM, Daniel Aquino wrote: > I'm just learning about the --tags option and wanted to use it with --test > --verbose --noop to confirm that the changes were reduced compared to not > using --tags but as far as I can see when I use --tags I get no notices so > I'm not sure

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-10-25 Thread Jeff McCune
On Thu, Oct 25, 2012 at 11:26 AM, Fabrice Bacchella wrote: > > Le 25 oct. 2012 à 18:40, Jeff McCune a écrit : > > On Thu, Oct 25, 2012 at 4:42 AM, Fabrice Bacchella > wrote: > >> This patch does something magic. A broken node (with allocator undefined >> for Proc) is working when I apply your pa

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-10-25 Thread Fabrice Bacchella
Le 25 oct. 2012 à 18:40, Jeff McCune a écrit : > On Thu, Oct 25, 2012 at 4:42 AM, Fabrice Bacchella > wrote: > This patch does something magic. A broken node (with allocator undefined for > Proc) is working when I apply your patch to the puppet master and restart it. > I can then remove it a

Re: [Puppet Users] Puppet & Oracle Database config management

2012-10-25 Thread fatmcgav
Tim Cool, Cheers for that. Some good food for thought there... Cheers again. Gav On Oct 25, 2012 6:20 PM, "Tim Mooney" wrote: > In regard to: Re: [Puppet Users] Puppet & Oracle Database config...: > > Have you got any examples of the hiera config you're using? >> > > As I said, it's pretty rou

Re: [Puppet Users] Puppet & Oracle Database config management

2012-10-25 Thread fatmcgav
Tim Cool, Cheers for that. Some good food for thought there... Cheers again. Gav On Oct 25, 2012 6:20 PM, "Tim Mooney" wrote: > In regard to: Re: [Puppet Users] Puppet & Oracle Database config...: > > Have you got any examples of the hiera config you're using? >> > > As I said, it's pretty rou

Re: [Puppet Users] Puppet & Oracle Database config management

2012-10-25 Thread Tim Mooney
In regard to: Re: [Puppet Users] Puppet & Oracle Database config...: Have you got any examples of the hiera config you're using? As I said, it's pretty rough. class oracledb::sysctl( $use_amm = false, $large_mem_pages = '0', $hugetlb_gid = '1001', ) { validate_bool($use_amm) valida

[Puppet Users] Puppet Meetup at LinuxCon Europe: Nov 5 in Barcelona

2012-10-25 Thread Dawn Foster
We are having an informal Puppet Meetup at LinuxCon Europe in Barcelona on Monday, November 5 at 7:15pm. You don't need to be attending LinuxCon to join us at the meetup. I will be attending LinuxCon and hosting the meetup. The format is very informal. We won't have any presentations or speakers,

[Puppet Users] Connection Timed Out updating node on 3g mobile broadband device

2012-10-25 Thread Steve
I have a puppetmaster on an Amazon EC2 instance of Ubuntu 12.04. All of the puppet nodes I am running are also on ubuntu server 12.04. I can connect any of the nodes on a wireless or LAN connection. When I switch my node to a Verizon mobile 3g or 4g device I run "puppet agent -t" and I get the

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-10-25 Thread Jeff McCune
On Thu, Oct 25, 2012 at 4:42 AM, Fabrice Bacchella wrote: > This patch does something magic. A broken node (with allocator undefined > for Proc) is working when I apply your patch to the puppet master and > restart it. I can then remove it and the node will keep working. > Did you restart the pup

Re: [Puppet Users] Re: Multiple resource definition error

2012-10-25 Thread jcbollinger
On Thursday, October 25, 2012 9:06:30 AM UTC-5, Abhijeet Rastogi wrote: > > On Thu 25 Oct 2012 06:53:24 PM IST, jcbollinger wrote: > > > > You're still confusing me. Your initial message led me to believe > > that your two ucarp instances are supposed to run on different hosts. > > Did I mis

Re: [Puppet Users] Re: Multiple resource definition error

2012-10-25 Thread Abhijeet R
On Thu 25 Oct 2012 06:53:24 PM IST, jcbollinger wrote: You're still confusing me. Your initial message led me to believe that your two ucarp instances are supposed to run on different hosts. Did I misunderstand? In total, there will be four ucarp instances. Two running on two different machi

[Puppet Users] Re: Weird problem realizing exported resources

2012-10-25 Thread jcbollinger
On Wednesday, October 24, 2012 6:10:18 AM UTC-5, MCZ wrote: > > So basically I am using this (http://github.com/larstobi/puppet-dns/) > module to manage amazon's route53 dns entries. > The generic definition goes like that: > > node 'testnode' { > base::route53::r53delegation { "$primary_fqd

Re: [Puppet Users] Re: Syntax error in 2.6.8 but not in 2.7.19

2012-10-25 Thread Abhijeet R
Hi jcbollinder, Your guess is right. That fixed the issue. On Thu 25 Oct 2012 06:35:19 PM IST, jcbollinger wrote: On Thursday, October 25, 2012 6:29:10 AM UTC-5, Abhijeet Rastogi wrote: Hi, I have a simple .pp file like class ucarp2::host { define config( $node_id, $

Re: [Puppet Users] Re: Multiple resource definition error

2012-10-25 Thread jcbollinger
On Thursday, October 25, 2012 4:38:31 AM UTC-5, Abhijeet Rastogi wrote: > > In ucarp, multiple instances can be run and I have to run two instances > of ucarp. So, what ever I do, either create a custom resource ot > parameterised classes, they will have to be declared twice. > You're still

[Puppet Users] Re: Syntax error in 2.6.8 but not in 2.7.19

2012-10-25 Thread jcbollinger
On Thursday, October 25, 2012 6:29:10 AM UTC-5, Abhijeet Rastogi wrote: > > Hi, > > I have a simple .pp file like > > class ucarp2::host > { >define config( $node_id, $password="", $interface_primary, > $interface_vip, $vip_addr, $vip_addr_netmask, $vip_addr_gw, > $other_options = "", $

RE: [Puppet Users] puppet facter variable substring

2012-10-25 Thread Steven Nemetz
Not sure if puppet will let you access regex without being in some type of test. Also, just habit. I'm usually doing some validation in the regex. In this case, I've moved validation to after this and have it validate against data in hiera. Hiera has a list of the valid data center codes. Steve

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-10-25 Thread Fabrice Bacchella
Le 24 oct. 2012 à 17:49, Jeff McCune a écrit : > Are you using stored configs? Could you also paste your puppet.conf with > passwords redacted? Yes I'm using stored config. > > It looks like the YAML library itself is raising the exception. Could you > apply this small patch to one of you

[Puppet Users] Syntax error in 2.6.8 but not in 2.7.19

2012-10-25 Thread Abhijeet R
Hi, I have a simple .pp file like class ucarp2::host { define config( $node_id, $password="", $interface_primary, $interface_vip, $vip_addr, $vip_addr_netmask, $vip_addr_gw, $other_options = "", $ensure=present ) { #Creating vip up/down scripts ensure_resource('file', 'vip-up', {ens

Re: [Puppet Users] Puppet & Oracle Database config management

2012-10-25 Thread Gavin Williams
Stefan Thanks again for some really good info. Are your oracle::* classes something that you could share? And cheers for linking the oratab type, that looks really useful, and looks like it could easily be extended to cover oranfstab aswell... May well fork that and tweak it as appropriate :)

Re: [Puppet Users] Puppet & Oracle Database config management

2012-10-25 Thread Gavin Williams
Tim Cheers for the info. Have you got any examples of the hiera config you're using? Cheers Gavin On Wednesday, 24 October 2012 18:13:01 UTC+1, Tim Mooney wrote: > > In regard to: [Puppet Users] Puppet & Oracle Database config > management,...: > > > My next challenge is maintaining Oracle

Re: [Puppet Users] Re: Multiple resource definition error

2012-10-25 Thread Abhijeet R
In ucarp, multiple instances can be run and I have to run two instances of ucarp. So, what ever I do, either create a custom resource ot parameterised classes, they will have to be declared twice. The code can be seen here https://github.com/shadyabhi/puppet-ucarp I have developed two versions

[Puppet Users] Re: Puppet spuriously removing classes from classes.txt

2012-10-25 Thread Matt Carroll
I'm not sure whether it's buggy behaviour or not, but by comparing the daemon.log and an inotify left running on the file I can confirm that it's puppet that's making the changes. Whether or not it's someone running puppet against a stupid environment or not remains to be seen, but I still need

Re: [Puppet Users] Benchmark puppetDB

2012-10-25 Thread shell heriyanto
Hello Chris, Thanks for your reply, i already solved this by use my production modules. But yes, its take some time to build half my of production enviroment. Thank for yours great work. Regards, Heriyanto On Thu, Oct 25, 2012 at 12:38 AM, Chris Price wrote: > Hello Heriyanto, > > Were you abl

Re: [Puppet Users] puppet facter variable substring

2012-10-25 Thread Paolo
Hi Steven Why the if statement? TIA Paolo On Wednesday, October 24, 2012 5:58:16 PM UTC+2, Steven wrote: > > You can use regex for that > > Here is an piece of my code for doing that. In my case [environment, 1 > letter][collo, 2 letters] > > if $hostname =~ /^(.)(..)/ { > $gl