[Puppet Users] Re: [Announce] Micro-puppet v0.0.2 now available with new code extinguisher feature

2015-04-01 Thread Raphink
This is great! I was looking forward to something that would be more useable than the puppet-lint plugins to migrate my Puppet code, and this is just so simple and efficient! Thank you! On Wednesday, April 1, 2015 at 10:00:56 AM UTC+2, Corey Osman wrote: On the heels of the previously

Re: [Puppet Users] Am I seeing PUP-3863?

2015-03-29 Thread Raphink
Also, if the future parser is not an option for you, the hiera_undef module provides hiera functions that return undef when no value is found in hiera: https://forge.puppetlabs.com/camptocamp/hiera_undef We used this write heavily to wrap puppet classes and emulate data bindings when migrating

[Puppet Users] Re: Augeas editing of fstab

2015-03-29 Thread Raphink
Actually, the native mount type can also be used with an augeas-based provider if you use the herculesteam/augeasproviders_mounttab module. This brings the simplicity of a native module with the power and safety of Augeas under the hood. As for the original code by OP, there are Augeas errors

[Puppet Users] Re: Update package (latest) only if installed in Debian

2015-02-25 Thread Raphink
Hello, It seems that you're trying to use Puppet for actions (upgrading packages not managed by Puppet) instead of state. This is not what Puppet is for. You might want to setup unattended-upgrades with the proper Allowed-Origins and let the system upgrade the packages for you. Cheers,

[Puppet Users] Re: Two questions about custom facts

2015-02-17 Thread Raphink
Native facts (written in Ruby using the Facter module) go into lib/facter/, while custom facts (either static text files or scripts in the language of your choice) go into facts.d/. Facts are computed before each Puppet run. If Puppet installs a package and your fact returns the version of

[Puppet Users] Re: Installing hiera-eyaml-gpg in Puppetserver

2015-02-16 Thread Raphink
For the record, I've decided to port the code to ruby_gpg when running inside the Puppetserver. The PR is at https://github.com/sihil/hiera-eyaml-gpg/pull/24 On Thursday, February 12, 2015 at 3:22:48 PM UTC+1, Raphink wrote: https://github.com/puppetlabs/puppet-server/blob/master

[Puppet Users] Installing hiera-eyaml-gpg in Puppetserver

2015-02-12 Thread Raphink
Hello, I'm trying to use hiera-eyaml-gpg with the puppetserver. I've tried installing it with: sudo -u puppet puppetserver gem install hiera-eyaml-gpg where puppet is the user running the puppetserver. However, it fails to compile the native gpgme gem: Building native extensions. This

[Puppet Users] Re: Installing hiera-eyaml-gpg in Puppetserver

2015-02-12 Thread Raphink
https://github.com/puppetlabs/puppet-server/blob/master/documentation/gems.markdown#gems-with-native-c-extensions apparently answers my question, so I'm looking to port hiera-eyaml-gpg to a pure ruby module now. On Thursday, February 12, 2015 at 12:17:41 PM UTC+1, Raphink wrote: Hello

[Puppet Users] Re: Allowing duplicate namevars in custom types

2015-02-12 Thread Raphink
If more than one parameter make sense for a namevar, then you can use composite namevars, by using `isnamevar` for sevaral parameters and adding a `self.title_patterns` method to define how to parse the title and feed the namevar parameters. See

[Puppet Users] Re: augeas for hosts.allow

2013-05-31 Thread Raphink
To anyone interested, this thread has been duplicated (and answered) on https://www.redhat.com/archives/augeas-devel/2013-May/msg00028.html Raphaël On Wednesday, May 29, 2013 4:35:30 PM UTC+2, kashif wrote: Hi I am trying to configure hosts.allow using augeas with puppet. I can add a ip

[Puppet Users] Re: augeas

2013-04-30 Thread Raphink
Hello, On Monday, April 29, 2013 2:52:42 PM UTC+2, Stan wrote: Hello I use augeas to replace a value in a config file: example (this example is good) : /etc/ssh/sshd_config file LogLevel INFO class ssh::redhat { augeas { sshd_config: context = /files/etc/ssh/sshd_config,

[Puppet Users] Re: replace a word in config file

2013-04-30 Thread Raphink
Hi, Depending on the config format, you can use Augeas for that. What is the format you need to edit? Regards, Raphaël On Tuesday, April 30, 2013 11:25:21 AM UTC+2, Stan wrote: Hi What is a solution with puppet to replace one word in a config file? for example i would like replace

[Puppet Users] Re: augtool/augeas doesn't work in f17?

2012-12-10 Thread Raphink
On Friday, December 7, 2012 12:56:27 PM UTC+1, Bret Wortman wrote: I've installed the augeas rpm (0.10.0-3.fc17.x86_64) to troubleshoot a problem I was having with augeas and ensuring a line existed in /etc/cron.allow. I think something's up because neither the augeas within my manifest

[Puppet Users] Re: Augeas Arrays

2012-05-28 Thread Raphink
Adding to Paul's answer, if you want to set more than one port here, you'll probably want to make a define for a port and loop on resources. The define can then use augeas to set the port. On Monday, May 28, 2012 5:47:52 PM UTC+2, Steve Foster wrote: Hi Folks, I'm trying to figure our why

[Puppet Users] Re: Using puppet+augeas to modify multiple files

2011-11-29 Thread Raphink
Hi Graham, On Nov 28, 9:17 am, Graham Leggett minf...@sharp.fm wrote: On 27 Nov 2011, at 20:04, Graham Leggett wrote: I have a task to convince puppet and augeas to modify multiple postfix files, most specifically /etc/postfix/main.cf and /etc/postifx/ acceptdomains.cf (and other LDAP