Re: [Puppet Users] Puppet Actions in Parallel?

2012-03-04 Thread Brian Troutwine
An interesting thought. If you enable graph output in your puppet.conf http://docs.puppetlabs.com/references/stable/configuration.html#graph you can identify those sub-graphs that could run in parallel pretty easily, just by eyeballing it. Parallel execution is wonderful for an optimizing com

Re: [Puppet Users] Testing catalog run on REAL node as git pre-push hook?

2012-03-02 Thread Brian Troutwine
It's not uncommon to run a small staging environment for just this purpose. Have you evaluated something like that and found it wanting? On Fri, Mar 2, 2012 at 7:26 PM, Ryan Bowlby wrote: > Hi All, > > We'd like to do some form of testing of our module changes against > production nodes before be

Re: [Puppet Users] Managing community modules.

2012-02-26 Thread Brian Troutwine
On Sun, Feb 26, 2012 at 2:18 PM, Jonathan Proulx wrote: > On Sun, Feb 26, 2012 at 1:54 PM, Brian Troutwine wrote: >> I'm a big fan of using read-only submodules, usually to the upstream >> project but sometimes to my own fork. The use of submodules makes >> gettin

Re: [Puppet Users] Managing community modules.

2012-02-26 Thread Brian Troutwine
I'm a big fan of using read-only submodules, usually to the upstream project but sometimes to my own fork. The use of submodules makes getting changes in from upstream trivial. The commands you need to know are: git submodule add git submodule sync git submodule update --init --recursi

Re: [Puppet Users] roolback to previouse configuration

2012-02-19 Thread Brian Troutwine
On Sun, Feb 19, 2012 at 5:07 PM, ruslan usifov wrote: > Hello > > Does anybody share how to roll-back configuration if puppet definition on > host is change. For example Let's assume we have host on which initial was > web server and bunch of users. All this resources we configured throw > puppet.

Re: [Puppet Users] puppet-module on Debian

2012-02-19 Thread Brian Troutwine
On Sun, Feb 19, 2012 at 1:30 PM, Peter Berghold wrote: > "The nice thing about standards is that there are so many to choose from." > -- Andrew S Tannenbaum > > Debian does wonky things when you install a gem from "gem install."  Usually > this isn't a problem unless there are executables to consi

[Puppet Users] Re: File path resolution oddity in puppet nginx+thin setup.

2012-01-30 Thread Brian Troutwine
All, I ended up posting the question to ServerFault, where it was answered. http://serverfault.com/questions/355214/why-does-this-nginx-thin-run-puppet-master-interpret-paths-differently-than-a-lo On Mon, Jan 30, 2012 at 3:54 PM, Brian Troutwine wrote: > For the purposes of this email I need

[Puppet Users] File path resolution oddity in puppet nginx+thin setup.

2012-01-30 Thread Brian Troutwine
For the purposes of this email I need to make a distinction between my Production puppet master and my Development puppet master. In either case, my /etc/puppet/puppet.conf is: [main] ssldir=$vardir/ssl [master] certname=puppet Development puppet master is run: # puppetmaste

[Puppet Users] Recommendation for module-level and full integration testing puppet configuration.

2011-10-26 Thread Brian Troutwine
All, I've been using puppet in production for some time now, using a staging environment duplicate to my production setup for developing and testing puppet modules. Not, however, in an automated fashion: I write, I run 'puppet agent --test' and I repeat until satisfied. Sometimes, owing to partial

Re: [Puppet Users] Re: Multiple swap spaces

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 1:12 PM, Stefan Schulte < stefan.schu...@taunusstein.net> wrote: > On Mon, Aug 22, 2011 at 12:53:58PM -0400, Brian Troutwine wrote: > > On Mon, Aug 22, 2011 at 12:46 PM, Stefan Schulte < > > stefan.schu...@taunusstein.net> wrote: > > >

Re: [Puppet Users] Re: Facter on a VM...

