[Puppet Users] Re: Hiera with Redis

2015-04-07 Thread liu.cy
do you want to save the hiera data to redis and puppet automatically retrieve data in redis? #1, ruby have redis module, you can just save parameters into redis in ruby.https://github.com/redis/redis-rb #2, you can write hiera custom backend to read actual data in any way you want. http://docs.p

[Puppet Users] Announce: PuppetDB 2.3.3 is now available!

2015-04-07 Thread Russell Mull
PuppetDB 2.3.3 - April 7, 2015 PuppetDB 2.3.3 Downloads Available in native package format in the release repositories at: http://yum.puppetlabs.com and http://apt.puppetlabs.com For information on how to enable the Puppet Labs repos, see: http://docs.puppetlabs.com/guid

[Puppet Users] Notice: Puppet Provider for Chocolatey - New Bits, New Location

2015-04-07 Thread Rob Reynolds
To help resolve some recent confusion, I am sending out this notice that was also sent out to the chocolatey users list. The Puppet provider for Chocolatey is now at https://forge.puppetlabs.com/chocolatey/chocolatey - This provider supports both the old PowerShell client (0.9.8 and below)

[Puppet Users] Re: Best approach to creating wrapper classes

2015-04-07 Thread Scott Jaffa
On Thursday, April 2, 2015 at 7:37:31 PM UTC-4, Christopher Wood wrote: > > You might be interested in this thread: > > https://groups.google.com/forum/#!topic/puppet-users/nmVQQA6G-f8 > > Thanks! On Friday, April 3, 2015 at 9:15:00 AM UTC-4, jcbollinger wrote: > > > > On Thursday, April 2

[Puppet Users] Generating firewall rules without connection tracking.

2015-04-07 Thread Tom Limoncelli
The puppetlabs-firewall module has a provider called firewall{} which builds a rule. I've written a wrapper that either calls it (without any changes) or, if track => false, generates an equivalent set of rules that does not use the Linux firewall "connection tracking" mechanism. This is useful i

[Puppet Users] Re: collector in class with same name as tag causes all virtual resources of the type to be realized

2015-04-07 Thread Neil - Puppet List
Here is a similar example using notify == site.pp == node default { include noticegroups::matches } == modules/noticegroups/manifests/matches.pp == class noticegroups::matches { include notices Notices::Anotice <| tag == matches |> } == modules/notices/manifests/anotice.p

Re: [Puppet Users] facter: unordered hashes lead to changes

2015-04-07 Thread Guy Matz
Ahhh!! The version of facter on my new servers is 2.4 . . old servers have 1.7 . . .anyone know how to get facter 2.x to stringify facts? I've tried adding 'stringify_facts = true' to my puppet.conf, but that did not change behaviour . . . On Tue, Apr 7, 2015 at 2:08 PM, Christopher Wood

Re: [Puppet Users] facter: unordered hashes lead to changes

2015-04-07 Thread Christopher Wood
Sounds like this is set to true (over here I set it to false everywhere to take advantage of the non-string facts): https://docs.puppetlabs.com/references/latest/configuration.html#stringifyfacts On Tue, Apr 07, 2015 at 01:56:43PM -0400, Guy Matz wrote: >Hi!  I'm seeing the following at the

[Puppet Users] Re: Using puppet for the configuration of a custom appliance

2015-04-07 Thread varun umesh
Hello Lupin- Thank you for the update! Could you point me for any article, so that i can take a look at how exactly it could be done. Thanks! -varun On Monday, 6 April 2015 20:38:29 UTC-7, lupin...@gmail.com wrote: > > > > On Tuesday, April 7, 2015 at 8:09:41 AM UTC+12, varun umesh wrote: >> >

[Puppet Users] facter: unordered hashes lead to changes

2015-04-07 Thread Guy Matz
Hi! I'm seeing the following at the end of my puppet run: Notice: /Stage[main]/Mcollective::Server::Config::Factsource::Yaml/File[/etc/mcollective/facts.yaml]/content: --- /etc/mcollective/facts.yaml 2015-04-07 15:51:25.243758139 + +++ /tmp/puppet-file20150407-6557-wl0qx7-0 2015-04-07 17

[Puppet Users] Classifying nodes with PE results in 303

2015-04-07 Thread Henk-Jan Castermans
Hi, I'm trying to classify a new node using the commandline just as explained here : https://docs.puppetlabs.com/pe/latest/cloudprovisioner_classifying_installing.html#classifying-nodes I've seen the youtube demo that just runs fab, but for some reason my puppet-setup is failing, which is not

