Re: [Puppet Users] SVN hooks

2010-08-12 Thread Eric Heydrick
On Thu, 12 Aug 2010, Jean Baptiste FAVRE wrote: > Hello list, > I'm planning to deploy and use Puppet at work. > For this, I've set up a SVN server to keep track of all changes in > modules & manifests. > > Reading documentation to be able to define coding rules, I want to put > some SVN hooks

Re: [Puppet Users] Managing producton & backup datacenter

2010-05-03 Thread Eric Heydrick
On Sun, 2 May 2010, linuxdatacenter wrote: > Hi, > > Just want to know how you use puppet to cover a scenario where you > have a production and backup datacenter. Both environments should be > similar but not identical (just a dumb example - your ntp setup is > probably different in each). I thin

Re: [Puppet Users] Multiple Environments

2010-01-08 Thread Eric Heydrick
On Fri, 8 Jan 2010, Kenneth Holter wrote: > Do you mean running puppetmaster on different linux servers? It would > probably be the best solution, but I do think I prefer running multiple > puppetmasters on one linux server if possible.. How are other people > testing new puppetmasters? > > On

[Puppet Users] Re: is it possible to pass a node variable to file source in a class?

2009-09-15 Thread Eric Heydrick
That should work. However, a more puppetish way of doing it is using a template to generate ntp.conf. I'm guessing the only difference between your ntp.conf's is the server setting. Here's how you could do it with a template: in site.pp specify ntp servers for each site, e.g.: case $site {

[Puppet Users] Re: installing different versions of packages (APT)

2009-08-28 Thread Eric Heydrick
Use ensure => latest to install the newest version. Use ensure => "version", e.g. ensure => "4-7.2", to install a specific version of a package. See http://reductivelabs.com/trac/puppet/wiki/TypeReference#id374 for details. -Eric On Fri, 28 Aug 2009, ELTigre wrote: > > I have debian lenny

[Puppet Users] Re: check if package installed

2009-08-04 Thread Eric Heydrick
Facter plugin is one way. An easier way is to install the package with puppet and have the file require the package. -Eric On Tue, 4 Aug 2009, Alexey Wasilyev wrote: > > How can I check if some package installed in manifest? > Only by writing facter plugin? > > For example: > > if ssh_insta

[Puppet Users] Re: Type Resource enable / disable

2009-07-30 Thread Eric Heydrick
Just override the parent parameters. undef unsets values. class samba::cluster inherits samba { Service["smb"]: enable => false, ensure => undef, } } -Eric On Thu, 30 Jul 2009, josbal wrote: > > Hi, > > I am trying to work out a way of configuring a service in a parent > class

[Puppet Users] Re: basic question about template conditionals

2009-02-11 Thread Eric Heydrick
Here's how we generate access.conf. We define a type that adds and removes access.conf entries and use this type in the node that we need a particular group to be able to login to. class pam { $access = "/etc/security/access.conf" exec {"prep access.conf": command => "echo - : ALL :