Re: [Puppet Users] file_line doesn't work with variables?

2014-03-28 Thread Stephen Jahl
I think you need to double quote strings that contain variables. So try: line => "INSTANCE=$instance", -Steve On Fri, Mar 28, 2014 at 1:58 PM, Matt Gieselman wrote: > Given the following snippet from an init.pp file: > > $instance = 22 > > file_line { 'instance' : > >

Re: [Puppet Users] Nagios & Puppet

2013-06-28 Thread Stephen Jahl
In my experience, exporting nagios_command resources doesn't work so well. What I've found works best, is to define nagios_command{}'s directly on the server, rather than exporting and collecting them there later. In my setup, the only resource that export is the nagios_host. I define commands and

Re: [Puppet Users] How to manage one line in a file by puppet

2013-01-04 Thread Stephen Jahl
> Hi, > > I want to write a puppet module for xen on Debian. This module will need > to manage one line in the file /etc/default/grub, namely the line > starting with "GRUB_CMDLINE_XEN=". Currently I want to leave the rest of > the file untouched. > > Which would be the best way to do this? > W

Re: [Puppet Users] Automatic cleanup of client certificate ?

2012-08-15 Thread Stephen Jahl
On Wed, Aug 15, 2012 at 8:53 AM, jerome wrote: >Can the agent tell the master to clean the key for its hostname ? This is possible, if you are comfortable with opening up access to the puppet REST API on the master. In auth.conf, you can change the options for the /certificiate_request path, to a

Re: [Puppet Users] Managing SSH host private keys

2012-01-26 Thread Stephen Jahl
> This addresses how to distribute keys to node from the fileserver, but I > wonder if there is a mechanism where if the key doesn't exist on the > fileserver, the key that currently exists on the node is pulled in and saved > for future reference - i.e. when new nodes are created. I believe