2011-08-22 Thread Brian Troutwine
Kit, What puppet/facter versions, which OS and what VM? Also, what is the content of your fstab? On Mon, Aug 22, 2011 at 12:59 PM, Kit Plummer wrote: > Am I the only one seeing this? Permissions, or OS thing? > > On Aug 18, 8:14 pm, Kit Plummer wrote: > > Hey. > > > > I'm using Facter to publi

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 11:31 AM, Gary Larizza wrote: > > > It's a function of my ignorance of writing custom facts. I have yet to find >> a good reference for doing so and aped entirely code examples found online. >> I haven't the slightest idea of what setcode does. Here's my top search >> resu

Re: [Puppet Users] Re: Multiple swap spaces

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 11:19 AM, jcbollinger wrote: > > > On Aug 21, 2:56 pm, Brian Troutwine wrote: > > Hello, all. > > > > I have a box that I'd like to have striping swap spaces. I attempted: > > > > mount { 'swap': > >

Re: [Puppet Users] Re: Multiple swap spaces

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 12:46 PM, Stefan Schulte < stefan.schu...@taunusstein.net> wrote: > On Mon, Aug 22, 2011 at 08:19:35AM -0700, jcbollinger wrote: > > > > > > On Aug 21, 2:56 pm, Brian Troutwine wrote: > > > Hello, all. > > > > > > I ha

Re: [Puppet Users] Re: Fact empty in a template, fine on the command line.

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 11:03 AM, jcbollinger wrote: > > > On Aug 22, 2:08 am, Brian Troutwine wrote: > > Hello, all. > > > > I am unable to get the utilize the output of a custom fact in a template > > while, simultaniously, succeeding at doing so with anot

Re: [Puppet Users] Re: Breaking operations on errors

2011-08-22 Thread Brian Troutwine
On Mon, Aug 22, 2011 at 10:11 AM, jcbollinger wrote: > > > On Aug 19, 7:30 pm, Brian Troutwine wrote: > > Hello, all. > > > > Let's say I am building a super-weapon robot to destroy the world, save > for > > the people on a whitelist, and am using puppet

[Puppet Users] Fact empty in a template, fine on the command line.

2011-08-22 Thread Brian Troutwine
Hello, all. I am unable to get the utilize the output of a custom fact in a template while, simultaniously, succeeding at doing so with another custom fact. I receive no errors and am utterly at a loss. The failing custom fact that looks like this: # cat /var/lib/puppet/lib/facter/memorysize_mb.r

[Puppet Users] Multiple swap spaces

2011-08-21 Thread Brian Troutwine
Hello, all. I have a box that I'd like to have striping swap spaces. I attempted: mount { 'swap': alias => 'swap0', atboot => true, device => '/dev/xvdo', ensure => 'mounted', options=> 'defaults', fstype => 'swap', } mount { 'swap': alias => 'swap1', atb

Re: [Puppet Users] Re: Controlling order of execution

2011-08-21 Thread Brian Troutwine
ave an 'onlyif' parameter. > > So, you can turn your package install definition into an exec that has a > pre-condition. > exec {aptpackage: > command => apt install thing, > onlyif => sometest cond > } > > That may work better for you. > > Den > >

Re: [Puppet Users] Fighting with private keys and puppet master on Debian Squeeze

2011-08-21 Thread Brian Troutwine
On Sun, Aug 21, 2011 at 8:31 AM, Nicolai wrote: > To make sure you have a clean client and master knows nothing about it, > (ssl-wise) do the following: > > on master: > puppetca --clean client.example.com > > on client: > rm -r /var/lib/puppet/ssl > puppetd --test > The puppetca and puppetd too

Re: [Puppet Users] Fighting with private keys and puppet master on Debian Squeeze

2011-08-21 Thread Brian Troutwine
patibility. In fact, I've heard so often that I should be using the same versions together than I'm rather nonplussed that it's not possible to put the client and master into strict mode, such that they'll _only_ function together if they've got compatible versions. Den

Re: [Puppet Users] Re: Controlling order of execution

2011-08-20 Thread Brian Troutwine
y declare the state of a resource once. It can't be present > and absent at the same time. > > Den > > > On 21/08/2011, at 8:50, Brian Troutwine wrote: > > PEBKAC, all. > > My images were already tainted with 01proxy, so it existed before the > installation of the apt

