Re: [Puppet Users] Pulling my hair out with CA proxying

2013-10-02 Thread Gavin Williams
Pete I've not done this before, however am familiar with Puppet, and know a lot more about F5s... I note that you say that you're expecting apache on the masters to proxy onto the CA server. Is there any reason you couldn't use the F5 to select the CA server for any CA requests? Should be a

[Puppet Users] Re: b64_zlib_yaml errros after server upgrade to

2013-10-02 Thread Tim Fall
I'm having the same issue as well. I tried enabling the dev repo, but no luck there with 3.3.1rc2. Also running in passenger under Foreman. On Tuesday, September 17, 2013 1:14:13 AM UTC-7, SAF wrote: > > Hi, > > After upgrading the puppet server to puppet-server-3.3.0-1.el6.noarch, I > get the f

[Puppet Users] Howto model different stages

2013-10-02 Thread Christian Flamm
Hi all, I'm trying to find a nice way to model different stages (like: live, test, dev) of puppet modules. Initially I thought of different branches inside one (Git) repository... - either being checked out on one puppetmaster into different directories being used as different puppet en

Re: [Puppet Users] Howto model different stages

2013-10-02 Thread Stig Sandbeck Mathisen
Christian Flamm writes: > Hi all, > I'm trying to find a nice way to model different stages (like: live, > test, dev) of puppet modules. Initially I thought of different > branches inside one (Git) repository... > > * either being checked out on one puppetmaster into different > directories be

[Puppet Users] onlyif return code

