Re: [Puppet Users] Puppet's direction in theory?

2011-01-10 Thread Robin Lee Powell
On Mon, Jan 10, 2011 at 11:00:24PM -0800, Jesse A Wolfe wrote: > > Huh? You can write a Type in Puppet? How? I'm only aware of > > classes and defines, neither of which are that. > > A "define" is a "defined type" - it really fills the same role as > both a type and a provider. Well, except for

Re: [Puppet Users] Re: Custom providers

2011-01-10 Thread Stefan Schulte
On Mon, Jan 10, 2011 at 05:06:04PM -0800, pl wrote: > Hi, > > > Puppet::Provider::Package defines the prefetch class method. This is > > called at the beginning of the puppet run to find matches between existing > > packages and the one you described in your manifest. Prefetch calls > > instances

[Puppet Users] Re: race conditions in using "svn update" in puppetmaster's /etc/puppet directory?

2011-01-10 Thread donavan
On Jan 3, 1:34 pm, James Ralston wrote: > So, here's my question: if you are currently using the "svn update" > approach to manage /etc/puppet on the puppetmaster, have you taken > conscious steps to help avoid a race condition? A late vote for Ignore It. At puppet camp SF this came up in two bre

Re: [Puppet Users] Puppet's direction in theory?

2011-01-10 Thread Jesse A Wolfe
> Huh? You can write a Type in Puppet? How? I'm only aware of > classes and defines, neither of which are that. > > A "define" is a "defined type" - it really fills the same role as both a type and a provider. -- You received this message because you are subscribed to the Google Groups "Puppe

[Puppet Users] Re: Considerations for puppet/cluster to manage 6000 hosts.

2011-01-10 Thread donavan
On Jan 8, 1:02 pm, trey85stang wrote: > I'm trying to get an idea of what kind of backend setup I would need > to run puppet to manage roughly 6000 hosts. No one else has asked, but what's the geographic/network distribution look like? > I see puppet by iteself is limited to 10-20;  but with mon

[Puppet Users] config_version - runs once at daemon startup, not every compile time

2011-01-10 Thread John Warburton
Hi All For those that use, or want to use config_version, you might want to watch http://projects.puppetlabs.com/issues/3692 My debugging (with webrick) shows that the puppet server only executes the script defined in config_version at daemon startup, no matter how many clients connect. John --

Re: [Puppet Users] Puppet's direction in theory?

2011-01-10 Thread Robin Lee Powell
On Mon, Jan 10, 2011 at 08:33:06PM -0800, Jesse Wolfe wrote: > It's my understanding that we'd like to have more of both! So what should people who have developed new types do to get them included? > People do write native (ruby) Types and Providers, and people do > write them in Puppet language.

[Puppet Users] Best Practices/Style: add stuff to a file for each host?

