Re: [Puppet Users] File.exists? validation failure when trying to create file in same catalogue

2014-02-05 Thread fatmcgav
Line 41 is the end of the domain resource in the create_domain defined type. [1] Cheers Gav [1] https://github.com/fatmcgav/puppet-glassfish/blob/master/manifests/create_domain.pp#L41 On 6 Feb 2014 04:50, "Denmat" wrote: > Hi, > > What's the code on that line? > > > On 6 Feb 2014, at 4:04, Gavi

Re: [Puppet Users] Powershell onlyif and exit code

2014-02-05 Thread Rob Reynolds
This is a good resource for PowerShell and its interesting behaviors: http://zduck.com/2012/powershell-batch-files-exit-codes/ Also, have you looked at http://forge.puppetlabs.com/joshcooper/powershell On Wed, Feb 5, 2014 at 8:36 PM, Leon Kyneur wrote: > Hi, > > I have a powershell script whic

[Puppet Users] Re: Slides of the talk TDD and puppet a gave today in Ghent, cfgmgmtcamp.eu

2014-02-05 Thread William Leese
Thanks for all the work on this - much appreciated. -- 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 view this discu

Re: [Puppet Users] File.exists? validation failure when trying to create file in same catalogue

2014-02-05 Thread Denmat
Hi, What's the code on that line? > On 6 Feb 2014, at 4:04, Gavin Williams wrote: > > /home/vagrant/modules/glassfish/manifests/create_domain.pp:41 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop recei

Re: [Puppet Users] problem with File[path]

2014-02-05 Thread Peter Romfeld
wow thanks so much for the fast answer! im used from python that single or double quote means the same :) On Thu, Feb 6, 2014 at 12:47 PM, Peter Bukowinski wrote: > On Feb 5, 2014, at 11:39 PM, Peter Romfeld > wrote: > > > > hi, > > > > i get the following error: > > > > Parameter path failed

Re: [Puppet Users] problem with File[path]

