Re: [Puppet Users] node definition too big in mutualized hosting context

2013-08-07 Thread Mason Turner
intain the code. — Mason Turner On Aug 7, 2013, at 9:55 AM, mezcalit...@gmail.com wrote: > Hi, > > I use puppet to manage servers in a mutualized hosting context and I get some > trouble concerning the node definitions. > > For example on dns nodes I have to declare many `bind::zone`

Re: [Puppet Users] Re: High Availability of Puppet server for separate geographical location

2013-05-14 Thread Mason Turner
We have a similar setup, minus the SRV records (although that looks quire interesting, gotta get off of 2.7). And we push SVN checkouts instead of git, but that's not a big difference. I have been thinking about the CA, and how to make it more available. My first thought is, do we have to save

[Puppet Users] puppet and custom nagios object variables

2013-05-14 Thread Mason Turner
r, I can't determine how to use these with puppet nagios resources. I'm assuming they aren't supported, but I'm also hoping that I just missed it in the documentation. Is anyone creating custom nagios object variables with puppet? Thanks for the help. — Mason Turner -- You

Re: [Puppet Users] How does puppetlabs-lvm determine if a filesystem is absent?

2013-03-20 Thread Mason Turner
5, Mason wrote: > On Mar 20, 2013, at 9:48 AM, Mason Turner wrote: > >> We had puppet turned off on a host for a few days, and when we turned it >> back on, we started seeing: >> >> (/Stage[setup]/Foo::Filesystems/Filesystem[/dev/data_vg/foo_lv]/ensure) >>

[Puppet Users] Re: How does puppetlabs-lvm determine if a filesystem is absent?

2013-03-20 Thread Mason Turner
On Mar 20, 2013, at 9:48 AM, Mason Turner wrote: > We had puppet turned off on a host for a few days, and when we turned it back > on, we started seeing: > > (/Stage[setup]/Foo::Filesystems/Filesystem[/dev/data_vg/foo_lv]/ensure) > change from absent to present failed: Executio

[Puppet Users] How does puppetlabs-lvm determine if a filesystem is absent?

2013-03-20 Thread Mason Turner
We had puppet turned off on a host for a few days, and when we turned it back on, we started seeing: (/Stage[setup]/Foo::Filesystems/Filesystem[/dev/data_vg/foo_lv]/ensure) change from absent to present failed: Execution of 'mkfs.ext4 /dev/data_vg/foo_lv' returned 1: mke2fs 1.41.12 (17-May-2010

[Puppet Users] PuppetCA and saved certs

2013-03-08 Thread Mason Turner
This may be a crazy question, but do we have to keep the generated client certs on the puppetca? What would be the harm in deleting them? I ask because we have our puppetca geographically redundant, and we keep the certs synced with our old friend rsync. If we didn't even try to store the certs

[Puppet Users] Managing puppeteer modules with git

2013-02-11 Thread Mason Turner
How do other people organize their puppet configs in Git? Right now we are using SVN, with about 100 modules and 4 environments. Each module and environment has their own trunk/tag trees, which makes it easy for each product team to manage their individual manifests. (We deploy by tag.) However

Re: [Puppet Users] Do total node definitions impact performance?

2013-01-25 Thread Mason Turner
On Jan 25, 2013, at 1:34 PM, Ryan Coleman wrote: > > > On Friday, January 25, 2013, Mason Turner wrote: >> We have about 500 nodes on our puppet infrastructure, many of the >> definitions are very long and redundant with each other. We are going to >> st

[Puppet Users] Do total node definitions impact performance?

2013-01-25 Thread Mason Turner
We have about 500 nodes on our puppet infrastructure, many of the definitions are very long and redundant with each other. We are going to start working on cleaning and consolidation, but I'm curious: does the total number of node definitions have any impact on catalog generation? We have geogr

Re: [Puppet Users] Re: How to manage puppet modules? git submodules? hg subrepositories? own solution?

2012-12-20 Thread Mason Turner
validates the module before linking, logs who did what when. Pretty handy. — Mason Turner On Dec 20, 2012, at 8:36 AM, Benjamin Priestman wrote: > I've tried using https://github.com/azimux/externals (referenced in Version > Control with Git) which kind of works, but is a bit buggy and

Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread Mason Turner
You want "refreshonly => true" on file2, as well. On Nov 7, 2012, at 3:56 PM, Chris Hirsch wrote: > Hi all, > > I'm trying to figure out if my expectations are correct for this class. > Basically I'd like to have file1 created and then run an exec. If that exec > should fail file2 should NOT

Re: [Puppet Users] Creation of modifiable files via puppet

2012-10-09 Thread Mason Turner
That is the intent of "ensure => present". If the file isn't there, puppet will create it with the source/content parameter. If it is there (exists), puppet will leave it alone. http://docs.puppetlabs.com/references/latest/type.html#file — Mason Turner On Oct 9, 2012, a

[Puppet Users] Puppet Nagios types

2012-10-05 Thread Mason Turner
Can Puppet's Nagios types accept custom variable macros? I want something that looks like: define service { ## --PUPPET_NAME-- (called '_naginator_name' in the manifest) rpm-db-corrupt uselog-error-template service_description

Re: [Puppet Users] How to remove last comma when iterating through hash in erb template

2012-09-10 Thread Mason Turner
I use this: <%= relay_destinations.join(',') %> On Sep 10, 2012, at 1:22 PM, JeremyCampbell wrote: > I need to produce a line in a config file in the format x = "ip1,ip2,ip3" > > I am using the method below to sort the hash before iterating over it. > However, as you can see there will alway

Re: [Puppet Users] file monitoring

2012-05-15 Thread Mason Turner
d that file with puppet. — Mason Turner (mobile) On May 15, 2012, at 7:21 AM, nichu wrote: > I wanted to configure file monitoring on puppet. every time file > change I wanted the service to be restarted... > it seemed easy but I can't do it... > > i used it: > http://www.puppetco

Re: [Puppet Users] time issue with puppet

2011-12-15 Thread Mason Turner
n very late in the chain, you could shorten the delay you feed to "at". Not sure if it's a bug, but this dies seen to be a common enough issue with VMs. -- Mason Turner (mobile) On Dec 14, 2011, at 7:00 PM, Corey Osman wrote: > Hi, > > I have the following manifest th