Re: [Puppet Users] Fighting with private keys and puppet master on Debian Squeeze

2011-08-20 Thread Brian Troutwine
lib/puppet/ssl/certs/ca.pem connect: Connection refused connect:errno=111 while # puppet agent --server puppet.example.com --test ran to completion, with no errors. That leaves me even more confused than before, frankly. It's possible I'm not using openssl s_client correctly, but I

[Puppet Users] Re: Controlling order of execution

2011-08-20 Thread Brian Troutwine
y => Service['apt-cacher'], > } > ... >} > } > > node 'apt.example.com' { > include base, aptcacher > } > > > 01proxy is placed in the filesystem before the Package apt-cacher is > installed or the Service apt-cacher started. &

[Puppet Users] Re: Controlling order of execution

2011-08-20 Thread Brian Troutwine
} } node 'apt.example.com' { include base, aptcacher } 01proxy is placed in the filesystem before the Package apt-cacher is installed or the Service apt-cacher started. On Sat, Aug 20, 2011 at 3:34 PM, Brian Troutwine wrote: > I meant to include more material and have inserted it inl

Re: [Puppet Users] Fighting with private keys and puppet master on Debian Squeeze

2011-08-20 Thread Brian Troutwine
On Sat, Aug 20, 2011 at 2:47 PM, Brian Troutwine wrote: > On Sat, Aug 20, 2011 at 12:18 PM, Brian Troutwine wrote: > >> On Sat, Aug 20, 2011 at 10:04 AM, Laurence Southon < >> l...@tiger-computing.co.uk> wrote: >> >>> On 20/08/11 01:13, Brian Troutwine

[Puppet Users] Re: Controlling order of execution

2011-08-20 Thread Brian Troutwine
I meant to include more material and have inserted it inline below. My apologies. On Sat, Aug 20, 2011 at 3:31 PM, Brian Troutwine wrote: > Hello, all. > > I have a module for apt-cacher and a node definition something like this: > > class base { > file { '/etc

[Puppet Users] Controlling order of execution

2011-08-20 Thread Brian Troutwine
Hello, all. I have a module for apt-cacher and a node definition something like this: class base { file { '/etc/apt/apt.conf.d/01proxy': ... } } node 'apt.example.com' { include base, aptcacher Class['aptcacher'] -> File['/etc/apt/apt.conf.d/01proxy'] } I'm attempting

Re: [Puppet Users] Fighting with private keys and puppet master on Debian Squeeze

2011-08-20 Thread Brian Troutwine
On Sat, Aug 20, 2011 at 12:18 PM, Brian Troutwine wrote: > On Sat, Aug 20, 2011 at 10:04 AM, Laurence Southon < > l...@tiger-computing.co.uk> wrote: > >> On 20/08/11 01:13, Brian Troutwine wrote: >> > How do I actually revoke a faulty certificate? >> >

Re: [Puppet Users] Fighting with private keys and puppet master on Debian Squeeze

2011-08-20 Thread Brian Troutwine
On Sat, Aug 20, 2011 at 10:04 AM, Laurence Southon wrote: > On 20/08/11 01:13, Brian Troutwine wrote: > > How do I actually revoke a faulty certificate? > > You can remove the client certificate entirely with: > > puppetca --clean apt.example.com I overlooked that entire

[Puppet Users] Fighting with private keys and puppet master on Debian Squeeze

2011-08-20 Thread Brian Troutwine
Hello, all. Let's say I authenticate a server against my puppet master at puppet.example.com, we'll call it apt.example.com. All goes well; it's peachy. Then, apt.example.com dies and I have to authenticate a _new_ apt.example.com against puppet master. root@apt:~# puppet agent --test --noop info

[Puppet Users] Breaking operations on errors

2011-08-20 Thread Brian Troutwine
Hello, all. Let's say I am building a super-weapon robot to destroy the world, save for the people on a whitelist, and am using puppet to manage the configuration of this robot. $ cat files/do_not_kill.txt Me Mom Dad Wife The robot will only being its rampage when /root/have_a_good_time exists.