Re: [Puppet Users] Re: PuppetDB: SSL problems

2013-05-20 Thread kl . puppetuser
Ken, it's working now! "Solution" below. On Fri, May 17, 2013 at 4:27 PM, Ken Barber wrote: > Could very well be, however it seems so far you're the first unlucky > one to see this issue afaik :-). I've been trying to reproduce it on > my own setup with no luck yet, although I've got some ideas t

Re: [Puppet Users] Re: Using onlyif for Windows exec

2013-05-20 Thread Josh Cooper
Hi Gary, On Wed, Apr 17, 2013 at 4:55 AM, Gary Park wrote: > Hello, > > Thanks for all the information so far. > > Looks like I have got this working. I think that there was a couple > things at play, most notable the use of double quotes in the onlyif command. > > I replaced these with \' and

Re: [Puppet Users] Re: Need help with python msi install on windows

2013-05-20 Thread Josh Cooper
Hi Matt, On Tue, May 7, 2013 at 10:26 AM, Matt F wrote: > Bump. Any help on this would be GREATLY appreciated! I also notice in the > windows event log that I get the error "Failed to install: Fail on INT > 24." and "/Stage[main]/Python::Install/Package[python]/ensure: change from > absent to

[Puppet Users] Re: Custom function help: works locally, "wrong header line format" error on master

2013-05-20 Thread David Pires
I ended up creating workaround; Instead of using the ec2 api in the function, I am using it elsewhere to write a file, and my custom function reads this file as a string. I still don't know why the parser chokes when trying to iterate a collection. I tried updating the master and agent to 3.1.1

Re: [Puppet Users] Migration from 0.25.4 to the latest puppet and relating issues ....

2013-05-20 Thread Pete Brown
On 20 May 2013 23:31, jcbollinger wrote: > > > On Sunday, May 19, 2013 10:43:19 PM UTC-5, Pete wrote: >> >> You may want to have a look here. >> http://docs.puppetlabs.com/**guides/upgrading.html >> and here >> http://docs.puppetlabs.com/**puppet/

Re: [Puppet Users] Workaround for Puppet 3 not working in Fedora 18

2013-05-20 Thread Pete Brown
Yeah they switched to systemd on fedora so the init scripts went away (finally!) They also renamed the "service" to puppetagent Try this. systemctl start puppetagent On 21 May 2013 08:36, Tom Poulton wrote: > Wait... spoke too soon: > > *Error: Could not start Service[puppet]: Execution of '/sb

Re: [Puppet Users] Purge puppet's reports

2013-05-20 Thread Amos Shapira
tmpwatch/tmpreaper (for Ubuntu) is first thing I though about too - but the vagn has a good point about better keeping the latest report from each server, which justifies using his script. On Sunday, 3 February 2013 04:17:30 UTC+11, Ken Barber wrote: > > tmpwatch is also a good approach: > http

[Puppet Users] Re: Rhel based distro and multiple package version installed

2013-05-20 Thread joe
Please heed the advice of others concerning packaging. As to your require question, you can require a defined type just like any other resource: require => Tomcat::Home['6.0.37'] On Saturday, May 18, 2013 2:38:47 AM UTC-6, Luca Gervasi wrote: > > Hello, > > i'm starting using Puppet on my per

Re: [Puppet Users] Workaround for Puppet 3 not working in Fedora 18

2013-05-20 Thread Craig White
It would seem that the puppet package has been removed/changed. Reinstall it again. Craig On May 20, 2013, at 3:36 PM, Tom Poulton wrote: > Wait... spoke too soon: > > Error: Could not start Service[puppet]: Execution of '/sbin/service puppet > start' returned 6: > Error: /Stage[main]/Puppet

Re: [Puppet Users] Workaround for Puppet 3 not working in Fedora 18

2013-05-20 Thread Tom Poulton
Wait... spoke too soon: *Error: Could not start Service[puppet]: Execution of '/sbin/service puppet start' returned 6: * *Error: /Stage[main]/Puppet/Service[puppet]/ensure: change from stopped to running failed: Could not start Service[puppet]: Execution of '/sbin/service puppet start' returned 6:

