Re: [Puppet Users] Need advice on managing large Centos environment

2010-09-23 Thread Stefan Schlesinger
On Sep 22, 2010, at 14:06 , Leslie Giles wrote: > I'm working on rolling out Puppet, but I'm stuck and I know somebody has > solved this problem... > > We have an engineering environment of around 200 Centos servers, plus a > production environment of roughly the same size. Currently, when we r

[Puppet Users] Re: best way to include a variable in many modules ?

2010-09-23 Thread Garrett Honeycutt
On Sep 23, 9:36 am, Daniel Maher wrote: > Hello, > > I have two sites with a small number of machines at each.  Each site is > functionally identical.  I would like to set up a bunch of templates for > the various services at each site, with a handful of variables that > indicate which site the s

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-23 Thread Greg Haase
I created a module with a .pp file containing the following: # ## Class for dns configuration # class resolve-dns{ include my-dns-resolver::location file{ '/etc/resolv.conf': source => $my-dns-resolver::location::resolvesource, ensure => present, mode => 644, owner => roo

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-23 Thread Mark Glossop
On 24/09/10 1:03 AM, somebody called Tony G. (tony...@gmail.com) wrote this: http://projects.puppetlabs.com/projects/1/wiki/Resolv_Conf_Patterns On Thu, Sep 23, 2010 at 11:36 AM, Daniel Maher wrote: Hello, I have two sites with a small number of machines at each. Each site is functionally ide

[Puppet Users] Re: service puppet status / /etc/init.d/puppet status

2010-09-23 Thread CraftyTech
Thanks Jeff.. It was the location of the PID file that was holding me back. I fixed it in /etc/init.d/puppet, and then distributed via puppet to the rest of the nodes. Thanks, On Sep 23, 12:32 pm, Jeff McCune wrote: > On Thu, Sep 23, 2010 at 9:00 AM, CraftyTech wrote: > > Hello All, > > >  

Re: [Puppet Users] Need advice on managing large Centos environment

2010-09-23 Thread Charles Johnson
On Thu, Sep 23, 2010 at 12:34 PM, Ohad Levy wrote: > I can also recommend using frozen repos, with a testing cycle every time > you update them... > I a while ago I wrote a small web app[1] to collect all versions of all > packages across all of your hosts, you might find it useful to know which

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-23 Thread R.I.Pienaar
hello, - "Daniel Maher" wrote: > Hello, > > I have two sites with a small number of machines at each. Each site is > functionally identical. I would like to set up a bunch of templates > for the various services at each site, with a handful of variables that > indicate which site the s

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-23 Thread James Cammarata
On Thu, 23 Sep 2010 18:36:21 +0200, Daniel Maher wrote: > Hello, > > I have two sites with a small number of machines at each. Each site is > functionally identical. I would like to set up a bunch of templates for > the various services at each site, with a handful of variables that > indic

[Puppet Users] Puppet and Escape