Re: [Puppet Users] developing module for k5login

2015-04-07 Thread Dhaval
i changed variable name and it worked now. On Tuesday, 7 April 2015 15:46:54 UTC+5:45, Dhaval wrote: > > Hello, this is what it looks. > > init.pp > > class k5login( > $principles = hiera_array('k5login::principles', []) > ){ > validate_array($principles) > > file { '.k5login': > ensure

[Puppet Users] Sort by IP in ERB (related to puppetlabs-haproxy and MODULES-1919)

2015-04-07 Thread Tom Limoncelli
The puppetlabs-haproxy module has a minor annoyance where by the "bind" statements are sorted lexicographically instead of by IP address. (Full description here: https://tickets.puppetlabs.com/browse/MODULES-1919) My attempt to fix this bug was to change the ERB template: diff --git a/templates/

[Puppet Users] Hiera variable interpolation on extra backend

2015-04-07 Thread Juan Sierra Pons
Hi I have the hiera_yamlgpg backend up and running working like a charm with the following configuration: :yamlgpg: :datadir: "/etc/puppet/environments/%{::environment}/hieradata" :key_dir: "/etc/puppet/keys" # optional, defaults to ~/.gnupg :fail_on_error: true # optional, defaults to false By

[Puppet Users] Puppet module testing

2015-04-07 Thread Peter Berghold
Is there a definitive guide somewhere that would guide me as to how to write Puppet module tests? In particular I'm interested in learning how to write a tasklist file. I keep seeing mention of such but nothing that helps... -- You received this message because you are subscribed to the Google

[Puppet Users] Re: Dependency problem for Puppet yum package

2015-04-07 Thread jcbollinger
On Monday, April 6, 2015 at 12:05:09 PM UTC-5, staceyt...@gmail.com wrote: > > Hi all, > > I am trying to use puppet to downgrade my gdm package from 64 to 39, but > got package dependency problem: > > Here is my class: > > class gdmver39 { > yumrepo { 'custom': > baseurl => 'file:/home/ad

[Puppet Users] collector in class with same name as tag causes all virtual resources of the type to be realized

2015-04-07 Thread Neil - Puppet List
Hello I'm upgrading from 3.6 to 3.7 and have it a issue/bug I'm using users/groups but to keep it short and something others can run without the mess of users being made I've made up a file example == modules/filegroups/manifests/matches.pp === class filegroups::matches { include files

Re: [Puppet Users] developing module for k5login

2015-04-07 Thread Dhaval
Hello, this is what it looks. init.pp class k5login( $principles = hiera_array('k5login::principles', []) ){ validate_array($principles) file { '.k5login': ensure => file, path=> '/root/.k5login', owner => 'root', group => 'root', mode=> '0644', content

[Puppet Users] Hiera with Redis

2015-04-07 Thread Dhaval
Hello, how do i add below to redis ? sudo::configs: 'admins': 'content' : "%admins ALL=(ALL) NOPASSWD: ALL" 'priority' : 10 I tried couple of things but not sure how to add array of hashes. Regards, D -- You received this message because you are subscribed to the Google Groups "

Re: [Puppet Users] Manage /etc/fstab option with Puppet and Augeas

2015-04-07 Thread Mitja Mihelič
Thanks to both posters, but I decided against using the native mount type. In part I wanted a bit of practice with Augeas and as Christopher wrote, remounting is not safe. Well, I stuck with my module and ended up with something that is not the prettiest piece of code, but does the trick. No au

Re: [Puppet Users] developing module for k5login

2015-04-07 Thread Martin Alfke
On 06 Apr 2015, at 17:35, Dhaval wrote: > hello, > > I am trying to develop puppet module for k5login entries .. now my question > is, how do i manage entries for multiple hierarchies ? > > currently when i try it, it picks up from where it finds entry first and > completes it, how do i get

Re: [Puppet Users] Managing multiple files in a directory - permissions issue

2015-04-07 Thread Martin Alfke
On 07 Apr 2015, at 04:55, Dave Hunsinger wrote: > Can somebody help me with what I'm doing wrong here? I want to copy all > sshkeys in the file resource of this puppet module to the machine: > > class sshkeys { > > file { '/etc/ssh/ssh.keys': > ensure => directory, > owner => 'root', >