2011-01-10 Thread Robin Lee Powell
(I'm going a bit more for philosophical discussion than practicality here, maybe. Do at least feel free to think in terms of what Puppet *should* do rather than tha fastest way to solve this problem.) There's a pattern I've run into a lot recently mhere a config file needs to be built based on in

Re: [Puppet Users] Puppet's direction in theory?

2011-01-10 Thread Jesse Wolfe
It's my understanding that we'd like to have more of both! People do write native (ruby) Types and Providers, and people do write them in Puppet language. We're working on some new features to make it easier to write Types in the Puppet Language, and we're working on some new features that make it

[Puppet Users] Puppet's direction in theory?

2011-01-10 Thread Robin Lee Powell
So, I started with puppet about two years ago (December 2008). At the time, I was under the impression that the list of Types would grow a lot (i.e. http://docs.puppetlabs.com/references/stable/type.html ). In fact, the file type says: If you find that you are often copying files in from a ce

[Puppet Users] Re: Custom providers

2011-01-10 Thread pl
Hi, > Puppet::Provider::Package defines the prefetch class method. This is > called at the beginning of the puppet run to find matches between existing > packages and the one you described in your manifest. Prefetch calls > instances which should return an array of provider instances. One > provid

Re: [Puppet Users] Exactly how do people replace include with parametrised classes?

2011-01-10 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > dont you find having to specify the relationships of httpd::ssl and > httpd here to be wrong? > > Isn't the fact that the httpd module is designed to have this > ordering requirement an implementation detail and not a usage > detail? > > Surely peo

[Puppet Users] Re: Problem with multiple requires in Ruby DSL

2011-01-10 Thread Ben Lavender
Yep, that did the trick. Seems I extrapolated the 'string that looks like puppet' one step too far. I added an example to the wiki. Thanks, Ben On Jan 10, 2:58 pm, Stefan Schulte wrote: > On Mon, Jan 10, 2011 at 12:27:13PM -0800, Ben Lavender wrote: > > I'm loving playing around with the DSL.

Re: [Puppet Users] Problem with multiple requires in Ruby DSL

2011-01-10 Thread Stefan Schulte
On Mon, Jan 10, 2011 at 12:27:13PM -0800, Ben Lavender wrote: > I'm loving playing around with the DSL. There are some problems (ie > 5237), but now that it's Ruby, I can fix them! woo! > > However, I'm stumped on this one, which may or may not be related to > the DSL. When trying to have a reso

[Puppet Users] Certificate Validation problems.

2011-01-10 Thread Butt3r
Hi, Experiencing some issues with certs, I cannot see what I am doing wrong, if anyone would look over this I would be appreciative. I am running passenger and apache2. *** LOCAL GEMS *** daemon_controller (0.2.5) facter (1.5.8) fastthread (1.0.7) file-tail (1.0.5) passenger (2.2.11) puppet (

[Puppet Users] Problem with multiple requires in Ruby DSL

2011-01-10 Thread Ben Lavender
I'm loving playing around with the DSL. There are some problems (ie 5237), but now that it's Ruby, I can fix them! woo! However, I'm stumped on this one, which may or may not be related to the DSL. When trying to have a resource have a simple dependency on two things at once, it simply fails, an

[Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread trey85stang
Forgot to mention I appreciate everyone's help! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegro

[Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread trey85stang
Sorry for going back to scripts, I keep reading and reading that if you think in terms of scripts you're only going to confuse yourself been writing automation/admin scripts for way too long. I think you all have giving me a lot more to read up on so I will be doing that. I'll do some more readi

Re: [Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread Bruce Richardson
On Mon, Jan 10, 2011 at 11:19:03AM -0800, trey85stang wrote: > Bruce, I think what you are saying is clicking now. > > Now does puppet allow any variable substitution? I do urge you to stop thinking in terms of scripts. It doesn't map well onto the way that Puppet works. If you mean "How do I

RE: [Puppet Users] Re: Could not request certificate: No route to host?

2011-01-10 Thread Michael.Itchue
Hi James, Since you are getting a "Destination Host Unreachable" from the ping command, do a netstat -nr command and verify that you have a default route for your primary NIC. If not, then add one with the route command. Good Luck, Mike -Original Message- From: puppet-users@googlegr

Re: [Puppet Users] importing classes to the dashboard

2011-01-10 Thread Patrick
On Jan 10, 2011, at 8:01 AM, Adriana wrote: > Hello, > I would like to know if it is possible to automatically import the > puppet classes to the dashboard in order to manage them from the gui. > I didn't find exact instructions to make the puppet clients report > directly to the dashboard instea

[Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread trey85stang
Bruce, I think what you are saying is clicking now. Now does puppet allow any variable substitution? class role::basic_host { host { 'localhost': ip => '127.0.0.1', host_aliases => 'localhost.localdomain', ensure => 'present' } ho

Re: [Puppet Users] upgrading

2011-01-10 Thread Patrick
On Jan 10, 2011, at 12:30 AM, Spacelee wrote: > I want to upgrade from puppet 0.24.8 to the latest puppet, and do I need to > modify my puppet code to fit for 0.26? > > and another thing, I want to have multi-puppet server node, and 1 as the > master, and the others as the slave. > master ser

[Puppet Users] Re: Could not call puppetca.getcert HTTP-error: 500

2011-01-10 Thread Butt3r
looks like this error was caused by owner permissions not set to puppet on the /etc/puppet/rack/config.ru file. On Jan 10, 1:00 pm, Butt3r wrote: > Hello, > > Puppet client is receiving the 500 error when trying to talk to the > puppetmaster server. > > Apache error log on the server shows -> >

[Puppet Users] Could not call puppetca.getcert HTTP-error: 500

2011-01-10 Thread Butt3r
Hello, Puppet client is receiving the 500 error when trying to talk to the puppetmaster server. Apache error log on the server shows -> Could not prepare for execution: Got 1 failure(s) while initializing: change from absent to file failed: Could not set 'file on ensure: Permission denied - /va

[Puppet Users] Re: Could not request certificate: No route to host?

2011-01-10 Thread James Lee
Thanks for the tip, I think I will figure it out :) On Jan 10, 11:52 am, Felix Frank wrote: > On 01/10/2011 05:41 PM, James Lee wrote: > > > Hi Felix, > > I tried "ping pmaster.domain" and it doesn't work (Destination Host > > Unreachable). I added an entry to /etc/hosts and it's still reacting >

Re: [Puppet Users] Re: Could not request certificate: No route to host?

2011-01-10 Thread Felix Frank
On 01/10/2011 05:41 PM, James Lee wrote: > Hi Felix, > I tried "ping pmaster.domain" and it doesn't work (Destination Host > Unreachable). I added an entry to /etc/hosts and it's still reacting > the same. What might be wrong with my DNS? Your master is not available network-wise. This can have an

[Puppet Users] Re: Could not request certificate: No route to host?

2011-01-10 Thread James Lee
Hi Felix, I tried "ping pmaster.domain" and it doesn't work (Destination Host Unreachable). I added an entry to /etc/hosts and it's still reacting the same. What might be wrong with my DNS? On Jan 10, 11:30 am, Felix Frank wrote: > On 01/10/2011 05:27 PM, James Lee wrote: > > > > > Hi, I'm gettin

Re: [Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread Jonathan Gazeley
On 10/01/11 16:33, Felix Frank wrote: On 01/10/2011 05:30 PM, Jonathan Gazeley wrote: On 10/01/11 16:20, Felix Frank wrote: Hauling out the big guns boils down to (for me): strace -e trace=file -f puppet master --no-daemonize ... 2>&1 | grep ntp That should eventually spit a few stat or open

[Puppet Users] Re: Could not request certificate: No route to host?

2011-01-10 Thread James Lee
Both the client and the server are allowing port 8140 for tcp and udp. On Jan 10, 11:33 am, Mark Stanislav wrote: > Any firewall (client or server) perhaps not explicitly allowing the proper > traffic for 8140 to the master? > > -Mark > > On Jan 10, 2011, at 11:27 AM, James Lee wrote: > > > Hi,

Re: [Puppet Users] Could not request certificate: No route to host?

2011-01-10 Thread Mark Stanislav
Any firewall (client or server) perhaps not explicitly allowing the proper traffic for 8140 to the master? -Mark On Jan 10, 2011, at 11:27 AM, James Lee wrote: > Hi, I'm getting this message "Could not request certificate: No route > to host - connect(2)" when I'm trying to connect my pclient t

Re: [Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread Felix Frank
On 01/10/2011 05:30 PM, Jonathan Gazeley wrote: > On 10/01/11 16:20, Felix Frank wrote: >> Hauling out the big guns boils down to (for me): >> >> strace -e trace=file -f puppet master --no-daemonize ... 2>&1 | grep ntp >> >> That should eventually spit a few stat or open attempts that fail, when >>

Re: [Puppet Users] Could not request certificate: No route to host?

2011-01-10 Thread Felix Frank
On 01/10/2011 05:27 PM, James Lee wrote: > Hi, I'm getting this message "Could not request certificate: No route > to host - connect(2)" when I'm trying to connect my pclient to > pmaster. > > I checked my hostnames for both the pclient and the pmaster: > [r...@pclient etc]# hostname -f > pclient.

Re: [Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread Jonathan Gazeley
On 10/01/11 16:20, Felix Frank wrote: Hauling out the big guns boils down to (for me): strace -e trace=file -f puppet master --no-daemonize ... 2>&1 | grep ntp That should eventually spit a few stat or open attempts that fail, when the master tries to import the ntp module. Thank you. Using s

[Puppet Users] Could not request certificate: No route to host?

2011-01-10 Thread James Lee
Hi, I'm getting this message "Could not request certificate: No route to host - connect(2)" when I'm trying to connect my pclient to pmaster. I checked my hostnames for both the pclient and the pmaster: [r...@pclient etc]# hostname -f pclient.domain [r...@pmaster etc]# hostname -f pmaster.domain

Re: [Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread Bruce Richardson
On Mon, Jan 10, 2011 at 08:11:02AM -0800, trey85stang wrote: > Upon further reading, it looks like what I want would be better > accomplished with using stored configs? No. That's for something else. Since you have 6000 nodes in your environment, you probably want to look at External Nodes, whi

Re: [Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread Bruce Richardson
On Mon, Jan 10, 2011 at 07:56:49AM -0800, trey85stang wrote: > Thanks for the reply, > > It looks like I would need an entry for every host if I were to take > that route? My environment would require 6000*3 entries... That > doesn't seem logical. > > Am I understanding this correctly? No, you

Re: [Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread Felix Frank
On 01/10/2011 05:11 PM, Jonathan Gazeley wrote: > On 10/01/11 16:00, luke.bigum wrote: >> >> Hi Jonathan, >> >> You shouldn't need to "import" your ntp module as Puppet should auto >> load it if the pathing is all correct, which it looks like it is. > > OK, good to know. > >> Remote the 'import "

Re: [Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread Jonathan Gazeley
On 10/01/11 16:00, luke.bigum wrote: Hi Jonathan, You shouldn't need to "import" your ntp module as Puppet should auto load it if the pathing is all correct, which it looks like it is. OK, good to know. Remote the 'import "ntp"' line from your site.pp: I've removed this line. In site.p

[Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread trey85stang
Upon further reading, it looks like what I want would be better accomplished with using stored configs? On Jan 10, 9:56 am, trey85stang wrote: > Thanks for the reply, > > It looks like I would need an entry for every host if I were to take > that route?  My environment would require 6000*3 entri

[Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread trey85stang
Actually, upon more reading on my own, this is where stored configs will come into play? Ill approach more reading on that subject. On Jan 10, 9:56 am, trey85stang wrote: > Thanks for the reply, > > It looks like I would need an entry for every host if I were to take > that route?  My environm

[Puppet Users] importing classes to the dashboard

2011-01-10 Thread Adriana
Hello, I would like to know if it is possible to automatically import the puppet classes to the dashboard in order to manage them from the gui. I didn't find exact instructions to make the puppet clients report directly to the dashboard instead of importing the reports every time through the comman

[Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread luke.bigum
> Hmm, no luck using ntp::ntp instead of ntp. The problem seems to be in > importing rather than including. I tried using ntp, ntp::ntp, and the > full path /etc/puppet/modules/ntp/manifests/init.pp. > > It always fails with: > > err: Could not retrieve catalog from remote server: Error 400 on SERV

[Puppet Users] Re: pushing files with host based variables?

2011-01-10 Thread trey85stang
Thanks for the reply, It looks like I would need an entry for every host if I were to take that route? My environment would require 6000*3 entries... That doesn't seem logical. Am I understanding this correctly? On Jan 10, 4:35 am, Bruce Richardson wrote: > On Sun, Jan 09, 2011 at 10:42:19AM

[Puppet Users] Could not find user "kbarber"

2011-01-10 Thread Arnau Bria
Hi, looking for more modules: * puppet-iptables * puppet-archive * puppet-bugzilla * puppet-sshd give an error about kbarber user... was him deleted by error? http://forge.puppetlabs.com/bobsh/sshd http://bob.sh/puppet TIA, Arnau -- You received this message because you are

Re: [Puppet Users] sysctl type not available

2011-01-10 Thread Arnau Bria
On Mon, 10 Jan 2011 16:41:02 +0100 Peter Meier wrote: > As far as I remember this one: > http://git.puppet.immerda.ch/?p=module-sysctl.git;a=summary > > was originally based on that one. Thanks! > ~pete Arnau -- You received this message because you are subscribed to the Google Groups "Pupp

Re: [Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread Jonathan Gazeley
On 10/01/11 13:59, Felix Frank wrote: node 'espresso.resnet.bris.ac.uk' { include ntp } To get anything going, try to rename class ntp to ntp::ntp and include it as that. You can strip down to more straight-forward naming once that works. Hmm, no luck using ntp::ntp instead of ntp. The pr

Re: [Puppet Users] sysctl type not available

2011-01-10 Thread Peter Meier
> from http://projects.puppetlabs.com/projects/1/wiki/Puppet_Modules > > wanted to take a look at sysctl type but it's not available. > > http://spook.wpi.edu/sysctl > > Anyone could give it a look? As far as I remember this one: http://git.puppet.immerda.ch/?p=module-sysctl.git;a=summary was

[Puppet Users] sysctl type not available

2011-01-10 Thread Arnau Bria
Hi all, from http://projects.puppetlabs.com/projects/1/wiki/Puppet_Modules wanted to take a look at sysctl type but it's not available. http://spook.wpi.edu/sysctl Anyone could give it a look? TIA, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Us

[Puppet Users] Not authorized to call puppetmaster.getconfig

2011-01-10 Thread Pieter Baele
Hi, For more then 90 hosts, 1 host is always giving the error below. The strange thing: the reports says everything is fine and all necessary changes are still done There is nothing special about this host... Description:Red Hat Enterprise Linux Server release 5.5 (Tikanga) Release:

Re: [Puppet Users] Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-10 Thread Mark Stanislav
Hi adam, > > I am also aware of https://launchpad.net/~mathiaz/+archive/puppet-backports > but mathiaz doesn't provide puppetmaster. I am using his PPA for a deployment right now with success. In this context, using Apache + Passenger is the way to go for the Puppetmaster role. Take a look at

Re: [Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread Felix Frank
> node 'espresso.resnet.bris.ac.uk' { >include ntp > } To get anything going, try to rename class ntp to ntp::ntp and include it as that. You can strip down to more straight-forward naming once that works. BTW, I don't see how your 'import "nodes"' ever worked. But apparently it does. -- Yo

Re: [Puppet Users] Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-10 Thread Martijn Grendelman
On 10-01-11 14:47, Martijn Grendelman wrote: > ... Ubunutu packages ... Damn. I STILL can't type 'Ubuntu' properly. Just use Debian, it's easier :-) Regards, Martijn. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send

Re: [Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread Jonathan Gazeley
On 10/01/11 13:34, Felix Frank wrote: To reiterate, my 'ntp' class is defined in /etc/puppet/modules/ntp/manifests/init.pp and I have defined modulepath in my puppet.conf. The ntp module is imported in site.pp and included in nodes.pp. Are the permissions adequate for your puppetmaster process?

Re: [Puppet Users] Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-10 Thread Martijn Grendelman
Hi, On 10-01-11 14:34, Adam Ryczkowski wrote: > I like the idea of parametrized classes very much, and I would like to > use them. Unfortunately Ubuntu Lucid ships with puppet 2.5.4, which > doesn't support it. Does anybody here can tell me, how can I get 2.6.x > version of puppet and puppetmaster

Re: [Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread Felix Frank
> To reiterate, my 'ntp' class is defined in > /etc/puppet/modules/ntp/manifests/init.pp and I have defined modulepath > in my puppet.conf. The ntp module is imported in site.pp and included in > nodes.pp. Are the permissions adequate for your puppetmaster process? > So it looks like my puppetmas

[Puppet Users] Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-10 Thread Adam Ryczkowski
I like the idea of parametrized classes very much, and I would like to use them. Unfortunately Ubuntu Lucid ships with puppet 2.5.4, which doesn't support it. Does anybody here can tell me, how can I get 2.6.x version of puppet and puppetmaster on Ubuntu? I tried to install puppet from sources, bu

Re: [Puppet Users] Re: can a class require an other class?

2011-01-10 Thread Felix Frank
On 01/07/2011 07:49 PM, dingus9 wrote: > > I would like to see a dedicated group for this too. I have a few > opinions on the matter of language syntax and semantics. > > My main frustration is the matter of slightly different methods for > declaring defines, nodes and classes. > > Take these

[Puppet Users] is it possible to access resource definitions from ERB templates?

2011-01-10 Thread Nick
Puppet's template() function has the potential to be a rather excellent way to generate configuration files, so I wondered if it would be able to generate something non-trivial, like a set of Shorewall configuration files. I should note, I have seen the Shorewall example from the puppet "patterns"

Re: [Puppet Users] pushing files with host based variables?

2011-01-10 Thread Bruce Richardson
On Sun, Jan 09, 2011 at 10:42:19AM -0800, trey85stang wrote: > > 192.168.1.20host1.domain.com > 192.168.1.30host2.domain.com > 192.168.1.250 unique_host.domain.com > > Is there a way to manage this with puppet? What I would like to do is > be able to check that those 3 entries exist...

Re: [Puppet Users] Re: Problem loading custom modules

2011-01-10 Thread Jonathan Gazeley
On 07/01/11 14:54, luke.bigum wrote: I created the tree /etc/puppet/modules/ntp/manifests/ and created an init.pp with this content: class ntp { package { "ntp": ensure => installed } service { "ntpd": ensure => stopped } } Hi Jonathan, How do you know the client isn't

Re: [Puppet Users] Updating a symlink

2011-01-10 Thread Keith Edmunds
> Bug? Expected behaviour? PEBKAC? PEBKAC. Sorry for the noise. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsu

[Puppet Users] Updating a symlink

2011-01-10 Thread Keith Edmunds
I have just updated a 'file' directive that defines a symlink. The name of the symlink hasn't changed, but the target has. However, that change is not being propagated to clients. Bug? Expected behaviour? PEBKAC? Puppet master: 24.8 Puppet client: 24.8 Thanks, Keith -- You received this messag

[Puppet Users] upgrading

2011-01-10 Thread Spacelee
I want to upgrade from puppet 0.24.8 to the latest puppet, and do I need to modify my puppet code to fit for 0.26? and another thing, I want to have multi-puppet server node, and 1 as the master, and the others as the slave. master serves for the most time, but when master is down, slave becomes t