[Puppet Users] Need Ruby help for facts (inline_template) --> <%= classes.collect { |k, v| v }.sort.join(" ") %> --> empty

2017-04-17 Thread Denny Fuchs
Hello, for my Icinga2, I want to add all classes to vars, like described in https://goo.gl/z798HG (page 41). I added the sjoeboo/puppet-common module, which gives me all classes as a fact: facter -p classes ["settings", "host.foo.local", "base::root::password", "icinga2::params", "icinga2", ..

Re: [Puppet Users] puppetlabs-firewall rspec

2017-04-17 Thread brian mancuso
Thanks Trevor! That was exactly the kind of thing we were looking for. On Thursday, April 13, 2017 at 8:54:20 PM UTC-4, Trevor Vaughan wrote: > > Hi Brian, > > You can get ahold of the catalog directly by using the 'catalogue' object. > > See the following for an example: > > > https://github.com/

[Puppet Users] Puppet install NSCP-x64.msi with error is not valid 32 application: Create Process

2017-04-17 Thread Phu Thinh Le
Puppet master transfer file to Windows Server is done, but exec install this file is error with message: is not valid 32 application: Create Process But I go to this Windows Server and install this file on CMD is OK. maybe i missing something? Pls tell me. -- You received this message becaus

[Puppet Users] Puppet lighttpd module

2017-04-17 Thread Afaq Babar
Hi All, I have just started to learn puppet. I want to write lighttpd module. I have written manifests such as init.pp and install.pp, services.pp and config.pp. Now I want to write configuration files in file directory. I have already downloaded lighttpd. What shall be my next step ?

[Puppet Users] Re: Need Ruby help for facts (inline_template) --> <%= classes.collect { |k, v| v }.sort.join(" ") %> --> empty

2017-04-17 Thread Denny Fuchs
hi, I tried to use ".each" instead of ".collect" in the inline_template and than I get "some" output, but only a few classes and not all": + vars.puppet_classes = "base::root::password icinga2 icinga2::config icinga2::feature::api icinga2::feature::checker icinga2::feature::mainlog icinga2::i

[Puppet Users] SQL server install express / enterprise

2017-04-17 Thread Ryan Vande
I want to install this on my test env at home but i dont have access to en_sql_server_2012_enterprise_edition_x86_x64 without having a microsoft subscription which cost money. Can I just use express edition for my test environment? Then use the same puppet code within my Org where they use en

Re: [Puppet Users] Need Ruby help for facts (inline_template) --> <%= classes.collect { |k, v| v }.sort.join(" ") %> --> empty

2017-04-17 Thread Derek Harkness
In your example it looks like classes is an array not a hash. Should be able to just do classes.join(“ “). Derek > On Apr 17, 2017, at 00:46, Denny Fuchs wrote: > > Hello, > > for my Icinga2, I want to add all classes to vars, like described in > https://goo.gl/z798HG (page 41). I added the

Re: [Puppet Users] Need Ruby help for facts (inline_template) --> <%= classes.collect { |k, v| v }.sort.join(" ") %> --> empty

2017-04-17 Thread Denny Fuchs
hi Derek, Am Montag, 17. April 2017 21:50:37 UTC+2 schrieb Derek Harkness: > > In your example it looks like classes is an array not a hash. Should be > able to just do classes.join(“ “). > > Derek > > I tried it, as the "module" example uses only .join. It works only for a few classes (13 i

Re: [Puppet Users] Need Ruby help for facts (inline_template) --> <%= classes.collect { |k, v| v }.sort.join(" ") %> --> empty

2017-04-17 Thread Denny Fuchs
hi, what is very interesting: If I'm go back to my old vars=> hiera_hash('icinga_vars', {}), and adding to hieradata/common.yaml puppet_classes: "%{::classes}" than I get back all classes, but with the "[" "]" vars.puppet_classes = "["settings", "augeas::files"]

[Puppet Users] /etc/puppetlabs/puppetserver/conf.d/auth.conf : want to use wildcards in certificate_request section

2017-04-17 Thread chris
Hi guys, so I'm trying to restrict requests from known domains eg { # Allow nodes to request a new certificate match-request: { path: "/puppet-ca/v1/certificate_request" type: path method: [get, put] } allow: [ "*.dev.XXX.com", "*.dev.YYY.com" ] sort-order: 500 name: "puppetlabs csr" }, h