[Puppet Users] Re: Need help with simple hiera example

2014-10-13 Thread Stack Kororā
Greetings, So yeah. I spent several hours hacking away at adding hiera data to a bunch of my modules. I haven't seen any weirdness going on. I wish there had been /any/ kind of indication in puppet about "trying to read this file but I don't have permission/access rights". That would have saved

Re: [Puppet Users] Puppet open source > Puppet Enterprise

2014-10-13 Thread Alfredo De Luca
Thanks Peter. I am sure you can switch but what I wasn't sure if it is an EASY job or not. Thanks for your feedback Regards On 14/10/2014 7:02 AM, "Peter Meier" wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > We are evaluating Puppet open source for our infrastructure and so > >

Re: [Puppet Users] puppet module for checking CVE's

2014-10-13 Thread Felix Frank
On 10/13/2014 09:23 PM, Trevor Vaughan wrote: > Unfortunately, I very much share Felix's fear in getting swamped by > facts. I mean, there are *thousands* of CVEs. Yeah, but then... > > Would it be possible to side-load this into PuppetDB? ...this made me think of blackjack. And hookers ;-) But

Re: [Puppet Users] fstab dilemma - pounding on file_line and augeas

2014-10-13 Thread Ramin K
On 10/8/14 1:34 AM, Felix Frank wrote: On 10/07/2014 10:21 PM, Ramin K wrote: If you're taking feature requests while, it would be awesome if the mount resource would allow you to mount without adding a line to fstab at all. Have you tried "ensure => ghost"? This is off the top of my head, t

Re: [Puppet Users] Puppet open source > Puppet Enterprise

2014-10-13 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > We are evaluating Puppet open source for our infrastructure and so > far so (very) good. Now my question is if in the future we want to > migrate to Puppet Enterprise will be an easy job or we need > basically to re-create everything from scratch?

Re: [Puppet Users] puppet module for checking CVE's

2014-10-13 Thread Trevor Vaughan
Unfortunately, I very much share Felix's fear in getting swamped by facts. I mean, there are *thousands* of CVEs. Good goal though, I'll have to think about this. Trevor On Mon, Oct 13, 2014 at 12:41 PM, Garrett Honeycutt wrote: > On 10/13/14 8:59 AM, Trevor Vaughan wrote: > > Would it be poss

Re: [Puppet Users] Re: puppetlabs-corosync: cs_property doesn't get set

2014-10-13 Thread James Eckersall
Hi Georg, I had issues when I was first using this module with the primitives. I ended up adding some debug code to the provider to try and work out what was going on. I'm sure there are better ways of doing it, but I used File.write to shove log messages into a file on the client in strategic p

Re: [Puppet Users] Re: Passing Parameters to Powershell

2014-10-13 Thread Paul Ponzeka
Josh, your a god among men. Thank you so much. It was the literal string for the variable that resolved it. On Monday, October 13, 2014 1:05:39 PM UTC-4, Josh Cooper wrote: > > Hi Paul, > > On Mon, Oct 13, 2014 at 7:15 AM, Paul Ponzeka > wrote: > >> Thanks for this rob. I still cannot get t

Re: [Puppet Users] Re: Passing Parameters to Powershell

2014-10-13 Thread Josh Cooper
Hi Paul, On Mon, Oct 13, 2014 at 7:15 AM, Paul Ponzeka wrote: > Thanks for this rob. I still cannot get the variable to pass into the > script. Now i have the *setdnsforwarders.ps1.erb* template, > Note puppet doesn't care what the file extension is, so long as the template('path/to/file') re

Re: [Puppet Users] puppet module for checking CVE's

2014-10-13 Thread Felix Frank
On 10/13/2014 06:36 PM, Garrett Honeycutt wrote: > Hi Felix, > > I agree this should be configurable, though I'm not sure the best way to > go about that. Facts do not take parameters, so I'm not sure what you > mean by that. > > Best regards, > -g Good point. You *could* manage an external fact

[Puppet Users] Re: Need help with simple hiera example

2014-10-13 Thread Stack Kororā
On Friday, October 10, 2014 9:18:03 AM UTC-5, jcbollinger wrote: > > Even if the agent runs as root, there can still be access controls (e.g. > SELinux policy) that prevent it from reading certain files that can be read > by commands you launch directly from a shell. > OMG. If that was the p

Re: [Puppet Users] puppet module for checking CVE's

2014-10-13 Thread Garrett Honeycutt
On 10/13/14 8:59 AM, Trevor Vaughan wrote: > Would it be possible to side-load this into PuppetDB? > > For instance, instead of running the full list of checks with every run > of puppet, have a cron job (or something) that runs the list and feeds > the data directly into PuppetDB for the node. >

Re: [Puppet Users] puppet module for checking CVE's

2014-10-13 Thread Garrett Honeycutt
On 10/12/14 5:16 PM, Felix Frank wrote: > On 10/11/2014 02:22 AM, Garrett Honeycutt wrote: >> We could check if a file exists in a directory and if so, skip the fact. >> >> Suggest using /usr/local/etc/cve/ >> >> What do you think? > > Sure, some thing in the file system. > > I suggest to not har

