[Puppet Users] Organizational best practices / examples

2011-09-01 Thread col yte
Hi folks, I was curious if anyone would be willing to share how they organize their puppet implementation. Perhaps something similar to what you'll find at https://fedoraproject.org/wiki/Infrastructure/Puppet. People should have this sort of stuff documented, appreciate anything anyone would be

[Puppet Users] Multiple template fallbacks

2011-09-01 Thread Sam Morrison
Hi, In a file resource I want to be able to specify multiple template contents. If the 1st template doesn't exist use the 2nd listed and so on. Much like how the source attribute works. Basically this: file { /tmp/somefile.txt: ensure = present, content = [

[Puppet Users] Deploy an application on multiple hosts as one unit

2011-09-01 Thread Ohad Levy
Hi, I wanted to see if I could deploy an application, which runs on multiple hosts, as a proof of concept, I've created Stacker [1] Screencast [2]* showing it in a high level. Any feedback is appreciated :) thanks, Ohad [1] - https://github.com/ohadlevy/stacker [2] -

Re: [Puppet Users] Organizational best practices / examples

2011-09-01 Thread Daniel Maher
On 09/01/2011 04:32 AM, col yte wrote: Hi folks, I was curious if anyone would be willing to share how they organize their puppet implementation. Perhaps something similar to what you'll find at https://fedoraproject.org/wiki/Infrastructure/Puppet. People should have this sort of stuff

[Puppet Users] Re: File resource owner not found, only during automatic puppet runs

2011-09-01 Thread jcbollinger
On Aug 31, 8:09 pm, treydock treyd...@gmail.com wrote: I have a file resource defined to be owned by a group that is accessible via samba/winbind (AD based group), but every time Puppet runs automatically (every 30 min) the run fails with this error , (sensitive information removed)

[Puppet Users] Re: Module Plugin Documentation

2011-09-01 Thread jcbollinger
On Aug 31, 7:40 pm, Douglas Garstang doug.garst...@gmail.com wrote: Anyone, I've read this doc several times: http://docs.puppetlabs.com/guides/plugins_in_modules.html As a whole, it really doesn't make sense. It seems pretty obvious it was written by someone with deep knowledge of the

[Puppet Users] Re: Composing a text file with Puppet

2011-09-01 Thread jcbollinger
On Aug 31, 10:52 am, Brian Gallew g...@gallew.org wrote: Call me crazy, but isn't this just a matter of adding replace = false to the file resource?  If it doesn't exist, Puppet will create it according to the manifest.  Once in place, Puppet will leave it alone unless it vanishes, at

Re: [Puppet Users] Multiple template fallbacks

2011-09-01 Thread Nigel Kersten
On Wed, Aug 31, 2011 at 10:48 PM, Sam Morrison sorri...@gmail.com wrote: Hi, In a file resource I want to be able to specify multiple template contents. If the 1st template doesn't exist use the 2nd listed and so on. Much like how the source attribute works. Basically this: file {

[Puppet Users] storeconfigs in 2.7.3

2011-09-01 Thread Moty
I'm trying to build a server with puppet 2.7.3 and storeconfig . I keep getting the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not connect to database: Please install the mysql adapter: `gem install activerecord-mysql-adapter` gem install

[Puppet Users] Re: File resource owner not found, only during automatic puppet runs

2011-09-01 Thread treydock
On Sep 1, 8:03 am, jcbollinger john.bollin...@stjude.org wrote: On Aug 31, 8:09 pm, treydock treyd...@gmail.com wrote: I have a file resource defined to be owned by a group that is accessible via samba/winbind (AD based group), but every time Puppet runs automatically (every 30 min) the

Re: [Puppet Users] Bind9 Ubuntu Lucid

2011-09-01 Thread Martijn Grendelman
Hi, I have this: service { bind9: ensure = running, hasrestart = true, pattern = named, require = Package[bind9], } because the process is called 'named'. Best regards, Martijn Grendelman On 31-08-11 22:56, Russell Van Tassell wrote: Just a

Re: [Puppet Users] storeconfigs in 2.7.3

2011-09-01 Thread Craig White
On Sep 1, 2011, at 7:27 AM, Moty wrote: I'm trying to build a server with puppet 2.7.3 and storeconfig . I keep getting the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not connect to database: Please install the mysql adapter: `gem

השב: Re: [Puppet Users] storeconfigs in 2.7.3