2010-09-23 Thread Radek
I am wondering if anyone is using Escape (http://code.google.com/p/ escservesconfig/) with Puppet to store environment-specific configuration options. Escape is a web service designed to serve environment-specific configuration to a variety of applications in a multitude of environments in a platf

Re: [Puppet Users] Need advice on managing large Centos environment

2010-09-23 Thread Ohad Levy
I can also recommend using frozen repos, with a testing cycle every time you update them... I a while ago I wrote a small web app[1] to collect all versions of all packages across all of your hosts, you might find it useful to know which package is installed on which server... in anycase, if you fr

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-23 Thread Darren Chamberlain
* Daniel Maher [2010/09/23 18:36]: > Consider : > > s...@abc$ facter | grep domain > domain => abc.dom.ain > > s...@xyz$ facter | grep domain > domain => xyz.dom.ain > > Thus i would like a template "resolv.conf.erb" : > > search <%= site_name =>.dom.ain Why not use: search <%= domain %> ?

Re: [Puppet Users] Does a service call trigger a restart?

2010-09-23 Thread Luc Suryo
thanks! just wanted to be sure On Thu, Sep 23, 2010 at 10:19 AM, Stephen McNally wrote: > It's my understanding that as long as you have the ensure => running line > in your service definition, a notify will restart it. As an alternative you > could add the subscribe => File["named.conf"] to y

Re: [Puppet Users] chroot'ed daemon restart error

2010-09-23 Thread Richard Crowley
On Wed, Sep 22, 2010 at 11:38 AM, Jewels wrote: > Hi all.. > > Having a strange problem and searhed through the groups, can't find > anything. Have a couple of chrooted daemons that are giving an error > with "ensure => running", even with a "hasrestart = true" > > Simply put it errors with a retu

Re: [Puppet Users] Does a service call trigger a restart?

2010-09-23 Thread Stephen McNally
It's my understanding that as long as you have the ensure => running line in your service definition, a notify will restart it. As an alternative you could add the subscribe => File["named.conf"] to your service definition. -Stephen On Thu, Sep 23, 2010 at 1:01 PM, Luc Suryo wrote: > Simple qu

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-23 Thread Tony G.
http://projects.puppetlabs.com/projects/1/wiki/Resolv_Conf_Patterns On Thu, Sep 23, 2010 at 11:36 AM, Daniel Maher wrote: > Hello, > > I have two sites with a small number of machines at each. Each site is > functionally identical. I would like to set up a bunch of templates for the > various

[Puppet Users] Does a service call trigger a restart?

2010-09-23 Thread Luc Suryo
Simple question If a file changes and it notify a service, will the service be restarted? If not do I need to create a exec? (which I have right now) below is what I have in mind: it this correct? thanks! file { "named.conf" : path => "/var/named/etc/name.conf", mode => 0444, ow

Re: [Puppet Users] Path issue using Puppet 2.6 with Nexenta ncp 3.0.1

2010-09-23 Thread Jeff McCune
On Thu, Sep 23, 2010 at 12:35 AM, qutic development wrote: > Jeff, > > thank you for your answer. But my question was not about exec. The question > was how to set the path for every "system" command puppet is executing ;-) Ah, I see, my misunderstanding. > It seems to be that on Nexenta the pat

[Puppet Users] best way to include a variable in many modules ?

2010-09-23 Thread Daniel Maher
Hello, I have two sites with a small number of machines at each. Each site is functionally identical. I would like to set up a bunch of templates for the various services at each site, with a handful of variables that indicate which site the service is configured for. What would be "best p

Re: [Puppet Users] service puppet status / /etc/init.d/puppet status

2010-09-23 Thread Jeff McCune
On Thu, Sep 23, 2010 at 9:00 AM, CraftyTech wrote: > Hello All, > >     I'm running puppet 0.25.5, and CentOS 5.4.  Whenever I run either > service puppet status or /etc/init.d/puppet status it tells me the > service is stopped when the service is actually running.  I remember > this being an issu

Re: [Puppet Users] RPM provider issues

2010-09-23 Thread devzero2000
On Thu, Sep 23, 2010 at 3:00 PM, Joseph Griffiths wrote: > Hello All, > > I am pretty new to puppet and struggle with the syntax any help with > this problem means a lot...  I am trying to install an RPM on a RHEL > system via puppet on the command line it works great.   Here is the > section of c

Re: [Puppet Users] Re: nginx + passenger + puppetmaster

2010-09-23 Thread Jeff McCune
On Thu, Sep 23, 2010 at 7:40 AM, Jakub Heichman wrote: > On 29 June, 19:44, Dan Urist wrote: >> I have this in my puppet.conf: >> >> [puppetmasterd] >> ssl_client_header = SSL_CLIENT_S_DN >> ssl_client_verify_header = SSL_CLIENT_VERIFY >> [..] >>         proxy_set_header    Host                $h

[Puppet Users] service puppet status / /etc/init.d/puppet status

2010-09-23 Thread CraftyTech
Hello All, I'm running puppet 0.25.5, and CentOS 5.4. Whenever I run either service puppet status or /etc/init.d/puppet status it tells me the service is stopped when the service is actually running. I remember this being an issue w/ 0.25.4, but I thought it was addressed in 0.25.5. Does a

Re: [Puppet Users] Re: nginx + passenger + puppetmaster

2010-09-23 Thread Richard Crowley
On Thu, Sep 23, 2010 at 7:52 AM, Dan Urist wrote: > I've switched to using nginx+unicorn, and haven't had any issues. The > only hassle for me is that I'm running it under Ubuntu, and unicorn > isn't (yet) packaged by Debian/Ubuntu, so I had to install it via gems > and don't have the advantage of

[Puppet Users] Re: nginx + passenger + puppetmaster

2010-09-23 Thread Jakub Heichman
On 29 June, 19:44, Dan Urist wrote: > I have this in my puppet.conf: > > [puppetmasterd] > ssl_client_header = SSL_CLIENT_S_DN > ssl_client_verify_header = SSL_CLIENT_VERIFY > [..] >         proxy_set_header    Host                $host; >         proxy_set_header    X-Real-IP           $remote_ad

[Puppet Users] RPM provider issues

2010-09-23 Thread Joseph Griffiths
Hello All, I am pretty new to puppet and struggle with the syntax any help with this problem means a lot... I am trying to install an RPM on a RHEL system via puppet on the command line it works great. Here is the section of code. # Push out the rpms used file {

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Luc Suryo
sorry forget to mention that is what i done :) thank much for your time! On Thu, Sep 23, 2010 at 8:47 AM, Nigel Kersten wrote: > On Thu, Sep 23, 2010 at 8:43 AM, Luc Suryo wrote: > > Then would the service be define as this? > > > > service { "openvpn::base" : > > name=> "openvpn

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Nigel Kersten
On Thu, Sep 23, 2010 at 8:43 AM, Luc Suryo wrote: > Then would the service be define as this? > > service { "openvpn::base" : >   name=> "openvpn", >   ensure => running, >   subscribe => [ File["openvpn_client.conf], > File["openvpn_server,conf]] > } > > so it

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Luc Suryo
Then would the service be define as this? service { "openvpn::base" : name=> "openvpn", ensure => running, subscribe => [ File["openvpn_client.conf], File["openvpn_server,conf]] } so it a server includes the openvpn class it could have the client, or the

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Felix Frank
On 09/23/2010 05:13 PM, Luc Suryo wrote: > well here is the situation > > we have system that are vpn client and soem are vpn server however! we have > 2 that are both! > > what i want todo is taht IS there is a new client of server configuration > (openvpn_client.conf or openvpn_server.conf) and

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Luc Suryo
well here is the situation we have system that are vpn client and soem are vpn server however! we have 2 that are both! what i want todo is taht IS there is a new client of server configuration (openvpn_client.conf or openvpn_server.conf) and teh new file is pushed I need the service tobe restar

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Luc Suryo
I end up doing to different 'file' definition and remove the 'require file ' part of the service and using exec instead.. tested and works On Wed, Sep 22, 2010 at 9:48 PM, Jeff McCune wrote: > On Wed, Sep 22, 2010 at 6:40 PM, Luc Suryo wrote: > > yes I just did that., and yes I do know that op

Re: [Puppet Users] Need advice on managing large Centos environment

2010-09-23 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Has anybody else been faced with this problem, and if so, how did you > resolve it? use Spacewalk for patch management. At least at your scale this makes sense. It makes manual repository management a lot easier. cheers pete -BEGIN PGP SIGNATUR

[Puppet Users] Re: nginx + passenger + puppetmaster

2010-09-23 Thread Dan Urist
I've switched to using nginx+unicorn, and haven't had any issues. The only hassle for me is that I'm running it under Ubuntu, and unicorn isn't (yet) packaged by Debian/Ubuntu, so I had to install it via gems and don't have the advantage of automated updates. On Thu, 23 Sep 2010 07:40:21 -0700 (P

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Nigel Kersten
On Wed, Sep 22, 2010 at 5:55 PM, Luc Suryo wrote: > Hello > > it is possible to define something like this? > > exec { "openvpn_reload" : > command => "/etc/init.d/openvpn reload", > user => root, > require => [  File[ "openvpn_client.conf"] OR File > ["openvpn_server"] 

Re: [Puppet Users] Path issue using Puppet 2.6 with Nexenta ncp 3.0.1

2010-09-23 Thread qutic development
Nexenta is using SMF like Solaris, not init.d like Linux. Uhm, my bad. My knowledge on Solaris is obviously limited; you may want to ask the Solaris folks how to do what you need to do. Yes of course I will. It would make it easier to explain if I knew how puppet is executing system call

Re: [Puppet Users] Path issue using Puppet 2.6 with Nexenta ncp 3.0.1

2010-09-23 Thread Felix Frank
On 09/23/2010 09:37 AM, qutic development wrote: > Felix, > >> If you run puppetd from /etc/init.d, you may want to tweak its >> environment right in its init Script. > > Nexenta is using SMF like Solaris, not init.d like Linux. Uhm, my bad. My knowledge on Solaris is obviously limited; you may wa

Re: [Puppet Users] Path issue using Puppet 2.6 with Nexenta ncp 3.0.1

2010-09-23 Thread qutic development
Felix, If you run puppetd from /etc/init.d, you may want to tweak its environment right in its init Script. Nexenta is using SMF like Solaris, not init.d like Linux. In any case, be sure to create a suitable environment. Puppet cannot do that for you (afaik). Yes that is right. And my qu

Re: [Puppet Users] Path issue using Puppet 2.6 with Nexenta ncp 3.0.1

2010-09-23 Thread qutic development
Jeff, thank you for your answer. But my question was not about exec. The question was how to set the path for every "system" command puppet is executing ;-) It seems to be that on Nexenta the path is not set the right way. The path in /etc/profile is fine, but this might be not recognized