[Puppet Users] Puppet agent on Windows

2013-09-20 Thread Adeel Bhatti
Hi, Could someone tell me how can I have runinterval = 180 in puppet agent for windows ? How can puppet agent on windows runs/contacts puppet master to get sync !! Adeel -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from thi

[Puppet Users] Re: Puppet multiple conditional statement...

2013-09-20 Thread Sneha More
Hi John, For conditional logic, you can use facts. In your case, you need to create a fact for reading file /etc/file1. you can create a fact in your fact directory, file_content.rb -> Facter.add("file_content") do setcode do Facter::Util::Resolution.exec('cat /etc/file1') end en

[Puppet Users] Re: enablerepo option

2013-09-20 Thread Sneha More
Hi, package { “xyz”: ensure => latest, enablerepo => “epel”, } This internally executes, yum -y --enablerepo=epel install xyz. So can use "Exec" just for enabling repo and then you can use package resource to install package. I hope this should work. Thanks and Regards, Sn

[Puppet Users] Re: PUPPET_CONFIGURATION_IN_REDHAT_LINUX

2013-09-20 Thread Sneha More
Hi Dilip, You can get the installation and configuration steps for puppet on RHEL on link http://docs.puppetlabs.com/guides/installation.html#red-hat-enterprise-linux-and-derivatives You can run shell script in client node which is in puppet server by, 1. Transfer the shell script to client

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

2013-09-20 Thread Rich Siegel
Exchange DAG is essentially a cluster and the adapter in question the dag ip. My guess is the logic for adapters should be modded for when netconnectionid is not null. In general don't try to mess with hidden adapters on dags unless you understand ramifications. -- You received this message b

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

2013-09-20 Thread Rich Siegel
Exchange DAG is essentially a cluster and the adapter in question the dag ip. My guess is the logic for adapters should be modded for when netconnectionid is not null. In general don't try to mess with hidden adapters on dags unless you understand ramifications. -- You received this message b

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

2013-09-20 Thread pierra mathieu
Thanks for the answers and sorry for my late one, I've only one agent process running : > ps -aef | grep puppet > root 4080 2811 0 14:14 pts/000:00:00 grep puppet > root 18328 1 0 Sep12 ? 00:00:02 /usr/bin/ruby > /usr/bin/puppet agent And the agent cycle isn't

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

2013-09-20 Thread pierra mathieu
Thanks for the answers and sorry for my late one, I've only one agent process running : > ps -aef | grep puppet > root 4080 2811 0 14:14 pts/000:00:00 grep puppet > root 18328 1 0 Sep12 ? 00:00:02 /usr/bin/ruby > /usr/bin/puppet agent And the agent cycle isn't

Re: [Puppet Users] Need help with defining same package resource in two modules

2013-09-20 Thread jcbollinger
On Thursday, September 19, 2013 4:59:51 PM UTC-5, Ryan Coleman wrote: > > > On Mon, Sep 16, 2013 at 10:49 PM, Mani Devarajan > > > wrote: > >> How do i overcome this issue to complete the workflow of module B in both >> cases (where A is enabled or disabled) >> > > Mani, virtual resources will

[Puppet Users] Re: Using file and mount more efficiently

2013-09-20 Thread jcbollinger
On Thursday, September 19, 2013 1:43:07 PM UTC-5, Forrie wrote: > > This is something I've been concerned about -- and how to properly > approach this. > > For example, we can use Puppet to ensure that the directories (mount > points) exist and that the entries are present in /etc/fstab -- but

Re: [Puppet Users] "puppet module install simondean/iis" gives error "Error: cert already in hash table"

2013-09-20 Thread Rainer Weinhold
i just downloaded 3.3 for windows (w7,x64) and got the same error. output : C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet module install simondaen/iis --debug --trace Notice: Preparing to install into M:/.puppet/modules ... Notice: Downloading from https://forge.puppetlabs.com ... Error:

Re: [Puppet Users] Re: Array being flattened

2013-09-20 Thread jcbollinger
On Thursday, September 19, 2013 3:04:45 PM UTC-5, Darin Perusich wrote: > > On Thu, Sep 19, 2013 at 3:33 PM, jcbollinger > > > wrote: > > > > > > On Thursday, September 19, 2013 9:13:59 AM UTC-5, Darin Perusich wrote: > >> > >> Hello All, > >> > >> I've run into an issue where an array t

[Puppet Users] nagios collector only finding some resources

2013-09-20 Thread David Thompson
I've set up puppetdb to manage my nagios configuration, running puppetdb on my puppet server (on ~RHEL 6), and running postgres for the puppetdb store. The nodes to be managed have some standard nagios host/service exported resources, e.g.: @@nagios_host { $fqdn: ensure => pre

Re: [Puppet Users] nagios collector only finding some resources

2013-09-20 Thread David Thompson
On 9/20/13 10:20 AM, Ken Barber wrote: What I do know from querying the database is that all the exported resources are present in the puppetdb database (in catalog_resources). Did you query via the REST interface, or the database directly. The REST interface might be more clear, as this is pre

[Puppet Users] Automation of puppet configuration code

2013-09-20 Thread moate
Hello, I work for the CHTC (Center for High Throughput Computing) at the University of Wisconsin, Madison. We utilize puppet for most of our configuration management. Currently we have a web application that performs the tasks of user account management. When a new user is registered wit

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

2013-09-20 Thread Rob Reynolds
I would say with all of this in mind we move forward with a fix where we look to see that the network adapter itself is also enabled. This is laid out in the ticket that I noted earlier. On Fri, Sep 20, 2013 at 7:44 AM, Rich Siegel wrote: > Exchange DAG is essentially a cluster and the adapter

Re: [Puppet Users] Puppet agent on Windows

2013-09-20 Thread Rob Reynolds
You should be able to add that to the puppet.conf file. See http://docs.puppetlabs.com/references/latest/configuration.html#runintervalfor reference on how to set that properly. For your second question, can you please be more elaborate a bit more? Thanks. On Fri, Sep 20, 2013 at 4:40 AM, Adee

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

2013-09-20 Thread Greg Sutcliffe
Is this puppet3? As I recall, in puppet3, the master makes a separate call to the enc to determine the environment the should authoritatively be in. Once that's established, it makes a second call to get the classes and parameters. Hth, Greg On 20 Sep 2013 13:46, "pierra mathieu" wrote: > Thanks

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

2013-09-20 Thread Greg Sutcliffe
On 20 Sep 2013 18:05, "Greg Sutcliffe" wrote: > the should authoritatively be in. Gah, phone keyboard. "The *client* should authoritatively..." Sorry Greg -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop

Re: [Puppet Users] Re: Facter value at Catalog compilation

2013-09-20 Thread Frederiko Costa
Sure ... Here it is: # # terracota_version.rb # # Reports terracota version if terracotta is installed Facter.add(:terracotta_version) do cmd = %x{/bin/rpm -qa terracotta --queryformat %{VERSION}} setcode do if ! cmd.nil? cmd else nil end end end -frederiko On Fri, Sep 20, 2013 at 10:

[Puppet Users] Re: Facter value at Catalog compilation

2013-09-20 Thread Ellison Marks
Post the code for the custom fact? On Thursday, September 19, 2013 2:23:15 PM UTC-7, Frederiko Costa wrote: > > Hi, > > I've got a facter shipped with a custom module. This factor returns the > version of a determined package. It returns nil if the package is not > installed yet. > > When runnin

Re: [Puppet Users] nagios collector only finding some resources

2013-09-20 Thread Ken Barber
> What I do know from querying the database is that all the exported resources > are present in the puppetdb database (in catalog_resources). Did you query via the REST interface, or the database directly. The REST interface might be more clear, as this is pretty much what the puppetdb terminus us