2014-02-05 Thread Peter Bukowinski
On Feb 5, 2014, at 11:39 PM, Peter Romfeld wrote: > > hi, > > i get the following error: > > Parameter path failed on File[${nagiospluginsdir}/${pname}]: File paths must > be fully qualified, not '${nagiospluginsdir}/${pname}' > > plugin.pp: > > define nrpeplugins::plugin( > $nagiosplugins

[Puppet Users] problem with File[path]

2014-02-05 Thread Peter Romfeld
hi, i get the following error: Parameter path failed on File[${nagiospluginsdir}/${pname}]: File paths must be fully qualified, not '${nagiospluginsdir}/${pname}' plugin.pp: define nrpeplugins::plugin( $nagiospluginsdir = $nrpeplugins::params::nagiospluginsdir, $nrpepluginsdir = $nrpeplugin

[Puppet Users] Powershell onlyif and exit code

2014-02-05 Thread Leon Kyneur
Hi, I have a powershell script which I'm trying to implement within an exec/onlyif condition. The script I'm working with is quite complex so I don't really want to put all of the logic inline and would prefer it stayed contained within the .ps1. I'm running into issues calling powershell and ret

Re: [Puppet Users] managing puppet module dependencies

2014-02-05 Thread Ryan Coleman
On Mon, Jan 13, 2014 at 5:17 AM, David Portabella < david.portabe...@gmail.com> wrote: > Hi Ryan, > > I do as follows: > > $ puppet module install puppetlabs-mysql > > $ puppet module list --tree > └─┬ puppetlabs-mysql (v2.1.0) > └── puppetlabs-stdlib (v4.1.0) > > > edit /Users/david/.puppet/mod

Re: [Puppet Users] Daily Digest setting

2014-02-05 Thread Dawn Foster
On Fri, Jan 31, 2014 at 11:08 PM, wrote: > I need to enable daily digest setting for receiving emails. Dont want to be > receiving individual emails. > I am not using gmail address. So not sure how to enable daily digest > setting. any suggestion ? Hi Sam, You should be able to get groups of me

Re: [Puppet Users] Workaround for user password hash

2014-02-05 Thread Brian Mathis
On Wed, Feb 5, 2014 at 1:25 PM, Chuck Anderson wrote: > On Wed, Feb 05, 2014 at 09:48:59AM -0800, zerozerouno...@gmail.com wrote: > > I needed a "user" puppet resource to add a user and set its password, on > > CentOS 6.4. > > The manifest was applied with no errors, but the password was not set

Re: [Puppet Users] learning, but puppet does not detect change

2014-02-05 Thread Christopher Wood
(inline) On Wed, Feb 05, 2014 at 05:51:37AM -0800, Sudheendra S.N wrote: >Even i am observing same problem. Puppet Version : 2.7.25 >I just tried to create a file in /tmp folder, but after executing puppet >agent --test --server --debug, i could not see any file created >in /tmp.

Re: [Puppet Users] Please help with control/ordering issue

2014-02-05 Thread D C
The application does use rabbitmq which is the cause for my woes. The chaining arrows will work to enforce the order, but it doesn't help with the onlyif portion... Class['myapp::phase1'] only if [ ! -e /path/to/puppet.phase ] The alternative which I was trying to avoid was to go and dig throug

Re: [Puppet Users] Workaround for user password hash

2014-02-05 Thread Jeremy T. Bouse
I believe Chuck is on the right path.. Just from a simple test (https://gist.github.com/jbouse/8830543) this shows that using the double quotes is incorrect. On 05.02.2014 13:25, Chuck Anderson wrote: On Wed, Feb 05, 2014 at 09:48:59AM -0800, zerozerouno...@gmail.com wrote: I needed a "user" p

Re: [Puppet Users] Workaround for user password hash

2014-02-05 Thread Chuck Anderson
On Wed, Feb 05, 2014 at 09:48:59AM -0800, zerozerouno...@gmail.com wrote: > I needed a "user" puppet resource to add a user and set its password, on > CentOS 6.4. > The manifest was applied with no errors, but the password was not set > correctly. > > I tried: > > password => sha1("password")

Re: [Puppet Users] Puppet module template mentioned at contributor summit

2014-02-05 Thread Atom Powers
Thank you Gareth. Your module skeleton has helped my module development tremendously. Even though I created my own, differently opinionated, fork most of the skeleton is the same and your effort is greatly appreciated. On Wed, Feb 5, 2014 at 9:38 AM, Gareth Rushgrove wrote: > This came up in disc

Re: [Puppet Users] learning, but puppet does not detect change

2014-02-05 Thread Sudheendra S.N
Even i am observing same problem. Puppet Version : 2.7.25 I just tried to create a file in /tmp folder, but after executing puppet agent --test --server --debug, i could not see any file created in /tmp. Attaching the debug text. Below is my class/module: class hosts { file { "tmp/ho

[Puppet Users] Workaround for user password hash

2014-02-05 Thread zerozerounouno
Hi, I suppose it will be useful if I share a workaround I just found for a problem I encountered. I needed a "user" puppet resource to add a user and set its password, on CentOS 6.4. The manifest was applied with no errors, but the password was not set correctly. I tried: password => sha1("

[Puppet Users] Puppet module template mentioned at contributor summit

2014-02-05 Thread Gareth Rushgrove
This came up in discussion a couple of times at the Puppet contributor summit at Config Management Camp in Gent over the last couple of days so I thought I'd write up. A while ago I put together a pretty complete/opinionated skeleton for puppet modules. Especially if you're not too familiar with r

Re: [Puppet Users] Please help with control/ordering issue

2014-02-05 Thread Jason Antman
On 02/05/2014 08:57 AM, dc12...@gmail.com wrote: > Thanks, I will take a look at that post. > I haven't been able to find the "proper" way to do some of these things. > > Initially I had this running as a single class, working only with > requires, before, and notify. > > This is where I ran into

[Puppet Users] File.exists? validation failure when trying to create file in same catalogue

2014-02-05 Thread Gavin Williams
Afternoon all I'm currently doing some final testing on my Glassfish module[1] before I look to release it. However I've just stumbled across an issue where-by Puppet fails the run based on some File.exists? validation in one of the types, which is trying to use a file that is being created e

Re: [Puppet Users] Puppet agent - two calls to server / request?

2014-02-05 Thread Jason Slagle
On 02/05/2014 11:54 AM, JonY wrote: I set up a simple ENC this morning that just logs every agent request to a file. What I've noticed is that every agent is logging two requests per run. Each request is about ~10 seconds apart. Is this normal? Are my agents not setup correctly? This is normal

[Puppet Users] Puppet agent - two calls to server / request?

2014-02-05 Thread JonY
I set up a simple ENC this morning that just logs every agent request to a file. What I've noticed is that every agent is logging two requests per run. Each request is about ~10 seconds apart. Is this normal? Are my agents not setup correctly? -- You received this message because you are subsc

Re: [Puppet Users] Code coverage for puppet resources

2014-02-05 Thread Nikola Petrov
Bah!! I am waiting for this from months. Thanks so much! Now I will be able to actually measure my coverage and not blindly rely on proper TDD. -- Nikola On Sun, Jan 26, 2014 at 12:50:44PM +, Gareth Rushgrove wrote: > For anyone else who likes writing tests for their puppet manifests, > I'

Re: [Puppet Users] Get Facter Facts for Previously installed module

2014-02-05 Thread jcbollinger
On Wednesday, February 5, 2014 3:09:48 AM UTC-6, Ralph Bolton wrote: > > Thank you all for your responses. > > From John's response, I see that I'm going to struggle here. Ultimately, I > am just trying to get some details about the system, and will look into > installing our system info script

[Puppet Users] Re: how to copy a file from a network location

2014-02-05 Thread jcbollinger
On Tuesday, February 4, 2014 9:18:47 AM UTC-6, rstirella wrote: > > I am trying to copy a file to a desktop from a network drive with puppet > but I keep getting errors. > > Does anyone know the script to copy a file from one location to another > with puppet? > Puppet does not have "scripts

Re: [Puppet Users] Please help with control/ordering issue

2014-02-05 Thread dc12078
Thanks, I will take a look at that post. I haven't been able to find the "proper" way to do some of these things. Initially I had this running as a single class, working only with requires, before, and notify. This is where I ran into trouble, maybe you know of an alternate way to achieve

Re: [Puppet Users] Understanding script process control

2014-02-05 Thread JonY
One thing that does strike me as odd: if I run 'puppet agent --test' repeatedly I don't see multiple versions of this app. The duplication only happens when puppet runs via crond. In any event - I'm trying 'hasstatus => false' to see if this makes any difference. On Tuesday, February 4, 2014

Re: [Puppet Users] Understanding script process control

2014-02-05 Thread JonY
I'm getting suspicious that there is filesystem corruption. This may be confusing the service control. On Tuesday, February 4, 2014 12:11:13 PM UTC-8, Jose Luis Ledesma wrote: > > Also try removing the subscribe parameter from the service, and check if > the restart works properly. > > Regards,

Re: [Puppet Users] Please help with control/ordering issue

2014-02-05 Thread Jason Antman
Unnamed poster, Succinctly: You're trying to write a bash script in Puppet. That's not how it works, that's not what it's designed for, that's not how it should be used. However, luckily, there's a really simple and easy way to do what you're trying to in Puppet: Class['myapp::phase1'] -> Cl

[Puppet Users] Please help with control/ordering issue

2014-02-05 Thread dc12078
Hi, im trying to work some logic into a puppet class and I'm not sure the best way to do it. For this application, I have an installation phase, a setup phase, and then a maintenance phase. My current method of maintaining this is to call the relevant subclass using "include". I then have to

Re: [Puppet Users] Get Facter Facts for Previously installed module

2014-02-05 Thread Ralph Bolton
Thank you all for your responses. >From John's response, I see that I'm going to struggle here. Ultimately, I am just trying to get some details about the system, and will look into installing our system info script as part of the OS build. Truthfully though, it's not doing so much that I could

Re: [Puppet Users] Daily Digest setting

2014-02-05 Thread Felix Frank
Hi, I'm not aware of Google Groups offering this feature. You may try with the link to the Group page at the end of each and every mail you receive from it. Note that you can unsubscribe for the time you are not actively posting, and follow the conversations via the web interface to the list. HT

[Puppet Users] Re: Puppet vs "typical" release management / change management

2014-02-05 Thread Steven James
Thanks for your input chapsappreciated! Steve On Tuesday, February 4, 2014 9:05:37 PM UTC+11, Steven James wrote: > > Hi there. > > I'm look to see if anybody has any advice to share around how the > implementation of Puppet affects the "typical" ITIL based release > management and change