[Puppet Users] Issues with installing some modules !!!

2012-07-31 Thread Rakesh K
Hi, I am new to puppet and have started evaluating various features in last few days. I am not a developer and am mostly going to use the modules available on github or puppet forge. Currently I have tried all easier modules and they seem to work perfectly without any issues, but now the prob

[Puppet Users] Issues with some modules !!!

2012-07-31 Thread Rakesh Kathpal
Hi, I am new to puppet and have started evaluating various features in last few days. I am not a developer and am mostly going to use the modules available on github or puppet forge. Currently I have tried all easier modules and they seem to work perfectly without any issues, but now the problem

Re: [Puppet Users] NFS mounts with puppet creates error

2012-07-31 Thread Axel Bock
Hello Christopher, that's a nice explanation. I thought only the contents _under_ .../nfs-mounted/ would be server-side, not the mount-point itself. Well you always learn more. no_root_squash is not an option, I will have a look as how to manage that properly on our server side. Mainly I just

Re: [Puppet Users] Using file{} with array parameter fails

2012-07-31 Thread Axel Bock
thanks for the reply, I actually made an error in my declaration. I used two variables which I had just moved out of scope, and so I declared two empty File[] objects - and puppet complained. When your solution didn't work either it hit me :) . thanks & greetings! Axel. Am Dienstag, 31. Ju

[Puppet Users] duplicate resources across defined types

2012-07-31 Thread Joe Topjian
Hello, I am hoping that someone might be able to shed some light on the best way to solve an issue. https://github.com/puppetlabs/puppetlabs-apache/commit/c2c75a62b7dafced8a6120a14bacfc8be7539282

Re: [Puppet Users] Re: High CPU load / queued passenger requests

2012-07-31 Thread Ramin K
On 7/31/2012 2:17 PM, Luke Baker wrote: I ended up restart the mysql database on the storeconfigs server which helped this problem dramatically. But, I'm still open for more tuning options if they're out there : ) Some info: Puppetmaster is RHEL6 x86_64 (VM) 4 vCPU 8GB memory Apa

Re: [Puppet Users] $concat_basedir not defined

2012-07-31 Thread R.I.Pienaar
- Original Message - > From: "Shannon McFarland" > To: puppet-users@googlegroups.com > Sent: Tuesday, July 31, 2012 4:22:31 PM > Subject: Re: [Puppet Users] $concat_basedir not defined > > Here is the deal, we are trying to launch the puppet agent --test > from the preseed file using th

[Puppet Users] Re: Access @resouce in custom type

2012-07-31 Thread Nick Lewis
On Tuesday, July 31, 2012 2:05:28 PM UTC-7, ZJE wrote: > > Is it possible to access @resource variables inside a type? > > I would like to make some decisions on parameters based on other > parameters that may have already been set. > > For example, > --- > newparam(:param1) do > Puppet.debu

Re: [Puppet Users] $concat_basedir not defined

2012-07-31 Thread Shannon McFarland
Here is the deal, we are trying to launch the puppet agent --test from the preseed file using this line: d-i preseed/late_command string in-target puppet agent --test --waitforcert 0 || true; I tried using 'puppet agent --config=/etc/puppet/puppet.conf --test --waitforcert 0' given your sugges

Re: [Puppet Users] Get extra error output when debugging custom types?

2012-07-31 Thread Stefan Schulte
On Tue, Jul 31, 2012 at 03:24:15PM -0700, ZJE wrote: > Is it possible to get extra output when running custom types? Right now, > I'm getting an error message and I'm not sure where in the code it's being > thrown from. > For example, I can see that I'm trying to iterate over a null object, but

Re: [Puppet Users] Re: Modify Facter Value

2012-07-31 Thread Adrien Thebo
You can have multiple resolutions for a single fact, and use fact precedence to determine which ones should be used first. http://docs.puppetlabs.com/guides/custom_facts.html#fact-precedence has the details on this. On Tue, Jul 31, 2012 at 3:24 PM, rjl wrote: > Thanks ZJE. That is what I ended u

