[Puppet Users] mutiple ranges in the schedule

2011-10-16 Thread Kanishka Hettiarachchi
Has anyone been able to setup a schedule for say 7 pm to 4 am next day ? By default the range can not extgend beyond the day, but wondering anyone had a workaround similar to 01:00 - 04:00, 19:00 - 23:39 ? Thanks Kanishka -- You received this message because you are subscribed to the Google Gro

[Puppet Users] How does an ENC find the client's enviromement?

2011-10-16 Thread Mohamed Lrhazi
Hello, I started writing an ENC and run into what seems like a chicken and egg problem... I was starting off by getting the client's facts from the inventory service by getting: https://puppetmaster:8140/production/facts/$client_hostname and then was getting the "environment" from the fact name

[Puppet Users] Fwd: How does an ENC find the client's enviromement?

2011-10-16 Thread Mohamed Lrhazi
I tried to work around the problem by having a copy of the ENC per environment, which would work for me too... but then that does not work either: external_nodes = /etc/puppet/environments/$environment/gu-enc/gu-enc.py In the above, $environment evaluates to "production" even though my "puppet ag

Re: [Puppet Users] Re: Setting savedefult options with augeas/puppet

2011-10-16 Thread James A. Peltier
- Original Message - | Cheers, I'll walk you through how I came up with the augeas commands. | | Opening augtool and printing /files/boot/grup/menu.lst shows how the | lense has constructed the augeas tree (edited for brevity): | | augtool> print /files/boot/grub/menu.lst/ | /files/boot/g

Re: [Puppet Users] Re: Setting savedefult options with augeas/puppet (SOLVED)

2011-10-16 Thread James A. Peltier
The following class seems to do exactly what I needed it to do. It sets the default context to saved and creates a savedefault parameter for the Windows entry that exists. This method also does not require a onlyif if statement which is much better than the ins after option that was proposed b

Re: [Puppet Users] Re: Setting savedefult options with augeas/puppet

2011-10-16 Thread James A. Peltier
- Original Message - | | You piqued my interest with the savedefault option though so I | | looked | | it up. Are you sure you don't want it on every kernel boot option so | | if you change into different Linux kernels it remembers them as | | well? BTW: No, this is not what this is intend

[Puppet Users] Puppet doesn't work with symbolic link module folder?

2011-10-16 Thread Benyi Wang
I found that my puppet didn't work if I used symbolic link for multi-environment directory. Here is my directory structure. VM stands for virtual machine, which I used to test my puppet scripts. + /etc/puppet + environments + vm + manifests - site.pp + modules + dev

[Puppet Users] Cannot find puppetd.log and puppetmasterd.log.

2011-10-16 Thread Benyi Wang
I'm a newbie of puppet. I'm curious why I cannot find puppetd.log and puppetmasterd.log? I can only find httpd.log and masterhttpd.log in /var/log/puppet. What could be wrong? Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to