Re: [Puppet Users] Howto check if augeas is available

2010-12-16 Thread Hubert Krause
Hello Patrick, hello Martijn, thank you both for your sugestions: Am Friday 10 December 2010 21:37:29 schrieb Patrick: On Dec 9, 2010, at 7:14 AM, Martijn Grendelman wrote: On 09-12-10 15:30, Martijn Grendelman wrote: An example: add the following to

Re: [Puppet Users] Howto check if augeas is available

2010-12-10 Thread Patrick
On Dec 9, 2010, at 7:14 AM, Martijn Grendelman wrote: I made a small mistake. Please see at the bottom. On 09-12-10 15:30, Martijn Grendelman wrote: An example: add the following to puppet_path/modules/modulename/lib/facter/augeas_available.rb -- cut here -- require 'facter'

Re: [Puppet Users] Howto check if augeas is available

2010-12-09 Thread Hubert Krause
Hello, Am Wednesday 08 December 2010 22:22:10 schrieb Patrick: What distro are you using? CentOS and Debian. New server will always be Debian. Our Puppet Server is CentOS at the moment. Why not just install Augeas when you install puppet? That's usually much easier. Yes, but I want

Re: [Puppet Users] Howto check if augeas is available

2010-12-09 Thread Martijn Grendelman
On 09-12-10 09:44, Hubert Krause wrote: Hello, Am Wednesday 08 December 2010 22:22:10 schrieb Patrick: What distro are you using? CentOS and Debian. New server will always be Debian. Our Puppet Server is CentOS at the moment. Why not just install Augeas when you install puppet?

Re: [Puppet Users] Howto check if augeas is available

2010-12-09 Thread Martijn Grendelman
I made a small mistake. Please see at the bottom. On 09-12-10 15:30, Martijn Grendelman wrote: An example: add the following to puppet_path/modules/modulename/lib/facter/augeas_available.rb -- cut here -- require 'facter' Facter.add(augeas_available) do setcode do

[Puppet Users] Howto check if augeas is available

2010-12-08 Thread Hubert Krause
Hello List, I have a Problem with classes wich uses augeas. if augeas is not installed, The complete catalog will not compile. So I can not install augeas with a different class. I have to switch off all classes wich uses augeas, until augeas is installed. I solved this Problem by introducing

Re: [Puppet Users] Howto check if augeas is available

2010-12-08 Thread Patrick
On Dec 8, 2010, at 1:22 AM, Hubert Krause wrote: Hello List, I have a Problem with classes wich uses augeas. if augeas is not installed, The complete catalog will not compile. So I can not install augeas with a different class. I have to switch off all classes wich uses augeas, until

Re: [Puppet Users] Howto check if augeas is available

2010-12-08 Thread Hubert Krause
Hello, Am Wednesday 08 December 2010 11:00:11 schrieb Patrick: The best answer is usually, install Augeas when you install Puppet. If that's not possible, I know of two options: 1) Custom fact wrapper 2) Use a bootstrap enviroment and don't have your client leave it without Augeas. Do you

Re: [Puppet Users] Howto check if augeas is available

2010-12-08 Thread Patrick
On Dec 8, 2010, at 2:32 AM, Hubert Krause wrote: Hello, Am Wednesday 08 December 2010 11:00:11 schrieb Patrick: The best answer is usually, install Augeas when you install Puppet. If that's not possible, I know of two options: 1) Custom fact wrapper 2) Use a bootstrap enviroment and