Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-14 Thread Andrey Kozichev
Thanks for the link. I will have a look. On 15 Jan 2014 04:16, "Garrett Honeycutt" wrote: > > > On Monday, January 13, 2014 9:38:33 PM UTC-5, ianm wrote: >> >> On 14/01/14 03:49, Andrey Kozichev wrote: >> >> > This scenario works well if on the class input I just supply single >> > mountpoint ->

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-14 Thread Andrey Kozichev
Thank you John, it looks like what I need. I was doing something similar but was getting an error on create_resource, I think I see now what was wrong. I will try this. Andrey On 14 Jan 2014 23:16, "jcbollinger" wrote: > > > On Tuesday, January 14, 2014 6:37:56 AM UTC-6, Andrew wrote: >> >> can

Re: [Puppet Users] Have An Issue To Report, But Can't Figure Out How

2014-01-14 Thread Rob Reynolds
On Tue, Jan 14, 2014 at 4:47 PM, jcbollinger wrote: > > > On Tuesday, January 14, 2014 11:00:20 AM UTC-6, Rob Reynolds wrote: >> >> >> >> >> On Mon, Jan 13, 2014 at 9:05 PM, Rob Reynolds wrote: >> >> >>> >>> >>> On Mon, Jan 13, 2014 at 4:24 PM, jcbollinger wrote: >>> On Monday, Janu

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-14 Thread Garrett Honeycutt
On Monday, January 13, 2014 9:38:33 PM UTC-5, ianm wrote: > > On 14/01/14 03:49, Andrey Kozichev wrote: > > > This scenario works well if on the class input I just supply single > > mountpoint -> then I do hiera("mountpointname") and create_resources() > > But if I want to have multiple Mountp

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-14 Thread Garrett Honeycutt
On Monday, January 13, 2014 9:38:33 PM UTC-5, ianm wrote: > > On 14/01/14 03:49, Andrey Kozichev wrote: > > > This scenario works well if on the class input I just supply single > > mountpoint -> then I do hiera("mountpointname") and create_resources() > > But if I want to have multiple Mountp

Re: [Puppet Users] Re: Puppet calls the ENC twice for some nodes.

2014-01-14 Thread Jason Antman
James, I vaguely remember seeing this 'node_terminus called twice' thing in the past. The simple answer, though I know it's not what people want to hear, is that the ENC should always return the right information. If you want to modify the content of the catalog based on something that happens bet

Re: [Puppet Users] Re: Nagios_contact in multiple contactgroups

2014-01-14 Thread jcbollinger
On Tuesday, January 14, 2014 5:42:54 AM UTC-6, Jonathan Gazeley wrote: > > On 13/01/14 23:00, jcbollinger wrote: > > Puppet expects a comma-delimited string of contact group names (as will > appear in the target config file) rather than an array. Upon receiving an > array, it somehow choose

Re: [Puppet Users] Re: Puppet calls the ENC twice for some nodes.

2014-01-14 Thread James Ellis
Hi, chanced across this discussion when I noticed an ENC was being called twice. I understand I may not be using the ENC terminus exactly as it's been designed, but it's unexpected that it was called twice. Also worth noting that I can't see a note about the ENC being called twice here: http://

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-14 Thread jcbollinger
On Tuesday, January 14, 2014 6:37:56 AM UTC-6, Andrew wrote: > > can't seem figure this out. > Here is my data: > > common.yaml > > nfsshares: > > "nfsshare-public": > > name: /var/public > > device: "hostname1:/vol/public" > > remounts: true > > options: 'rw,bg,hard' > > "nfs

Re: [Puppet Users] Have An Issue To Report, But Can't Figure Out How

2014-01-14 Thread jcbollinger
On Tuesday, January 14, 2014 11:00:20 AM UTC-6, Rob Reynolds wrote: > > > > > On Mon, Jan 13, 2014 at 9:05 PM, Rob Reynolds > > > wrote: > >> >> >> >> On Mon, Jan 13, 2014 at 4:24 PM, jcbollinger >> >> > wrote: >> >>> >>> >>> On Monday, January 13, 2014 2:45:11 PM UTC-6, Rob Reynolds wrote: >

Re: [Puppet Users] Title on file resources

2014-01-14 Thread Justin Lambert
Thanks for the response Joseph - that does help that you had the same situation. That was the only solution I could think of, I was just hoping there was some other way. I’m going to guess it is something to do with scoping of how the catalog is compiled, but I don’t know enough about the pup