[Puppet Users] Custom Package Provider Issue

2012-07-31 Thread Matthew
I'm running into a weird issue with a custom package provider for PEAR. I'm using the provider I found hereand the provider itself works fine. I've got it stored on the Puppet master under /etc/puppet/modules/c

Re: [Puppet Users] NFS mounts with puppet creates error

2012-07-31 Thread Christopher Wood
(inline) On Tue, Jul 31, 2012 at 05:23:00AM -0700, Axel Bock wrote: >Hi group, > >I am managing an NFS mount with puppet. And it does not work, and >seriously I really don't see how this can work out nicely. First I make >sure with a file {} class that the directory I want to moun

[Puppet Users] Re: Modify Facter Value

2012-07-31 Thread rjl
Thanks ZJE. That is what I ended up doing. On Tuesday, July 31, 2012 2:50:44 PM UTC-6, ZJE wrote: > > It may be best to hold your value in a temporary variable and just have > the setcode run at the end. I can't remember where I read it, but I don't > think ruby custom facts can override other

[Puppet Users] Get extra error output when debugging custom types?

2012-07-31 Thread ZJE
Is it possible to get extra output when running custom types? Right now, I'm getting an error message and I'm not sure where in the code it's being thrown from. For example, I can see that I'm trying to iterate over a null object, but I'm not sure where in the code this happening when the messag

[Puppet Users] Custom Package Provider Issue

2012-07-31 Thread Matthew
I'm running into an issue using a custom package provider for PEAR. Currently I've been using the provider found here, which seems to work fine when I manually copy it to a client running the puppet agent. Th

[Puppet Users] Re: Foreman 1.0 released!

2012-07-31 Thread trey85stang
Very nice and polished release. I upgraded perfectly with the rpms on centos 6.3. I greatly appreciate the new texteditor for the provisioning templates/scripts. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the

[Puppet Users] Re: Access @resouce in custom type

2012-07-31 Thread ZJE
On Tuesday, July 31, 2012 4:05:28 PM UTC-5, ZJE wrote: > > Is it possible to access @resource variables inside a type? > > I would like to make some decisions on parameters based on other > parameters that may have already been set. > > For example, > --- > newparam(:param1) do > Puppet.debu

[Puppet Users] Re: High CPU load / queued passenger requests

2012-07-31 Thread Luke Baker
I ended up restart the mysql database on the storeconfigs server which helped this problem dramatically. But, I'm still open for more tuning options if they're out there : ) On Tuesday, July 31, 2012 8:34:45 AM UTC-5, Luke Baker wrote: > > After restarting our puppetmaster host, we are seeing hi

Re: [Puppet Users] "Could not find dependency Package" even the package already theres.

2012-07-31 Thread Calvin Walton
On Tue, 2012-07-31 at 15:58 +0700, heriyanto wrote: > asterisk package already installed. I don't plan installation for this > package managed by puppet. > just want manage the file configuration. If the package is already installed, adding package { 'asterisk': } to your puppet config won't do a

[Puppet Users] Access @resouce in custom type

2012-07-31 Thread ZJE
Is it possible to access @resource variables inside a type? I would like to make some decisions on parameters based on other parameters that may have already been set. For example, --- newparam(:param1) do Puppet.debug "Found drivesperarray parameter" desc "parameter 1" validate do

Re: [Puppet Users] Possible to push changes to nodes?

2012-07-31 Thread Nick Fagerlund
On Tuesday, July 31, 2012 6:03:37 AM UTC-7, Jakov Sosic wrote: > > > ... And maybe try to put this: > > [puppetrunner] > allow * > > to your client's /etc/puppet/namespace.auth? > > > Don't use namespaceauth.conf; it's vestigial code and does nothing. Patrick and I proved last week that

[Puppet Users] Re: Modify Facter Value