2013-10-02 Thread Björn
Hello, I try to ensure our password policies using /etc/login.defs and PAM cracklib. class pci_policy::password( $cracklib = $pci_policy::params::cracklib, $pam_password = $pci_policy::params::pam_password, ) inherits pci_policy::params { package{$cracklib: ensure => installed,

Re: [Puppet Users] rspec-puppet require syntax

2013-10-02 Thread Johan De Wit
When 'require' multiple resources, you should copy what the catalog contains : * 'require' => '[User[nginx]{:name=>"nginx"}, Exec[install_nginx]{:command=>"install_nginx"}]', in the rspec file. Thats the only way i could make it pass the test. Grts jo * On Saturday, 21 September 2013 01:

Re: [Puppet Users] Pulling my hair out with CA proxying

2013-10-02 Thread Pete Hartman
I do not have responsibility for the F5's and I'm not sure what my networking team would be willing to do in terms of custom rules no matter how simple. The use of the apache proxy service on the masters is a configuration documented and recommended (at least as one alternative) by PuppetLabs; now

Re: [Puppet Users] Odd (fatal) error noted in logs

2013-10-02 Thread jcbollinger
On Tuesday, October 1, 2013 1:57:43 PM UTC-5, Ayers, Mike wrote: > > > From: puppet...@googlegroups.com [mailto:puppet- > > us...@googlegroups.com ] On Behalf Of Peter Berghold > > > What does "Could not prefetch package provider 'apt': invalid byte > > sequence in US-ASCII" mean exactly? Th

[Puppet Users] Converting to heira format issue

2013-10-02 Thread Dan
Hi I'm just getting into hiera and have now configured it, my attempts at migrating to hiera have been frustratingly hard as I'm not able to get the write syntax. Can someone help me in converting the below from a class declaration to hiera? Current declarations in my declare.pp file: class p

[Puppet Users] Re: Still no nagios joy

2013-10-02 Thread jcbollinger
On Tuesday, October 1, 2013 10:50:42 AM UTC-5, David Thompson wrote: > > > I continue to be unable to get puppetdb to create nagios resources. Nitpick: puppetdb does not create resources of any type, in any sense. That leaves me uncertain whether you are saying that the exported nagios_host

Re: [Puppet Users] Re: Still no nagios joy

2013-10-02 Thread David Thompson
On 10/2/13 9:09 AM, jcbollinger wrote: On Tuesday, October 1, 2013 10:50:42 AM UTC-5, David Thompson wrote: I continue to be unable to get puppetdb to create nagios resources. Nitpick: puppetdb does not create resources of any type, in any sense. That leaves me uncertain whether you ar

[Puppet Users] Failed to execute a command using the exec resource on Windows

2013-10-02 Thread beyonddc . storage
I am having a difficult time to determine the cause of why my exec resource failed to execute a command on Windows. Here's the error message reproduced by the Puppet on the windows machine when I ran 'puppet agent --test'. Error: cmd.exe /c ruby -e "File.open('c:\replace_me', 'w') { |f| f.writ

[Puppet Users] Re: Puppet vs Oracle Enterprise Manager (cm pack)?

2013-10-02 Thread Byron Miller
Doug, For the most part, Oracle sells 12c cloud control as an enterprise dashboard with provisioning and metering capabilities. 12c provisions using templates and scripts and then has some patching stuff built on that for its oracle products and some os's. It's not an idempotent based system

[Puppet Users] Re: [Puppet-dev] Announce: PuppetDB 1.5.0 Available

2013-10-02 Thread asq
W dniu wtorek, 1 października 2013 19:11:40 UTC+2 użytkownik Matthaus Litteken napisał: > > Sorry about that. Something went awry in the ship of 1.5.0. We've > updated the apt repos and 1.5.0 is now there for all of the debian and > ubuntu flavors. And as Ken said, thanks for letting us know! >

Re: [Puppet Users] Re: Still no nagios joy

2013-10-02 Thread David Thompson
On 10/2/13 9:44 AM, David Thompson wrote: Do you know whether the exported nagios_host resources in particular are ending up in the DB? Just to eliminate postgres as a possible problem source, I changed the database.ini and switched (back) to the embedded hsqldb database. Same result with

Re: [Puppet Users] Re: [Puppet-dev] Announce: PuppetDB 1.5.0 Available

2013-10-02 Thread Matthaus Owens
burji is a hostname for a machine that is no longer in use. I would rsync using the yum.puppetlabs.com hostname. The following works for me: rsync rsync://yum.puppetlabs.com/packages/yum/el/5/products/x86_64/puppetdb-1.5.0-1.el5.noarch.rpm -rw-r--r--20569592 2013/09/30 16:47:20 puppetdb-1.5.0

Re: [Puppet Users] Failed to execute a command using the exec resource on Windows

2013-10-02 Thread Rob Reynolds
Can you verify the user running the service has access to the folder? Also, can you please post your manifest? And if you wouldn't mind, please run 'puppet agent --test --trace --debug --verbose' and attach that output as well? On Wed, Oct 2, 2013 at 9:41 AM, wrote: > I am having a difficult

Re: [Puppet Users] Pulling my hair out with CA proxying

2013-10-02 Thread Felipe Salum
Can you paste your /etc/httpd/conf.d/puppetmaster.conf ? On Wednesday, October 2, 2013 5:35:58 AM UTC-7, Pete Hartman wrote: > > I do not have responsibility for the F5's and I'm not sure what my > networking team would be willing to do in terms of custom rules no > matter how simple. > > The u

Re: [Puppet Users] Failed to execute a command using the exec resource on Windows

2013-10-02 Thread Fernando Torres
Did you provide the path attribute in your exec resource? Some like that: exe {'execute pretty command': command => 'cmd.exe /c echo 'hello world', path => $::path } $::path is a variable that contains all paths contained in this user profile. you can also define it hardcoded. Note: you mu

Re: [Puppet Users] Pulling my hair out with CA proxying

2013-10-02 Thread Pete Hartman
I tried to update this, but apparently failed. Problem was my own misunderstanding of apache. 1) the passenger module was loaded before the proxy module, so the app was responding before apache could proxy the request 2) I didn't recognize this as a working fix at first because I also omitted mod

Re: [Puppet Users] Failed to execute a command using the exec resource on Windows

2013-10-02 Thread beyonddc . storage
It's the path, you are right. After I set it, it ran successfully. Thanks! On Wednesday, October 2, 2013 3:26:56 PM UTC-4, Fernando Torres wrote: > > Did you provide the path attribute in your exec resource? > > Some like that: > > exe {'execute pretty command': >command => 'cmd.exe /c echo

Re: [Puppet Users] Re: [windows server 2008 r2] puppet errors in 3.3.0 on exchange database servers

2013-10-02 Thread Ethan Brown
Christian - I'm doing the final verification of our fix, and was hoping that I could get the output from Facter run by itself? On Fri, Sep 20, 2013 at 1:36 PM, Rob Reynolds wrote: > I would say with all of this in mind we move forward with a fix where we > look to see that the network adapter

Re: [Puppet Users] Re: [windows server 2008 r2] puppet errors in 3.3.0 on exchange database servers

2013-10-02 Thread cko
Hi Ethan, what's the exact command that i would have to use? On Wednesday, October 2, 2013 11:35:29 PM UTC+2, Ethan Brown wrote: > > Christian - > > I'm doing the final verification of our fix, and was hoping that I could > get the output from Facter run by itself? > > > > On Fri, Sep 20, 201

[Puppet Users] exec is stripping "%" in the string.

2013-10-02 Thread Jason Greathouse
I'm trying to pass a url to an exec and at some point all the % characters are being stripped out of the string. Here's my init.pp: service { 'apache2': ensure => running, enable => true, notify => Exec['AWSwait'] } file { '/mnt/WaitResponse.json': ensure => file, ow

[Puppet Users] Announce: Puppet 3.3.1-rc3 available

2013-10-02 Thread Melissa Stone
**Release candidate:** Pre-release: 3.3.1 has not yet been released. RC1: September 23, 2013 RC2: September 27, 2013 RC3: October 02, 2013 3.3.1 is to be a bug fix release in the Puppet 3.3 series. The focus of the release is fixing backwards compatibility regressions that slipped in via the YAM

Re: [Puppet Users] onlyif return code

2013-10-02 Thread Mike Delaney
On Wed, Oct 2, 2013 at 4:15 AM, Björn wrote: > exec{'ensure password policy for pci': > cwd => '/bin/', > command => "/bin/sed -i 's/^password.*cracklib.so.*/password > requisite pam_cracklib.so retry=3 minlen=8 difok=5 > dcredit=-1 lcredit=-1 ucredit=-1 ocredi

[Puppet Users] Idiom for throwing an error if a command fails

2013-10-02 Thread Richard K. Miller
Hi, What's the best idiom for executing a command on every Puppet run and triggering an error if the command fails? For example, the following code throws an error if the machine has anything other than 8 cores. exec { "echo 'This machine does not have 8 cores!'; exit 1": unless => "fact

Re: [Puppet Users] Newbie basic parameterized class usage question

2013-10-02 Thread Cory Stoker
Not sure if you got help or not but that error is telling you that filesys_group_acl is not a resource type. This is because you created it as a class and not a defined resource type. Defined types use the "define" keyword instead of the "class" keyword. http://docs.puppetlabs.com/puppet/3/refer

Re: [Puppet Users] b64_zlib_yaml errros after server upgrade to

2013-10-02 Thread Henrik Nicolaisen
> I'm having the same issue as well. I tried enabling the dev repo, but no luck > there with 3.3.1rc2. Also running in passenger under Foreman. try checking if you have both a repos version and a gem version installed, and if they are different, that was the error on my setup //Henrik -- You

Re: [Puppet Users] b64_zlib_yaml errros after server upgrade to

2013-10-02 Thread Tim Fall
That might have been it, but I wiped out foreman and foreman-proxy and reinstalled. On Thursday, October 3, 2013 2:29:05 PM UTC+9, Henrik Nicolaisen wrote: > > > I'm having the same issue as well. I tried enabling the dev repo, but no > luck there with 3.3.1rc2. Also running in passenger under F

[Puppet Users] Re: Newbie basic parameterized class usage question

2013-10-02 Thread Rahul Khengare
Hi Patrick, You calling the filesys_group_acl class in wrong way. Way you are using is for function/defined type. Make following change in your manifests. Here's the contents of tws_node's init.pp: > > class tws_node { > > $userhome="/opt/IBM/TWS" > > # filesys_group_acl { "ibmtm_acl