Re: [Puppet Users] Re: Announce: Native Facter (cfacter) 0.3.0 is available!

2015-02-04 Thread Paul Seymour
On Wednesday, 4 February 2015 23:07:46 UTC, Melissa Stone wrote: > > > > On Tue, Feb 3, 2015 at 5:37 AM, Paul Seymour > wrote: > >> >> >>> Thanks for this. Just put the RHEL7 x86_64 on a puppet client and it >>> complains:- >>> >> >> "Error: Could not initialize global default settings: cfa

[Puppet Users] how to prevent certificate revocation list (CRL) from expiring

2015-02-04 Thread Josh Bronson
I've noticed that if a Puppet agent happens to contact the master after the "next update" time listed in the CRL openssl crl -in `puppet master --configprint hostcrl` -noout -nextupdate that the master has most recently read on startup, then it will fail with the message: Error: /File[/var/opt

Re: [Puppet Users] Re: Announce: Native Facter (cfacter) 0.3.0 is available!

2015-02-04 Thread Melissa Stone
On Tue, Feb 3, 2015 at 5:37 AM, Paul Seymour wrote: > > >> Thanks for this. Just put the RHEL7 x86_64 on a puppet client and it >> complains:- >> > > "Error: Could not initialize global default settings: cfacter version > 0.2.0 or later is not installed." > > Tracing it through it is looking for

[Puppet Users] Re: Bootstrap puppet client

2015-02-04 Thread Joseph Karns
Hello Aries: The root user would execute this or standard user using sudo. This also depends on how its run. If ran during a Kickstart it would be run by the root user. If you setup the machine, then ssh into the server, it would be run by your user you ssh'd into the box with. If that is the c

Re: [Puppet Users] Re: Bootstrap puppet client

2015-02-04 Thread Joseph Karns
Hello Aries: The root user would execute this or standard user using sudo. This also depends on how its run. If ran during a Kickstart it would be run by the root user. If you setup the machine, then ssh into the server, it would be run by your user you ssh'd into the box with. If that is the cas

Re: [Puppet Users] Chicken-Egg Dilemma with network interfaces

2015-02-04 Thread Dan White
As promised, here is my final solution: Three variables (because this is inside a defined type) : $service _name like "mysql" $interface_name like "eth0 or eth0:1" $ip like "192.168.123.100" -- file { "/etc/sysconfig/network-scripts/ifcfg-${interface_name}" : # stuff } exec { "netw

Re: [Puppet Users] Re: Announce: Puppet Language Style Guide 2.0

2015-02-04 Thread Hunter Haugen
> > == Section 10.7 Defines can't use inherits for parameter defaults >> Should this be reduced to only cover classes, or should the description >> be expanded to cover the style of setting defined resource defaults also? >> (Which happen to be the "bad" example; whoops.) >> > > > The guide's prefe

Re: [Puppet Users] Re: Announce: Puppet Language Style Guide 2.0

2015-02-04 Thread jcbollinger
On Tuesday, February 3, 2015 at 4:00:19 PM UTC-6, Hunter Haugen wrote: > > tl;dr Summarizing the feedback from Garrett, Trevor, and John (because > email is hard), and see if we have resolution on some points and which ones > we still need to clarify. > > > > = Questions: > These need further d

[Puppet Users] Re: Augeas fstab - removing all opt nodes then rebuilding

2015-02-04 Thread Anthony Clark
This worked for me, thanks for the help: if defined(Package['mysql55-server']) { augeas { 'fstabvarext4entry': context => '/files/etc/fstab/*[file="/var"][vfstype="ext4"]', changes => [ 'rm opt', 'ins opt after vfstype[last()]', 'set opt[last()] "defaults"

[Puppet Users] Apparent unexpectedly synthesized dependency

2015-02-04 Thread James Olin Oden
I am getting a dependency loop when trying to apply my puppet manifests, however the loop makes little sense to me as one the dependencies seems to come from no where. The cycle is this: Augeas[Change production to development in virtual hosts] => Exec[re-read apache config] => Class[App

Re: [Puppet Users] Re: puppet cron help

2015-02-04 Thread Tim Dunphy
> > You can also try this: > https://groups.google.com/forum/#!topic/puppet-users/PZMv4hGpKiM Cool! Thank you, Keith! On Tue, Feb 3, 2015 at 7:34 PM, wrote: > > > On Monday, February 2, 2015 at 5:55:58 PM UTC-5, bluethundr wrote: > >> Hey all, >> >> I'm attempting to setup a cron job via the c

[Puppet Users] Re: Augeas fstab - removing all opt nodes then rebuilding

2015-02-04 Thread Anthony Clark
Running the following gives me an error: augeas { 'fstabvarentry': context => '/files/etc/fstab/*[file="/var"][vfstype="ext4"]', changes => [ 'set opt[1] "default"', 'set opt[2] "noatime"', 'set opt[3] "data"', 'set opt[3]/value "writeback"',

[Puppet Users] Re: Augeas fstab - removing all opt nodes then rebuilding

2015-02-04 Thread jamese
with augtool you can do the following: augtool> ls /files/etc/fstab/3/ spec = UUID= file = /boot/efi vfstype = vfat opt[1]/ = umask opt[2]/ = shortname dump = 0 passno = 0 augtool> *rm /files/etc/fstab/3/opt[*]* rm : /files/etc/fstab/3/opt[*] 4 augtool> ls /files/etc/fstab/3/ spec = UUID=

[Puppet Users] Augeas fstab - removing all opt nodes then rebuilding

2015-02-04 Thread Anthony Clark
Hello All, I have a requirement to mount /var with specific options if mysql-server is installed and the filesystem is ext4. So far I have this: if defined(Package['mysql55-server']) { notice "found mysql server" augeas { 'fstabvarentry': context => '/files/etc/fstab/*[file

[Puppet Users] Re: Puppet Dashboard/console

2015-02-04 Thread jcbollinger
On Tuesday, February 3, 2015 at 4:23:05 PM UTC-6, PierreR wrote: > > > There's a good roundup of the options here: >> >> http://www.olindata.com/blog/2014/01/puppet-management-gui-comparison >> >> Puppet Enterprise Console is arguably the best, but that's not available >> if you're using the fr

Re: [Puppet Users] Exporting resource to a particular host

2015-02-04 Thread Ken Barber
> I am using puppetdb and exported resource to manage autmatic nagios setup. > It works very well. Now I want to setup another nagios server for another > set of machines using same puppetdb and puppet master. > As for I understand, a client exports @@nagios_host and nagios server > collect it b

[Puppet Users] Exporting resource to a particular host

2015-02-04 Thread mohammad kashif
Hi I am using puppetdb and exported resource to manage autmatic nagios setup. It works very well. Now I want to setup another nagios server for another set of machines using same puppetdb and puppet master. As for I understand, a client exports @@nagios_host and nagios server collect it by Nagi