2012-07-31 Thread ZJE
It may be best to hold your value in a temporary variable and just have the setcode run at the end. I can't remember where I read it, but I don't think ruby custom facts can override other ruby custom facts once they are set (thought I believe the FACTER_ environment variables can override ruby

[Puppet Users] Re: Modify Facter Value

2012-07-31 Thread rjl
Of course should be == and not = if Facter.value("http_server") == "false" # Change value of "server_type" here. I have tried many different approaches but none work. end On Tuesday, July 31, 2012 2:38:15 PM UTC-6, rjl wrote: > > Hi all, > I have a custom facts script that is distributed to a

[Puppet Users] What data to restore an existing Puppet Master?

2012-07-31 Thread Mitchell Hashimoto
I'm planning some disaster scenarios for our Puppet master, and was curious what data needs to be restored if I need to rebuild a Puppet master from scratch? i.e. what needs to be backed up? Are all necessary certs in `/var/lib/puppet/ssl`. Should that whole directory get backed up? Or only certai

[Puppet Users] Modify Facter Value

2012-07-31 Thread rjl
Hi all, I have a custom facts script that is distributed to all of my puppet clients. This first thing this script does is read a file on the client to determine the 'type' of server that it is. Later in the script, I would like to change the value based on some additional information. I don't s

[Puppet Users] Calling a Custom Function?

2012-07-31 Thread bbloke
Hello all, I'm trying to find the syntax for calling a custom function from another module. I'm trying to use this custom function to test if a file exists on the Puppet master - http://puppetmaster.blog.com/2010/11/09/file-exists/ I want to put this function in a module called "custom" and

Re: [pe-users] [Puppet Users] puppet enterprise

2012-07-31 Thread Stuart Cracraft
Completed and master/agent restarted. On Jul 31, 2012, at 11:41 AM, Shabir Ahmed wrote: > ### edit auth.conf ### > > # > # Allow puppet kick access > path /run > method save > auth any > allow * > > > > > ### edit puppet.conf on agent under agent section: > > listen = true >

Re: [Puppet Users] $concat_basedir not defined

2012-07-31 Thread R.I.Pienaar
- Original Message - > From: "Shannon McFarland" > To: puppet-users@googlegroups.com > Sent: Tuesday, July 31, 2012 10:46:37 AM > Subject: Re: [Puppet Users] $concat_basedir not defined > > Yeah, I ran it with 'sudo' and it pulled the plugin and kicked off. > So, how can I point to the

[Puppet Users] Re: puppet doc questions

2012-07-31 Thread llow...@oreillyauto.com
As an update, I did find http://projects.puppetlabs.com/issues/11786 which indicates that rdoc 1.x is needed, and that rdoc 2.x and 3.x will not work. However, the oldest gem available is 2.0... Any recommendations? On Tuesday, July 31, 2012 1:57:12 PM UTC-5, llo...@oreillyauto.com wrote: > > D

[Puppet Users] puppet agent --test

2012-07-31 Thread Stuart Cracraft
My times are synced between the two boxes yet this certificate error is being generated on the puppet. How can I remove all certs on both master and agent and force them both to completely renew? Or alternatively, what is the "tweak" for: [root@rhel03 puppet-enterprise-2.5.2-el-6-x86_64]# puppe

[Puppet Users] puppet doc questions

2012-07-31 Thread llow...@oreillyauto.com
Does puppet doc require a specific version of any gems (such as rdoc or rake) to operate? I'm getting some errors when I try to generate my rdoc now. # puppet doc --output /var/www/test --modulepath /etc/puppet/environments/test/modules -m rdoc RDoc::RDocError is deprecated and will be removed

[Puppet Users] Re: Long processing time using Augeas

2012-07-31 Thread Jake - USPS
Try something like the following instead (added 'incl' and 'lens' and removed context as its default based on incl is what you had) : augeas { 'homeLV': incl => '/etc/fstab', lens => 'Fstab.lns', changes => [ 'set *[file = "/home"]/dump 0', 'set *[file = "/home"]/passno 0', ], o

Re: [Puppet Users] exec in master transfer files to the node

2012-07-31 Thread Nikolaos Hatzopoulos
exec { "sshkeygen": path=> "/usr/bin:/usr/sbin:/bin", creates => [ "puppet:///myuser/files/$username/id_rsa" , "puppet:///myuser/files/$username/id_rsa.pub" ], command => generate("/bin/bash","/etc/puppet/manifests/myusers/sshkeygen.bash"

Re: [Puppet Users] $concat_basedir not defined

2012-07-31 Thread Shannon McFarland
Yeah, I ran it with 'sudo' and it pulled the plugin and kicked off. So, how can I point to the correct configuration without running as root or sudo in my preseed? On Tuesday, July 31, 2012 11:26:11 AM UTC-6, Shannon McFarland wrote: > > OK. I am rebuilding the node again to check something. I

Re: [Puppet Users] $concat_basedir not defined

2012-07-31 Thread Shannon McFarland
OK. I am rebuilding the node again to check something. I will manually run it as root but this is not a solution other than this test as we won't be having our nodes come up running as root accounts. On Tuesday, July 31, 2012 11:07:45 AM UTC-6, R.I. Pienaar wrote: > > > > - Original Message

Re: [Puppet Users] $concat_basedir not defined

2012-07-31 Thread R.I.Pienaar
- Original Message - > From: "Shannon McFarland" > To: puppet-users@googlegroups.com > Sent: Tuesday, July 31, 2012 9:35:54 AM > Subject: Re: [Puppet Users] $concat_basedir not defined > > > localadmin@controller-1:/$ puppet agent --test > err: Could not retrieve catalog from remote se

Re: [Puppet Users] Possible to push changes to nodes?

2012-07-31 Thread Eric Sorenson
We saw this too, and I don't think it's intentional. On Tuesday, July 31, 2012 2:08:53 AM UTC-7, Sandra Schlichting wrote: > > Note that getting puppet kick working is a multi-step process: >> >> - Gotta change all agents' puppet.conf to have listen = true in either >> [main] or [agent]. >> - Go

Re: [Puppet Users] $concat_basedir not defined

2012-07-31 Thread Shannon McFarland
localadmin@controller-1:/$ puppet agent --test err: Could not retrieve catalog from remote server: Error 400 on SERVER: $concat_basedir not defined. Try running again with pluginsync enabled at /usr/share/puppet/modules/concat/manifests/setup.pp:25 on node controller-1.example.com warning: Not u

Re: [Puppet Users] $concat_basedir not defined

2012-07-31 Thread R.I.Pienaar
- Original Message - > From: "Shannon McFarland" > To: puppet-users@googlegroups.com > Sent: Tuesday, July 31, 2012 9:30:35 AM > Subject: Re: [Puppet Users] $concat_basedir not defined > > That is the issue. It is already enabled. > > [main] > logdir=/var/log/puppet > server= > plugins

Re: [Puppet Users] $concat_basedir not defined

2012-07-31 Thread Shannon McFarland
That is the issue. It is already enabled. [main] logdir=/var/log/puppet server= pluginsync=true On Tuesday, July 31, 2012 10:27:04 AM UTC-6, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Shannon McFarland" > > To: puppet-users@googlegroups.com > > Sent: Tuesday, July 31

Re: [Puppet Users] $concat_basedir not defined

2012-07-31 Thread R.I.Pienaar
- Original Message - > From: "Shannon McFarland" > To: puppet-users@googlegroups.com > Sent: Tuesday, July 31, 2012 9:06:04 AM > Subject: [Puppet Users] $concat_basedir not defined > > Hey folks, > > > I am using puppet for some OpenStack deployments and on a new node > things look pr

[Puppet Users] $concat_basedir not defined

2012-07-31 Thread Shannon McFarland
Hey folks, I am using puppet for some OpenStack deployments and on a new node things look pretty good right until after the successful reception of a cert from the puppet master. I get this error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: $concat_basedir not de

[Puppet Users] Managing /etc/ssh/shosts.equiv

2012-07-31 Thread banjer
Hi, does anyone have any elegant solutions for managing shosts.equiv? In my puppet ssh module, host keys for /etc/ssh/ssh_known_hosts are automatically managed with: @@sshkey { $hostname: ensure => present, type => "rsa", key => $sshrsakey, }

Re: [Puppet Users] File diff in log

2012-07-31 Thread Antidot SAS
Thx the '--show_diff ' helped Regards, JM On Tue, Jul 31, 2012 at 4:25 PM, Kinzel, David wrote: > >From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] > On Behalf Of Antidot SAS > >Hi everyone, > > >Just a quick question since lately, when puppet runs in verbose mode I do

[Puppet Users] Bad exit code?

2012-07-31 Thread Stephanie Jackson
Hi all, I'm running puppet agent as a onetime process. I would expect, if it can't create the pid file, that it would exit non-zero. However, it seems to exit zero. Is there any way to change this? I'd like to know if it couldn't run, and it seems that this is an error. [root@db1r1 ~]# pup

Re: [Puppet Users] Possible to push changes to nodes?

2012-07-31 Thread Sandra Schlichting
> > > Could you post your whole auth.conf once more? Sure =) I haven't touched anything besides adding your lines towards the bottom auth.conf http://pastebin.com/1Vv0y2tc debug output from node http://pastebin.com/h5cTHxUS namespace.auth http://pastebin.com/6Qut6MSJ puppet.conf http://past

Re: [Puppet Users] trouble with puppetlabs-mysql module; ignores db and user creation

2012-07-31 Thread tom s
hmmm, it shows up, but doesn't seem to do anything about it: debug: /Stage[main]//Node[puppetclient.tomtest.com]/Mysql::Db[testdb]/Database_grant[testdb@localhost/testdb]/require: requires Database_user[testdb@localhost] debug: /Stage[main]/Mysql::Server/Service[mysqld]/require: requires Packa

RE: [Puppet Users] File diff in log

2012-07-31 Thread Kinzel, David
>From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On >Behalf Of Antidot SAS >Hi everyone, >Just a quick question since lately, when puppet runs in verbose mode I do see >anymore the diff from the current file and the file from the puppet master >(version 2.7.18) is thi

[Puppet Users] File diff in log

2012-07-31 Thread Antidot SAS
Hi everyone, Just a quick question since lately, when puppet runs in verbose mode I do see anymore the diff from the current file and the file from the puppet master (version 2.7.18) is this normal, we only the the md5 signature? Is there an option to display the diff? Regards, JM -- You rece

Re: [Puppet Users] Using file{} with array parameter fails

2012-07-31 Thread David Schmitt
Hi Axel, On 31.07.2012 15:59, Axel Bock wrote: Hello readers, I am wondering - I intend to create a few directory trees with the file{ [array] } pattern, but unfortunately Puppet complains. It says "File[] is already declared in file ..."- which kind of looks like as if Puppet takes a file obje

Re: [Puppet Users] trouble with puppetlabs-mysql module; ignores db and user creation

2012-07-31 Thread Walter Heck
In these cases you would start by checking a run of puppetd -t -d -v to see if it shows up there. If not, then look carefully if the resource is really included on that node. If it is, there should be a hint on what is happening.. On Tue, Jul 31, 2012 at 9:19 PM, tom s wrote: > There's been at le

[Puppet Users] Using file{} with array parameter fails

2012-07-31 Thread Axel Bock
Hello readers, I am wondering - I intend to create a few directory trees with the file{ [array] } pattern, but unfortunately Puppet complains. It says "File[] is already declared in file ..." - which kind of looks like as if Puppet takes a file object with an array as parameter as a single, u

[Puppet Users] High CPU load / queued passenger requests

2012-07-31 Thread Luke Baker
After restarting our puppetmaster host, we are seeing high CPU load and a ton of queued passenger requests. I would suspect that our puppetmaster is falling victim to the thundering herd of puppet agents, but we have deployed most of our agents using a randomized cron job. The others are using

[Puppet Users] Re: Long processing time using Augeas

2012-07-31 Thread Alexander Holte-Davidsen
After some more debugging, it looks like it takes about one second to process each augeas block, so putting all the statements in one block speeds things up a lot. Are there any other ways to do this? I want to be able to check if the mount point exists before I try change... Regards, Alexander

[Puppet Users] trouble with puppetlabs-mysql module; ignores db and user creation

2012-07-31 Thread tom s
There's been at least one other report of something like this, but that was a little while ago and changes to the module have been made recently. Basically I can create a database, set the root password, but not do anything else: node 'puppetclient.tomtest.com' { class { 'mysql::server':

[Puppet Users] Long processing time using Augeas

2012-07-31 Thread Alexander Holte-Davidsen
Hi! I using Augeas to handle dump and passno for certain mount points in /etc/fstab. Each mount point is defined as it's own augeas block: augeas { 'homeLV': context => '/files/etc/fstab',

Re: [Puppet Users] Possible to push changes to nodes?

2012-07-31 Thread Jakov Sosic
On 07/31/2012 11:08 AM, Sandra Schlichting wrote: Note that getting puppet kick working is a multi-step process: - Gotta change all agents' puppet.conf to have listen = true in either [main] or [agent]. - Gotta open port 8139 to incoming connections on every agent node's fire

Re: [Puppet Users] "Could not find dependency Package" even the package already theres.

2012-07-31 Thread Jakov Sosic
On 07/31/2012 10:58 AM, heriyanto wrote: asterisk package already installed. I don't plan installation for this package managed by puppet. just want manage the file configuration. You cannot depend on an item that is not defined somewhere else in the manifest, or in a node configuration. Yo

[Puppet Users] NFS mounts with puppet creates error

2012-07-31 Thread Axel Bock
Hi group, I am managing an NFS mount with puppet. And it does not work, and seriously I really don't see how this can work out nicely. First I make sure with a file {} class that the directory I want to mount exists. Cause it is used by the webserver it should belong to the wwwrun/www group on

Re: [Puppet Users] Possible to push changes to nodes?

2012-07-31 Thread Sandra Schlichting
> > Note that getting puppet kick working is a multi-step process: > > - Gotta change all agents' puppet.conf to have listen = true in either > [main] or [agent]. > - Gotta open port 8139 to incoming connections on every agent node's > firewall. > - Gotta add the following stanza somewhere nea

Re: [Puppet Users] "Could not find dependency Package" even the package already theres.

2012-07-31 Thread Martin Alfke
On 31.07.2012, at 10:58, heriyanto wrote: > asterisk package already installed. I don't plan installation for this > package managed by puppet. > just want manage the file configuration. > > it come up when i yum search. > > actually how "require => Package" working? its checking to repos or i

Re: [Puppet Users] "Could not find dependency Package" even the package already theres.

2012-07-31 Thread heriyanto
asterisk package already installed. I don't plan installation for this package managed by puppet. just want manage the file configuration. it come up when i yum search. actually how "require => Package" working? its checking to repos or into system? Thanks On 07/31/2012 03:32 PM, Marc Lucke wro

Re: [Puppet Users] "Could not find dependency Package" even the package already theres.

2012-07-31 Thread Marc Lucke
On 31/07/2012, at 6:25 PM, heriyanto wrote: > Dear All, > > I just do something simple just want to copy file, this my syntax, > >class asterisk::conf { >file { "/etc/asterisk/extensions.conf": >owner => asterisk, >group => asterisk, >mode

[Puppet Users] "Could not find dependency Package" even the package already theres.

2012-07-31 Thread heriyanto
Dear All, I just do something simple just want to copy file, this my syntax, class asterisk::conf { file { "/etc/asterisk/extensions.conf": owner => asterisk, group => asterisk, mode=> 644, source => "puppet:///modules/asterisk/e

Re: [Puppet Users] exec in master transfer files to the node

2012-07-31 Thread David Schmitt
On 30.07.2012 19:21, Nikolaos Hatzopoulos wrote: How you exec something in the master produce a file and this files you transfer it to your node? take a look at the template(), inline_template() and generate() function: http://docs.puppetlabs.com/references/stable/function.html Best Regards,