Re: [Puppet Users] elegant way to hash a line in a file, if present

2015-07-07 Thread Cam Mac
Hi Tom, Thanks for the reply. I hadn't used the 'file' method as I didn't want to create the file if it wasn't there already, only modify it. Sorry I should have said that in my original post. It was this requirement that made it less than straightforward. Cheers, Cam On Tuesday, 30 June 201

[Puppet Users] how to use file resource with source file name unknown

2015-07-07 Thread Andreas Dvorak
Hello, I have a module to copy files /etc/hostname.* in Solaris. But the interface name can be any. e.g. networking/file/vm6742/hostname.e1000g0 networking/file/vm6742/hostname.e1000g1 I do not want to user file with recurse because the files in /etc have different permissions. Is it possible

[Puppet Users] Re: yum disable/enable repo with wildcards

2015-07-07 Thread jcbollinger
On Monday, July 6, 2015 at 12:14:30 PM UTC-5, Vince Skahan wrote: > > On Monday, July 6, 2015 at 7:44:17 AM UTC-7, jcbollinger wrote: > [...] > > If you are concerned that unmanaged repos may be be added to your systems, >> and you are running at least Puppet 3.5, then you should be able to

[Puppet Users] Re: how to use file resource with source file name unknown

2015-07-07 Thread jcbollinger
On Tuesday, July 7, 2015 at 5:22:45 AM UTC-5, Andreas Dvorak wrote: > > Hello, > > I have a module to copy files /etc/hostname.* in Solaris. But the > interface name can be any. > > e.g. > networking/file/vm6742/hostname.e1000g0 > networking/file/vm6742/hostname.e1000g1 > > I do not want to user

Re: [Puppet Users] Config test when restarting a service

2015-07-07 Thread jcbollinger
On Monday, July 6, 2015 at 8:43:33 AM UTC-5, Jonathan Gazeley wrote: > > On 06/07/15 14:26, Peter Meier wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > >> Notify on its own is no good, since if the exec fails, the service > >> gets restarted anyway. > >> > >> Require on

Re: [Puppet Users] how to use file resource with source file name unknown

2015-07-07 Thread Christopher Wood
In your place I would probably use a fact to get the names, see inline. Fair warning that I haven't tested any of this. It may even damage your server as written! On Tue, Jul 07, 2015 at 03:22:44AM -0700, Andreas Dvorak wrote: >Hello, > >I have a module to copy files /etc/hostname.* in

[Puppet Users] Augeas: Skipping because no files were changed

2015-07-07 Thread Chris Lee
I am trying to add two new options to grub.conf using augeas. The code is as follows: augeas { 'grub.conf/8250_LAR': tag => chris1, incl=> '/boot/grub/grub.conf', lens=> 'Grub.lns', changes => [ 'set /title[1]/kernel/8250.

Re: [Puppet Users] puppet firewall module and more esoteric rules

2015-07-07 Thread Hunter Haugen
Filed as a bug: https://tickets.puppetlabs.com/browse/MODULES-2197 On Fri, Jul 3, 2015 at 1:14 AM Tom Boland wrote: > Hi all, > > I've been looking at using the puppet firewall module to define the > rules on a load balancer/proxy I'm working on. Unfortunately, I don't > think it's going to wor

[Puppet Users] How can I install ruby193 gems on CentOS 6 with softwarecollections (SCL)?

2015-07-07 Thread Stefan Lasiewski
Hello, I have a CentOS 6 system running Puppet 3.8, and I use SCL (Software Collections ) to install some packages like http24 and ruby193. I am having trouble using Puppet's gem provider to install gems with ruby193. I have a manifest like this: packa

[Puppet Users] Puppet parser function woes

2015-07-07 Thread Peter Berghold
I've written a parser function to scrape a website looking for the newest version of a package I want loaded on my laptop. I'm getting really wonky results. Here's the function in all its glory completely un-edited: require 'net/https' require "rexml/document" require 'sanitize' module Puppet::

Re: [Puppet Users] where is PC1 for Debian Jessie?

2015-07-07 Thread Melissa Stone
On Mon, Jul 6, 2015 at 9:42 AM, Martin Alfke wrote: > Hi Felix, > > seems as if Jessie is missing the apt-sources. > Remove the sources line from /etc/apt/sources.list.d/ > and rerun apt-get update > > best, > Martin > > On 06 Jul 2015, at 01:37, Felix Frank > wrote: > > > Hi, > > > > has anyone

[Puppet Users] How to make service start depend on a file existing

2015-07-07 Thread Mark Kirkwood
I would like to prevent a service starting until a certain file exists. The wrinkle is that the file is not (directly) created by puppet. I'm thinking that I want to somehow 'declare' the file to puppet without *it* trying to create it, and the use something like: File["the-file"] -> Service[

Re: [Puppet Users] Augeas: Skipping because no files were changed

2015-07-07 Thread Ian Mortimer
On Tue, 2015-07-07 at 07:33 -0700, Chris Lee wrote: > I am trying to add two new options to grub.conf using augeas. > The code is as follows: > > augeas { 'grub.conf/8250_LAR': > tag => chris1, > incl=> '/boot/grub/grub.conf', > lens=> 'Grub.lns', >

Re: [Puppet Users] Augeas: Skipping because no files were changed

2015-07-07 Thread Ian Mortimer
On Tue, 2015-07-07 at 07:33 -0700, Chris Lee wrote: > I am trying to add two new options to grub.conf using augeas. > The code is as follows: > > augeas { 'grub.conf/8250_LAR': > tag => chris1, > incl=> '/boot/grub/grub.conf', > lens=> 'Grub.lns', >

Re: [Puppet Users] PuppetDB Sizing

2015-07-07 Thread Byron Miller
I use the write/read configuration built into PuppetDB and point the interfaces to VIPs behind a netscaler.. Netscaler load balances to the puppetDB instances and they're all setup so that writes happen to the primary DB node and reads can happen on the VIP for the slave nodes. The slave node