Re: [Puppet Users] Workaround for Puppet 3 not working in Fedora 18

2013-05-20 Thread Tom Poulton
Yep that worked, I had to enable the puppetlabs-devel repo in /etc/yum.repos.d/puppetlabs.repo (instead of "yum --enablerepo=puppetlabs-devel") but it works fine now, lesson learned :) Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To u

[Puppet Users] Failed to set owner to: integer too big to convert to `int'

2013-05-20 Thread Robert Gregory
When trying to execute the code bellow I get this error: err: /Stage[main]//Node[ftp.example.com]/Addclient[uniqueID]/File[/PATH/inbox]/owner: change from 2279892064 to 2279892064 failed: Failed to set owner to '2279892064': integer 2279892064 too big to convert to `int' This code works for a

Re: [Puppet Users] puppet pull code from svn

2013-05-20 Thread Wolf Noble
Hi Dominic, take a look at the vcsrepo module: http://forge.puppetlabs.com/puppetlabs/vcsrepo this should likely get you everything you need. On Mon, May 20, 2013 at 2:45 PM, DJames wrote: > How can i setup puppet to pull code from A current SVN server? > > -- > You received this message b

[Puppet Users] puppet pull code from svn

2013-05-20 Thread DJames
How can i setup puppet to pull code from A current SVN server? -- 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 to puppet-users+unsubscr...@googlegroups.com. To pos

Re: [Puppet Users] client connection errors: SSL, SNI and DNS_ALT_NAMES Oh My

2013-05-20 Thread Jonathan Proulx
So turns out to be a very simple solution, all I needed was to set a "ServerAlias" apache directive for the alternate dns name. Since this is the only service apache on these systems serves I'd been sloppy and didn't specify any ServerName or ServerAlias, relying on everything being the default ca

Re: [Puppet Users] Two resources managing the same file?

2013-05-20 Thread Wolf Noble
It seems to me that you will be relinquishing puppet's ability to maintain the content of the file by doing this. If that's acceptable, use the replace parameter to only have puppet maintain the initial config and allow the file to be changed outside puppet moving forward. If that's not acceptab

Re: [Puppet Users] Preparing to install Puppet Dashboard on RHEL 5 with newer MySQL

2013-05-20 Thread Dan White
Thanks. We already use a locally maintained repo for third party packages. I will adapt the script to pull the appropriate files and place them in that repo. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” B

[Puppet Users] Re: hiera-gpg and 400 error

2013-05-20 Thread Schofield
On puppet version 3.0.0 there was a typo in the hiera.yaml file that prevented the gpg backend from loading so the data was never found. If I remember right I think "backends" was just "backend". Hiera silently failed back to loading just yaml without saying anything and gpg was never loaded.

[Puppet Users] Two resources managing the same file?

2013-05-20 Thread Schofield
Given a configuration file that is initially managed by a template in File resource A . Resource B interacts with a middleware product through its published admin API which causes changes within File resource A. Is there anyway, through custom provider code for resource B to tell resource A th

[Puppet Users] Re: deep_merge and hiera

