Re: [Puppet Users] Partial management of /etc/hosts.allow / Augeas and Arrays

2015-01-18 Thread Ian Mortimer
On Fri, 2015-01-16 at 08:27 -0800, Barry Gestwicki wrote: > > 3.) Augeas / Type - This seems to be my best option thus far. > However, I've ran in to a bit of a snag in how to get an array to work > with Augeas resource declarations within a defined type. When I > execute the sample code below,

Re: [Puppet Users] exec resource long runtime

2015-01-18 Thread Martin Alfke
Please also keep in mind that puppet is doing more: require => Class['spacewalk::install'], There is another class which also gets executed. The 48 second is not only the command execution time. Its the whole catalog apply time. Puppet always checks whether it has do do something prior doing ch

Re: [Puppet Users] exec resource long runtime

2015-01-18 Thread Royee Tager
Hi Martin, Attached is the output of the commands: [root@labit-lg02 ~]# time /usr/sbin/spacewalk-channel -l Unable to locate SystemId file. Is this system registered? real 0m1.125s user 0m0.120s sys 0m0.055s [root@labit-lg02 ~]# [root@labit-lg02 ~]# time /usr/sbin/rhnreg_ks --serverUrl=http://

Re: [Puppet Users] Resource ordering syntax

2015-01-18 Thread Martin Alfke
When using an array on a resource title Puppet will internally create multiple resource declarations. e.g. when declaring like this: package { [‘foo’, ‘bar’, ‘bas’]: ensure => present } You can build references on each of the array elements: require => Package[‘bas’] see: https://docs.puppetl

Re: [Puppet Users] exec resource long runtime

2015-01-18 Thread Martin Alfke
The 48 seconds is the complete time the agent needs for the catalog. Within the catalog you are running two commands: spacewalk-channel -l and rhnreg. Please add both execution times when comparing. On 18 Jan 2015, at 08:29, Royee Tager wrote: > Hi, > > If I run the following command manuall