[Puppet Users] Re: Could not set 'file on ensure: undefined method `&' for "760"

2014-10-13 Thread jcbollinger
On Monday, October 13, 2014 3:54:17 AM UTC-5, Torsten Amshove wrote: > > Hi, > > it's easy to reproduce. > > On Puppet-Master i have a module called "test_bug" with this manifest: > > test_bug/manifests/init.pp > >> class test_bug { >> file{"/tmp/test_bug.sh": >> ensure => present, >> s

Re: [Puppet Users] puppetdb export - WTF?!

2014-10-13 Thread Wyatt Alt
Hey Jon, you can inform us how many reports you have without rerunning the export. That would be useful information: curl -D - -G http://localhost:8080/v4/reports --data-urlencode 'include-total=true' -o /dev/null obviously substituting your own host if it's different. Also note the dash after

[Puppet Users] Re: Is there any documentation or examples of how exec-once exec-always work

2014-10-13 Thread jcbollinger
On Saturday, October 11, 2014 3:05:25 AM UTC-5, George Katsanos wrote: > > I'd like to start using exec-once exec-always to setup my system > automatically and take advantage of these features.. But I haven't been > able to find any examples of cases in what's used.. > What in the world are y

Re: [Puppet Users] Re: Passing Parameters to Powershell

2014-10-13 Thread Paul Ponzeka
Thanks for this rob. I still cannot get the variable to pass into the script. Now i have the *setdnsforwarders.ps1.erb* template, and here is the complete copy of what is in the template: $outside = <%= scope['dnsforwarders'] %> $outside | out-file C:\output.log -append I've also tried the f

Re: [Puppet Users] Re: puppetlabs-corosync: cs_property doesn't get set

2014-10-13 Thread ge...@riseup.net
Hi, On 14-10-13 05:58:06, james.eckers...@fasthosts.com wrote: > Since you aren't getting any errors, it would suggest to me that puppet > thinks those values are already set correctly and therefore require no > further action. > The module essentially parses the output from "crm configure show

Re: [Puppet Users] puppet module for checking CVE's

2014-10-13 Thread Trevor Vaughan
Would it be possible to side-load this into PuppetDB? For instance, instead of running the full list of checks with every run of puppet, have a cron job (or something) that runs the list and feeds the data directly into PuppetDB for the node. That would take the pressure off of each Puppet run bu

Re: [Puppet Users] Re: puppetlabs-corosync: cs_property doesn't get set

2014-10-13 Thread james . eckersall
Hi, Since you aren't getting any errors, it would suggest to me that puppet thinks those values are already set correctly and therefore require no further action. The module essentially parses the output from "crm configure show xml", so I'd check what is being returned in that output for those

[Puppet Users] Associate a Puppet class (using puppet class name) with a New Host using Foreman API

2014-10-13 Thread Raghava Karthik
How can i use a puppet class name while creating a host using Foreman API *I used this curl command:* curl -k -u admin:changeme -H "Accept: version=2,application/json" -H "Content-Type: application/json" -k -u admin:changeme -d '{ "host" : { "name" : "test123", "hostgroup_id" : "1", "comput

[Puppet Users] Associate a Puppet class (using puppet class name) with a New Host using Foreman API

2014-10-13 Thread Raghava Karthik
How can i use a puppet class name while creating a host using Foreman API *I used this curl command:* curl -k -u admin:changeme -H "Accept: version=2,application/json" -H "Content-Type: application/json" -k -u admin:changeme -d '{ "host" : { "name" : "test123", "hostgroup_id" : "1", "compute_r

[Puppet Users] Puppet open source > Puppet Enterprise

2014-10-13 Thread Alfredo De Luca
Hi all. We are evaluating Puppet open source for our infrastructure and so far so (very) good. Now my question is if in the future we want to migrate to Puppet Enterprise will be an easy job or we need basically to re-create everything from scratch? Any clue/idea/documentation would be welcome!

Re: [Puppet Users] Re: puppetlabs-corosync: cs_property doesn't get set

2014-10-13 Thread ge...@riseup.net
Hi James, On 14-10-13 01:27:05, james.eckers...@fasthosts.com wrote: > Try running the agent with --debug and --evaltrace to identify what Puppet > is doing in relation to those resources. Thanks for your help. The log shows multiple lines like: Mon Oct 13 13:40:11 +0200 2014 Cs_property[stonith

[Puppet Users] Re: Could not set 'file on ensure: undefined method `&' for "760"

2014-10-13 Thread Torsten Amshove
Hi, it's easy to reproduce. On Puppet-Master i have a module called "test_bug" with this manifest: test_bug/manifests/init.pp > class test_bug { > file{"/tmp/test_bug.sh": > ensure => present, > source => "puppet:///modules/test_bug/test_bug.sh", > } > } > And one file: test_bug/f

[Puppet Users] Re: puppetlabs-corosync: cs_property doesn't get set

2014-10-13 Thread james . eckersall
Try running the agent with --debug and --evaltrace to identify what Puppet is doing in relation to those resources. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email