2011-09-01 Thread Moty
Well sorry for not being accurate - I meant gems not libraries - regarding mysql I tries the gem version of it and the apt pkg . both gave samne results Moty -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on

Re: [Puppet Users] Re: File resource owner not found, only during automatic puppet runs

2011-09-01 Thread Craig White
On Sep 1, 2011, at 7:30 AM, treydock wrote: My understanding of the internals of how Winbind/Samba store and cache AD account information is a bit lacking, but could this be that it just took time for the groups/users to get cached? Authentication and all other functions relying on these

Re: השב: Re: [Puppet Users] storeconfigs in 2.7.3

2011-09-01 Thread Craig White
On Sep 1, 2011, at 8:19 AM, Moty wrote: Well sorry for not being accurate - I meant gems not libraries - regarding mysql I tries the gem version of it and the apt pkg . both gave samne results sounds like you don't have mysql configured on your puppetmaster Craig -- You

[Puppet Users] redefine define parameters

2011-09-01 Thread ruslan usifov
Hello I just start to learn puppet. And have follow question. How is it possible to override params in define. For example i have follow definition for manage devel users: define users::devel { $l_shell_path = $operatingsystem ? { freebsd = /bin/csh,

[Puppet Users] Dashboard 1.2.0 Spool Directory rake error

2011-09-01 Thread Andrew Rankin
Hey All - So, two things after I updated to Dashboard 1.2.0 (and the Ruby 1.8.7 built for CentOS 5.6 by Karanbir Singh). First thing is I run load balanced puppet masters and puppet dashboard servers, after the update I noticed these messages showing under the background tasks listing as

[Puppet Users] Dashboard 1.2.0 Spool Directory rake error

2011-09-01 Thread Andrew Rankin
Hey All - So, two things after I updated to Dashboard 1.2.0 (and the Ruby 1.8.7 built for CentOS 5.6 by Karanbir Singh). First thing is I run load balanced puppet masters and puppet dashboard servers, after the update I noticed these messages showing under the background tasks listing as

[Puppet Users] Managing dynamic instances with puppet

2011-09-01 Thread Galed Friedmann
Hello, My organization is currently running a complete production environment on Amazon EC2, and I'm now trying to implement some automations and scaling with puppet. I have several instances which I want them to be almost automatic, meaning that whenever is needed more instances will come up,

השב: Re: השב: Re: [Puppet Users] storeconfigs in 2.7.3

2011-09-01 Thread Moty
here is the full message I get: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not connect to database: Please install the mysql adapter: `gem install activerecord-mysql-adapter` (Could not find mysql (~ 2.8.1) amongst [actionmailer-3.1.0, actionpack-3.1.0,

השב: Re: השב: Re: [Puppet Users] storeconfigs in 2.7.3

2011-09-01 Thread Moty
it seems that first run with storeconfigs should be done through puppetmasterd daemon and not through passenger. When I do this tables are created and not mysql error is generated I probably missed that in the documents (now I have : err: stack level too deep ) Moty -- You received this

[Puppet Users] What came first, the user or the group?

2011-09-01 Thread Guy Matz
Hi, I have inherited some code to create users that doesn't work when removing users . . . it's listed below. It works for adding users, but when it comes to removing users I get: err: /Stage[main]/Common/Common::Mkuser[oshi.apen]/Group[oshi.apen]/ensure: change from present to absent failed:

השב: Re: השב: Re: [Puppet Users] storeconfigs in 2.7.3

2011-09-01 Thread Moty
it seems that first run with storeconfigs should be done through puppetmasterd daemon and not through passenger. When I do this tables are created and not mysql error is generated I probably missed that in the documents (now I have : err: stack level too deep ) 10x Moty -- You received

Re: [Puppet Users] Re: Module Plugin Documentation

2011-09-01 Thread Douglas Garstang
For example, the very first sentence on the page starts with: Learn how to distribute custom facts and types How about a definition of what a custom fact and type are? Good documentation generally doesn't assume that the reader knows all the terminology being used without first defining or

Re: [Puppet Users] What came first, the user or the group?

2011-09-01 Thread Jacob Helwig
On Thu, 01 Sep 2011 12:14:51 -0400, Guy Matz wrote: Hi, I have inherited some code to create users that doesn't work when removing users . . . it's listed below. It works for adding users, but when it comes to removing users I get: err:

Re: buglet (with rpms from tmz) Re: [Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet 2.6.9rc1 is available

2011-09-01 Thread Christopher McCrory
Hello... On Wed, 2011-08-31 at 15:02 -0400, Todd Zullinger wrote: I wrote: Chris May wrote: Did anyone ever post a bug, or find a solution for this? I've just upgraded some of our Solaris boxes (using OpenCSW) to 2.6.9 and I'm seeing the same behaviour. If there is a bug filed, I'd

[Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Douglas Garstang
I have a real-world, best practices, procedural question. How do you manage the he puppet master, under /etc/puppet, where multiple people may be editing files? The /etc/puppet directory is a working copy, and each user has read access to files created by other users. However, if one person adds

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Russell Van Tassell
I'm currently in the same position, and the solution I've proposed (and am currently working on) involves using a central repository (likely git). The puppet client (running on the master) simply checks the current master branch on the remote repository -- if the revisions are not the same, it

Re: [Puppet Users] Multiple template fallbacks

2011-09-01 Thread Wolf Noble
Here's what I've been doing, fwiw: file { 'nsswitch.conf': path = '/etc/nsswitch.conf', content = inline_template( file( /etc/puppet/modules/dist/ldapclient/templates/etc/nsswitch.conf.$hostname.erb,

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Reinoud van Leeuwen
On Thu, Sep 01, 2011 at 11:58:04AM -0700, Russell Van Tassell wrote: I'm currently in the same position, and the solution I've proposed (and am currently working on) involves using a central repository (likely git). The puppet client (running on the master) simply checks the current master

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Aaron Grewell
We don't put our manifests under /etc/puppet at all. It's convenient for small installations but as we scaled up I found mixing configs (local, managed by Puppet) and manifests (kept under version control) to be problematic. On Sep 1, 2011 11:58 AM, Russell Van Tassell russel...@gmail.com

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Scott Smith
A directory is a directory. That a directory has a parent directory in which other files exist is pretty moot. On Thu, Sep 1, 2011 at 12:13 PM, Aaron Grewell aaron.grew...@gmail.comwrote: We don't put our manifests under /etc/puppet at all. It's convenient for small installations but as we

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Scott Smith
http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control On Thu, Sep 1, 2011 at 11:47 AM, Douglas Garstang doug.garst...@gmail.comwrote: I have a real-world, best practices, procedural question. How do you manage the he puppet master, under /etc/puppet, where multiple people may

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Aaron Grewell
Technically true, but administratively confusing IMHO. On Thu, Sep 1, 2011 at 1:08 PM, Scott Smith sc...@ohlol.net wrote: A directory is a directory. That a directory has a parent directory in which other files exist is pretty moot. On Thu, Sep 1, 2011 at 12:13 PM, Aaron Grewell

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Scott Smith
Also, setgid directories with umask 002 can help if you don't want to use a VCS. On Thu, Sep 1, 2011 at 11:47 AM, Douglas Garstang doug.garst...@gmail.comwrote: I have a real-world, best practices, procedural question. How do you manage the he puppet master, under /etc/puppet, where multiple

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Scott Smith
I can't say I've ever met someone who had trouble with this. On Thu, Sep 1, 2011 at 1:10 PM, Aaron Grewell aaron.grew...@gmail.comwrote: Technically true, but administratively confusing IMHO. On Thu, Sep 1, 2011 at 1:08 PM, Scott Smith sc...@ohlol.net wrote: A directory is a directory. That

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Douglas Garstang
Was that in reply to my original post, or a subsequent reply? You did see where I said /etc/puppet was a working copy, right? Doug. On Thu, Sep 1, 2011 at 1:09 PM, Scott Smith sc...@ohlol.net wrote: http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control On Thu, Sep 1, 2011 at

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Steven VanDevender
Aaron Grewell writes: Technically true, but administratively confusing IMHO. We put our all our Puppet data (but not the puppetmaster config) in a Subversion repository. Everyone does editing in their own working copy checked out from that Subversion repository. Commits to the repository

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Scott Smith
You asked for best practices and that document describes them, essentially. If your process is broken it should be fixed. On Thu, Sep 1, 2011 at 1:28 PM, Douglas Garstang doug.garst...@gmail.comwrote: Was that in reply to my original post, or a subsequent reply? You did see where I said

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Steven VanDevender
Douglas Garstang writes: Was that in reply to my original post, or a subsequent reply? You did see where I said /etc/puppet was a working copy, right? It sounds like you need to get to the point where no one does their edits under /etc/puppet on the puppetmaster, because you're obviously

[Puppet Users] Re: 2.7.3 and 'Could not retrieve operatingsystem'

2011-09-01 Thread Jake - USPS
Yea, so I was wrong. I was one of my custom facts. Added some logic and was able to get rid of the warning/error. Not sure why it only showed up after going to 2.7.3 but I found where it was being caused and fixed it. Funny that it was working fine outside of puppet (facter) and didn't seem to

[Puppet Users] Re: Module Plugin Documentation

2011-09-01 Thread jcbollinger
On Sep 1, 11:46 am, Douglas Garstang doug.garst...@gmail.com wrote: For example, the very first sentence on the page starts with: Learn how to distribute custom facts and types How about a definition of what a custom fact and type are? Good documentation generally doesn't assume that the

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 1:35 PM, Steven VanDevender ste...@uoregon.eduwrote: Douglas Garstang writes: Was that in reply to my original post, or a subsequent reply? You did see where I said /etc/puppet was a working copy, right? It sounds like you need to get to the point where no one

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 1:35 PM, Steven VanDevender ste...@uoregon.eduwrote: Douglas Garstang writes: Was that in reply to my original post, or a subsequent reply? You did see where I said /etc/puppet was a working copy, right? It sounds like you need to get to the point where no one

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Brian Gallew
On Sep 1, 2011, at 2:01 PM, Douglas Garstang wrote: Editing files locally under /etc/puppet as an individual user is not mutually exclusive with editing files in a distributed working copy owned by the same user. If it's not, then there's no point in asking for help: your environment is

[Puppet Users] Re: File resource owner not found, only during automatic puppet runs

2011-09-01 Thread jcbollinger
On Sep 1, 9:30 am, treydock treyd...@gmail.com wrote: [...] Thanks for the suggestion.  I run puppet manually as you suggested, and still no errors.  Even stranger is sometime last night the errors stopped occurring.  From the time I activated the samba module, till last night it failed like

[Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
So, after reading this doc: http://projects.puppetlabs.com/projects/1/wiki/Adding_Facts it's not readily apparent to me how I can create facts that are derived from variables defined at the node level in puppet, rather than at the O/S level on the client. I want to be able to set a variable that

[Puppet Users] puppet manifests

2011-09-01 Thread octomeow
Hi I have a simple site.pp in my manifests folder on puppetmaster it has one line, import x.pp However, in the manifests folder on puppetmaster also includes another file y.pp x.pp is applied just fine to relevant agents, but however y.pp is also applied BUT IS not imported into the site.pp

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Aaron Grewell
You can't. The whole purpose of facts is to allow Puppet to make decisions based on client data. Variables=server, facts=client. On Thu, Sep 1, 2011 at 3:41 PM, Douglas Garstang doug.garst...@gmail.comwrote: So, after reading this doc:

Re: [Puppet Users] Puppet Newbie

2011-09-01 Thread FirstName LastName
I ended up having to use $hostname not braces, nothing, weird On Fri, Aug 5, 2011 at 12:54 AM, Denmat tu2bg...@gmail.com wrote: Hi, You can use facts supplied by facter to do the following (assuming you want to do this for host with hostname host1).

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Nigel Kersten
On Thu, Sep 1, 2011 at 4:31 PM, Aaron Grewell aaron.grew...@gmail.comwrote: You can't. The whole purpose of facts is to allow Puppet to make decisions based on client data. Variables=server, facts=client. Yep. However, puppet manifests do allow you to access both and make decisions based on

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 4:31 PM, Aaron Grewell aaron.grew...@gmail.comwrote: You can't. The whole purpose of facts is to allow Puppet to make decisions based on client data. Variables=server, facts=client. Seriously??? I can edit mcollective's server.cfg file and change the factsource from

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Aaron Grewell
Create a variable for server_class in your node definition. On Thu, Sep 1, 2011 at 4:48 PM, Douglas Garstang doug.garst...@gmail.comwrote: On Thu, Sep 1, 2011 at 4:31 PM, Aaron Grewell aaron.grew...@gmail.comwrote: You can't. The whole purpose of facts is to allow Puppet to make decisions

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 4:56 PM, Aaron Grewell aaron.grew...@gmail.comwrote: Create a variable for server_class in your node definition. And then? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Aaron Grewell
And then assign classes based on that. Standard if logic or case statement as you prefer. On Thu, Sep 1, 2011 at 4:57 PM, Douglas Garstang doug.garst...@gmail.comwrote: On Thu, Sep 1, 2011 at 4:56 PM, Aaron Grewell aaron.grew...@gmail.comwrote: Create a variable for server_class in your node

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 4:58 PM, Aaron Grewell aaron.grew...@gmail.comwrote: And then assign classes based on that. Standard if logic or case statement as you prefer. On Thu, Sep 1, 2011 at 4:57 PM, Douglas Garstang doug.garst...@gmail.comwrote: On Thu, Sep 1, 2011 at 4:56 PM, Aaron

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Aaron Grewell
Ah. I don't know how mcollective works so I'm not sure how to address that. If there's a YAML data file involved then you could push it with Puppet... On Thu, Sep 1, 2011 at 5:02 PM, Douglas Garstang doug.garst...@gmail.comwrote: On Thu, Sep 1, 2011 at 4:58 PM, Aaron Grewell

[Puppet Users] Weird passenger problem

2011-09-01 Thread Marek Dohojda
I have multiple server (rhel5.3) running puppet server. 2 of these servers are also running passenger. However on the third server I am running into a weird problem: Could not retrieve catalog from remote server: No format match the given format name or mime-type (text/html The puppetmaster

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
On Thu, Sep 1, 2011 at 5:05 PM, Aaron Grewell aaron.grew...@gmail.comwrote: Ah. I don't know how mcollective works so I'm not sure how to address that. If there's a YAML data file involved then you could push it with Puppet... Yes, mcollective can read a YAML file, which by default is

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Nigel Kersten
On Thu, Sep 1, 2011 at 5:02 PM, Douglas Garstang doug.garst...@gmail.comwrote: On Thu, Sep 1, 2011 at 4:58 PM, Aaron Grewell aaron.grew...@gmail.comwrote: And then assign classes based on that. Standard if logic or case statement as you prefer. On Thu, Sep 1, 2011 at 4:57 PM, Douglas

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Aaron Grewell
This is just me Googling wildly into the air but are you using this approach? http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/FactsFacterYAML If I'm reading the code correctly (somewhat questionable, my Ruby-foo is weak) it should return all top-scope variables and facts. On

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
Tried that once before... I forget why but it didn't work so well. On Thu, Sep 1, 2011 at 5:17 PM, Aaron Grewell aaron.grew...@gmail.comwrote: This is just me Googling wildly into the air but are you using this approach?

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
Thanks Nigel, but there's no mention of classes.txt on that page. On Thu, Sep 1, 2011 at 5:16 PM, Nigel Kersten ni...@puppetlabs.com wrote: On Thu, Sep 1, 2011 at 5:02 PM, Douglas Garstang doug.garst...@gmail.comwrote: On Thu, Sep 1, 2011 at 4:58 PM, Aaron Grewell

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
Nigel, Are you referring to the 'Class Filters' section on http://docs.puppetlabs.com/mcollective/reference/integration/puppet.html ? If so, that's not really the same thing. Classes.txt lists classes included on a server. That's not what I am looking for. Life isn't always as simple as assuming

Re: [Puppet Users] Weird passenger problem

2011-09-01 Thread Scott Smith
md5sum your apache configs and compare, then diff if necessary On Thu, Sep 1, 2011 at 5:06 PM, Marek Dohojda chro...@gmail.com wrote: I have multiple server (rhel5.3) running puppet server. 2 of these servers are also running passenger. However on the third server I am running into a weird

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Nigel Kersten
On Thu, Sep 1, 2011 at 5:40 PM, Douglas Garstang doug.garst...@gmail.comwrote: Nigel, Are you referring to the 'Class Filters' section on http://docs.puppetlabs.com/mcollective/reference/integration/puppet.html ? If so, that's not really the same thing. Classes.txt lists classes included

Re: [Puppet Users] Multiple template fallbacks

2011-09-01 Thread Sam Morrison
Thanks Wolf, This works perfectly. Cheers, Sam -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/oayiKvapyZUJ. To post to this group, send email to

Re: [Puppet Users] Custom Facts

2011-09-01 Thread Douglas Garstang
I really appreciate your reply, but I've inherited a mess that isn't easy to fix, and the most appropriate solution for right now isn't always the best solution. When the boss says GET IT DONE, you don't have time to refactor someone elses mess and do it the right way. I try and make my questions