[Puppet Users] Execute Mono exe that depends on an environment variable

2013-09-20 Thread Derek Strickland
I have a script that I execute to run a mono exe during a setup process. I would like to automate that with puppet but the exe depends on an environment variable being set or it will fail. My setup.sh file looks like this. export MY_ENV_VAR=$HOME/target_dir /usr/mono/bin/mono $HOME/path_to_

[Puppet Users] Puppet nodes unable to send report to Puppet Master running under Passenger

2013-09-20 Thread F. Y.
Hello all, I recently switched to running puppet master using Passenger. However, I am seeing agents unable to send reports after a bunch of 'master' processes starting to accumulate and eat all the RAM and swap space. Error: Could not send report: Error 500 on SERVER: 500 Internal Server Err

[Puppet Users] Re: Cannot see node on Live Management

2013-09-20 Thread Rodrigo Pompei
Hello, I am having the same problem after installing Puppet enterprise 3.0 But I can see that mcolletive connected with server I, [2013-09-20T17:13:23.301235 #9312] INFO -- : mcollectived:35:in `' The Marionette Collective 2.2.4 started logging at info level I, [2013-09-20T17:13:23.556832 #932

[Puppet Users] Run service failed

2013-09-20 Thread Pan Luo
I'm trying to setup a service that doesn't support any service script. Using the following: service { 'Rserve': ensure => 'running', start => '/usr/bin/R CMD Rserve --gui-none', provider => 'base', } When I run puppet agent -t -d, it returns the following: Debug: Service[Rserve]

Re: [Puppet Users] rspec-puppet require syntax

2013-09-20 Thread Guy Knights
No such luck. I all the above suggestions (capitalising class names, removing inner quotes) with another require: * file { 'set_nginx_dir_permissions':* *ensure => directory,* *path=> "/opt/nginx-${version}",* *owner => nginx,* *group => nginx,* *mode=> '0644',*

[Puppet Users] Re: Could not request certificate: Retrieved certificate does not match private key; please remove certificate from server and regenerate it with the current key

2013-09-20 Thread thinkwell
Sorry to resurrect an old thread, but this one did it for me. I always cleaned the master and deleted the /var/lib/puppet/ssl directory on the client when I had cert errors but that was not doing the trick. Came across this thread and blew away the /var/lib/puppet/ directory instead and VOILA!

[Puppet Users] Copy a "/a/path/foo" file from node1 to node2 in "/another/path/bar"

2013-09-20 Thread François Lafont
Hi, Is it possible with Puppet to copy the file: /a/path/foo# <-- in node-source from "node-source" to "node-destination", but with a different path. By example: /another/path/bar # <-- in node-destination I know it's possible with exported files when the path is the same in node-sou

[Puppet Users] Re: Copy a "/a/path/foo" file from node1 to node2 in "/another/path/bar"

2013-09-20 Thread François Lafont
Just one precision... Le 21/09/2013 04:27, François Lafont wrote : > Is it possible with Puppet to copy the file: > > /a/path/foo# <-- in node-source > > from "node-source" to "node-destination", but with a different path. By > example: > > /another/path/bar # <-- in node-destination

[Puppet Users] symlink creation using facter, but facter is nil at first run.

2013-09-20 Thread Frederiko Costa
Hi all, I'm trying to find a better way to implement this, but I can't think of. I have a jdk module that requires to create a symlink to whatever version is the one installed. Say I install jdk-6u35, it will create something like /usr/java/jdk_1.6.35. I would like to create a symlink /usr/java/jd

Re: [Puppet Users] Run service failed

2013-09-20 Thread Juan Sierra Pons
El 21/09/2013 01:11, "Pan Luo" escribió: > > I'm trying to setup a service that doesn't support any service script. Using the following: > > service { 'Rserve': > ensure => 'running', > start => '/usr/bin/R CMD Rserve --gui-none', > provider => 'base', > } > > When I run puppet agen