2013-05-20 Thread Fred Gansevles
After some more digging, I found that the logic of Hash.merge is reversed with the logic of DeepHash.merge, so to get the expected results, the hiera/backend.rb must swap its hashes When you change the merge_answer in hiera/backand.rb from: def merge_answer(left,right) case Config[:merg

Re: [Puppet Users] module namespace?

2013-05-20 Thread Wolf Noble
Hi Matt, What I've seen done before is to use ${modulename}x for 'wrapper' modules that give you the ability to stay current with the forge/release/externally-owned module, but still maintain the necessary site-spectific-shim code to extend the functionality of the original module in the ways you

[Puppet Users] Announce: Module puppetlabs/puppetdb 1.3.0 Available

2013-05-20 Thread Ken Barber
A new release of the puppetlabs/puppetdb module is now available on the Forge: https://forge.puppetlabs.com/puppetlabs/puppetdb/1.3.0 This feature release provides us with a few new features for the PuppetDB module. You can now disable SSL when using the `puppetdb` class by using the new paramet

Re: [Puppet Users] Preparing to install Puppet Dashboard on RHEL 5 with newer MySQL

2013-05-20 Thread Wolf Noble
Hi Dan, I've a script here that grabs the mysql 5.5 / 5.6 packages and turns them into a yumrepo for easier consumption: https://github.com/wolfspyre/MySQL_Createrepo it's not perfect, but imho better than grabbing the RPMs manually form Oracle. On Wed, May 15, 2013 at 3:24 PM, Dan White wrot

Re: [Puppet Users] Holding packages on providers with holdable feature

2013-05-20 Thread sjr
Thanks! I'll continue the discussion there after opening the issue :-) sjr. On Saturday, May 18, 2013 1:18:07 AM UTC+2, Lelutin wrote: > > On 17/05/13 03:45 AM, sjr wrote: > > I have done a quick&dirty hack to the APT provider and it works when > > installing a new package I can enforce a vers

[Puppet Users] Problem creating user with Puppet

2013-05-20 Thread dusan . dordevic
Hi, (Since I am relatively new to Puppet, this might be some trivial problem) I am trying to create a user with Puppet, using following code: user { "clavis": ensure => "present", home => "/home/clavis", name => "clavis", sh

[Puppet Users] hiera-gpg and 400 error

2013-05-20 Thread Rachel Andrew
Hello I am setting up servers with a puppetmaster and various nodes, all running Debian Wheezy with the Puppet 3 packages from Puppetlabs. The Puppetmaster is configured with Passenger and Apache. I am trying to use hiera-gpg to encrypt passwords, I have it installed and have created a key as

Re: [Puppet Users] Rhel based distro and multiple package version installed

2013-05-20 Thread Nikola Petrov
You should really build packages of java/tomcat with fpm. It will save you so much time and hassle in the end. Want different versions of the same package you just have to name them with the package version - no problem. Let's assume that extract the java distribution in a directory named java-$(

Re: [Puppet Users] Migration from 0.25.4 to the latest puppet and relating issues ....

2013-05-20 Thread jcbollinger
On Sunday, May 19, 2013 10:43:19 PM UTC-5, Pete wrote: > > You may want to have a look here. > http://docs.puppetlabs.com/guides/upgrading.html > and here > > http://docs.puppetlabs.com/puppet/3/reference/release_notes.html#backwards-incompatible-changes-in-30 > > Those are good documents to rea

Re: [Puppet Users] puppet in an appliance model?

2013-05-20 Thread Brian Lalor
On May 20, 2013, at 8:59 AM, jcbollinger wrote: > Well, I think there would be a couple more things missing than that. > Reporting and the HTTP API spring to mind. Still, these are things that > don't make much sense in a single-machine context anyway. Certainly all the > bread & butter fea

Re: [Puppet Users] puppet in an appliance model?

2013-05-20 Thread jcbollinger
On Saturday, May 18, 2013 6:45:35 AM UTC-5, nikolavp wrote: > > Hi, > > Using puppet in standalone mode with puppet apply from a cronjob will > work without problems. The only thing that will be missing are exported > resources. But you won't need those if this is a single machine. > > Well,

[Puppet Users] deep_merge and hiera

2013-05-20 Thread Fred Gansevles
I was playing around with the new deep-merge hiera feature to check it's usability I found some unexpected behaviour with array resolution the following yaml files get parsed top.yaml: arr: - 1 hsh: arr: - 1 mid.yaml: arr: - 2 hsh: arr: - 2 bo

Re: [Puppet Users] module namespace?

2013-05-20 Thread Nikola Petrov
Well we had that problem in the past. I now name my modules with a prefix for the company first letter so if I was working for puppetlabs then I would name the module pmysql. The thing is that most of the time I want convenient "wrappers" for the mysql module provided by puppetlabs or some third pa