[Puppet Users] Re: Title on file resources

2014-01-14 Thread jcbollinger
On Tuesday, January 14, 2014 4:12:56 PM UTC-6, Justin Lambert wrote: > > I’m attempting to create a bunch of symlinks based on an array of > filenames but I can’t figure out how to use the title of the resource > within the resource itself. > > class app::config { file { [ 'a.conf', 'b.conf' ]

Re: [Puppet Users] Re: Puppet Pro, 2nd edition - status directly from APress

2014-01-14 Thread Matthew Burgess
On 14 January 2014 22:03, Matthew Burgess wrote: > > ​ > > http://www.amazon.co.uk/Pro-Puppet-Edition-Professional-Apress/dp/1430260408/ > ​ still shows a ship date of 31st March 2014. Is this just a mistake on > their part? (I'm in the UK, hence looking at their UK site) > ​. > ​Well, don't I

Re: [Puppet Users] Title on file resources

2014-01-14 Thread Joseph Swick
On 01/14/2014 05:12 PM, Justin Lambert wrote: > I’m attempting to create a bunch of symlinks based on an array of filenames > but I can’t figure out how to use the title of the resource within the > resource itself. > > class app::config { > file { [ 'a.conf', 'b.conf' ]: > ensure => 'link

Re: [Puppet Users] puppet certificate confusion

2014-01-14 Thread Fabrice Bacchella
Le 14 janv. 2014 à 18:47, Felix Frank a écrit : > I agree - lots of stuff and it's a little hard to find one's way around. > > I believe what you're looking for is this little paragraph: > http://docs.puppetlabs.com/guides/installation.html#sign-node-certificates I know and use that. But are

[Puppet Users] Title on file resources

2014-01-14 Thread Justin Lambert
I’m attempting to create a bunch of symlinks based on an array of filenames but I can’t figure out how to use the title of the resource within the resource itself. class app::config { file { [ 'a.conf', 'b.conf' ]: ensure => 'link', path => "/etc/app/${name}", target => "/usr/app

Re: [Puppet Users] Re: Puppet Pro, 2nd edition - status directly from APress

2014-01-14 Thread Matthew Burgess
On 24 December 2013 22:04, Spencer Krum wrote: > Hello, > > I am one of the Authors of Pro Puppet. I'm glad to hear that everyone is > trying to buy the book. I'm sorry that its taken so long to get it written, > then even longer to get the book to all of you. > > I have a couple responses: > > 1

[Puppet Users] PuppetDB 1.6.0-rc2 Now available

2014-01-14 Thread Ken Barber
** Release Candidate ** PuppetDB 1.6.0-rc2 Prerelease: PuppetDB 1.6.0 is not yet released * RC1: January 7th, 2014. * RC2: January 14th, 2014. PuppetDB 1.6.0-rc2 Downloads Available in native package format in the pre-release repositories at: http://yum.puppetlabs.c

Re: [Puppet Users] Upgrading a .msi package through Puppet

2014-01-14 Thread Josh Cooper
On Tue, Jan 14, 2014 at 10:22 AM, Mike Gaboury wrote: > That helped. Thanks. The key was to have the version in the title. I > had 'Puppet' and needed 'Puppet 3.4.2'. > This works because when puppet is installed, its DisplayName property in the registry is "Puppet". So when you specify "Puppe

[Puppet Users] filebucket --local should have default bucket matching "apply"

2014-01-14 Thread Martin Langhoff
Background I am using puppet via direct invokation of puppet apply path/to/manifest.pp -- no puppet server involved. Puppet is 3.1.1 on RHEL6.x and CentOS6.x boxes. I needed to study a file change, coming from a concat. Looking at the report, I had the hash. This did not work: # puppet filebucket

Re: [Puppet Users] facter-1.7.3 and puppet-3.3.1 on OS X Mavericks 10.9

2014-01-14 Thread Matthaus Owens
It didn't make it into Facter 1.7.4, but it will be in Facter 1.7.5, which should be entering RC soon. On Tue, Jan 14, 2014 at 11:17 AM, Khoury Brazil wrote: > That's good to hear. But I'm still concerned about Facter. Correct me if > I'm wrong, but this issue indicates that Facter 1.7.5 will be

Re: [Puppet Users] facter-1.7.3 and puppet-3.3.1 on OS X Mavericks 10.9

2014-01-14 Thread Khoury Brazil
That's good to hear. But I'm still concerned about Facter. Correct me if I'm wrong, but this issue indicates that Facter 1.7.5 will be targeted but we're currently on 1.7.4: https://projects.puppetlabs.com/issues/22107 Did it make it into 1.7.4? On Tue, Jan 14, 2014 at 11:05 AM, Jeff Bachtel <

Re: [Puppet Users] facter-1.7.3 and puppet-3.3.1 on OS X Mavericks 10.9

2014-01-14 Thread Jeff Bachtel
I don't have a Maverick box to test on, but the PRs in question are applied to the 3.4.0 and onward tags, so I would bet that current OS X packages would do the right thing and work with the Ruby 2.0 on Maverick. Jeff On 01/14/2014 01:15 PM, Khoury wrote: Does anyone know what the status is on

Re: [Puppet Users] Upgrading a .msi package through Puppet

2014-01-14 Thread Mike Gaboury
That helped. Thanks. The key was to have the version in the title. I had 'Puppet' and needed 'Puppet 3.4.2'. So this appears to be an inconsistency or, more likely, a lack of understanding on Windows packages and versioning (I'm a Linux guy). I have a module to deploy Java. To get that to

Re: [Puppet Users] facter-1.7.3 and puppet-3.3.1 on OS X Mavericks 10.9

2014-01-14 Thread Khoury
Does anyone know what the status is on Mavericks support? Has anyone tested it? It's been a while since the public release and Apple's policy of forcing new Macs to use Mavericks puts is in a tight spot if we can't get Puppet support for the OS. Thanks, Khoury On Friday, November 1, 2013 7:52

Re: [Puppet Users] Using hiera to separate code and data

2014-01-14 Thread Felix Frank
On 01/12/2014 09:15 AM, CD wrote: > 1. hiera($variable) returns a hash but for resource to iterate it > requires and array. Any idea how to convert it to an array Hiera returns whatever it reads from your data file. If your json deserialized to an array, that is what Hiera will return to you. >

Re: [Puppet Users] puppet certificate confusion

2014-01-14 Thread Felix Frank
I agree - lots of stuff and it's a little hard to find one's way around. I believe what you're looking for is this little paragraph: http://docs.puppetlabs.com/guides/installation.html#sign-node-certificates HTH, Felix On 01/13/2014 01:28 PM, Fabrice Bacchella wrote: > When I look at http://docs

Re: [Puppet Users] Have An Issue To Report, But Can't Figure Out How

2014-01-14 Thread Paul Nickerson
Thanks for the info. Glad it's already being patched. I got to the Redmine site through this link trail: http://puppetlabs.com/ Open Source Projects: http://puppetlabs.com/puppet/puppet-open-source Visit the Puppet Project homepage: http://projects.puppetlabs.com/ Click here to go to the main lis

Re: [Puppet Users] Have An Issue To Report, But Can't Figure Out How

2014-01-14 Thread Rob Reynolds
On Mon, Jan 13, 2014 at 9:05 PM, Rob Reynolds wrote: > > > > On Mon, Jan 13, 2014 at 4:24 PM, jcbollinger wrote: > >> >> >> On Monday, January 13, 2014 2:45:11 PM UTC-6, Rob Reynolds wrote: >>> >>> Paul, >>> We've patched that here https://github.com/ >>> puppetlabs/puppet-win32-ruby/pull/17 whi

[Puppet Users] Dynamic Nagios Hostgroup members via collected resources?

2014-01-14 Thread smalderma
Greetings All, I've referenced a few older discussions about nagios hostgroups and the nagios_hostgroup resource. I admit I'm somewhat new to this game, so please excuse my ignorance on the complexities. I'm looking for a way that puppet can use collections / exported resources to create nagi

[Puppet Users] People transferring from Brussels to Ghent?

2014-01-14 Thread Felix Frank
On 01/14/2014 04:22 PM, Erik Dalén wrote: > I'll be there (and at puppet camp amsterdam before and cfgmgmt.eu > the days after). > > Github: https://github.com/dalen/ > > probably won't be wearing the glasses I have on the picture there :) I won't be at FOSDEM, but will be la

Re: [Puppet Users] Upgrading a .msi package through Puppet

2014-01-14 Thread Klavs Klavsen
I use: if ( $puppetversion != "3.3.1" ) { package { "Puppet 3.3.1": source => "software01\\autorepo\$\\Puppet\\puppet-3.3.1.msi", install_options => [ '/quiet', '/norestart','PUPPET_MASTER_SERVER=puppet.example.dk'] } } to ensure a specific version on all windows hosts. -- Yo

[Puppet Users] Optimizing the Puppet CA using Apache

2014-01-14 Thread Erik Dalén
I did a bit of a hack to serve the static files in the Puppet CA directly using Apache instead of going through the Ruby layer and indirector. It speeds things up quite a lot and also allows use of HTTP caching headers like IfModifiedSince etc. So here's some instructions on how to do it: https://

Re: [Puppet Users] Re: Choo choo here comes the FOSDEM train

2014-01-14 Thread Erik Dalén
I'll be there (and at puppet camp amsterdam before and cfgmgmt.eu the days after). Github: https://github.com/dalen/ probably won't be wearing the glasses I have on the picture there :) On 14 January 2014 10:09, Alexander Swen wrote: > I will be there > > Op vrijdag 10 januari 2014 22:13:17 U

Re: [Puppet Users] Re: logstash module to control service

2014-01-14 Thread Nikola Petrov
Not that it is related to puppet but you should check their wiki for example proper init scripts. I can remember there were systemd, upstart and normal systemv scripts for logstash. Also is there a reason why you are not using the official module. It suits our needs more than good and it is always

[Puppet Users] Re: Help on Hiera automate

2014-01-14 Thread jcbollinger
On Monday, January 13, 2014 7:02:29 PM UTC-6, alessandro mazzoli wrote: > > Hi all, > I'm trying to automate the set up of the machines staging,passing by an > php application ServerName , ProjectType,DbCredentials etc..(all strings) > and convert to yaml > Here's my common.yaml: > > --- > user

Re: [Puppet Users] Re: logstash module to control service

2014-01-14 Thread jcbollinger
On Tuesday, January 14, 2014 5:05:34 AM UTC-6, Dick Davies wrote: > > Are you sure that 'service logstash status' is working properly? > That's what puppet is using to confirm > logstash is running. > > Indeed, the debug output suggests that 'service logstash status' is *not*working as Puppe

Re: [Puppet Users] Re: I need a virtual exported resource, or something similar

2014-01-14 Thread Andrey Kozichev
can't seem figure this out. Here is my data: common.yaml nfsshares: "nfsshare-public": name: /var/public device: "hostname1:/vol/public" remounts: true options: 'rw,bg,hard' "nfsshare-private": name: /var/private ensure: mounted device: 'hostname2:/var/pri

Re: [Puppet Users] Re: problem using apache & passenger to run dashboard

2014-01-14 Thread Anh Lê Vũ
Dear Hai I got the exactly same problem and I have no experience in Passenger too I use passenger-4.0.33 and when I try to move the "RailsAutoDetect On" into the virtualhost i got the following error *Invalid command 'RailsAutoDetect', perhaps misspelled or defined by a module not included i

Re: [Puppet Users] Re: Nagios_contact in multiple contactgroups

2014-01-14 Thread Jonathan Gazeley
On 13/01/14 23:00, jcbollinger wrote: Puppet expects a comma-delimited string of contact group names (as will appear in the target config file) rather than an array. Upon receiving an array, it somehow chooses just one of its elements. It seems your second suggestion was correct. The nagios_*

Re: [Puppet Users] Re: logstash module to control service

2014-01-14 Thread Dick Davies
Are you sure that 'service logstash status' is working properly? That's what puppet is using to confirm logstash is running. service logstash start service logstash status && date # should print date service logstash stop service logstash status && date # should not print date If that's not what

[Puppet Users] Re: Choo choo here comes the FOSDEM train

2014-01-14 Thread Alexander Swen
I will be there Op vrijdag 10 januari 2014 22:13:17 UTC+1 schreef Daniele Sluijters: > > Hi everyone, > > It's not exactly a secret that FOSDEM will be taking place during the > first weekend of February at the usual location, the ULB Solbosch campus in > Brussels. It's also not that big of a se

[Puppet Users] Re: Help on Hiera automate

2014-01-14 Thread alessandro mazzoli
Yes, i can get the whole string but if i need the parameters inside that string as sn, project,dbname etc... example: file{"/var/sites/$sn": ensure=>directory, mode=>0755, owner=>$user, group=>$use