Re: [Puppet Users] Installing cloudprovisioner on windows

2013-01-16 Thread Denmat
Hi, I believe that this is supposed to be installed on the puppet master - and since you can't run puppet master on windows you are out of luck. Sorry, Den On 16/01/2013, at 11:21, PuppetUser wrote: > So give me any other solution to install cloud provisioner tool to open > source windows

[Puppet Users] End of file reached, while copying large files from modules to client

2013-01-16 Thread liondgr8
Hi, I am trying to copy a file from puppet server's module to the Windows machine client The following snippet is from init.pp of a module: file {'copyingDB': ensure => file, path => 'C:/dump/dump1.zip', require => File['dump'], mo

[Puppet Users] how to add an evironment variable to puppet agent execution?

2013-01-16 Thread Luca Gioppo
I'm creating a module for the WSO2 products and the tool needs to find the JAVA_HOME that is not set. Java get installed but than the wso2server complains about the missing JAVA_HOM. Checked java -version in shell and it works, but as expected executing echo $JAVA_HOME returns null. So the pr

Re: [Puppet Users] how to add an evironment variable to puppet agent execution?

2013-01-16 Thread nicolas vigier
On Wed, 16 Jan 2013, Luca Gioppo wrote: > > How is possible in a easy and working way to set env vars with puppet in a > way that get known to following steps? You can set environment variables for an exec using the environment parameter : http://docs.puppetlabs.com/references/latest/type.html

RE: [Puppet Users] Re: Announce: Puppet Dashboard 1.2.19 Available

2013-01-16 Thread GRANIER Bernard (MORPHO)
I did not understand : there is a new version of the dashboard ? I thought that the dashboard was deprecated and that Puppet Lab will no work on it anymore ... What is the status please ? Cordialement, Bernard Granier CE Plateforme Système bernard.gran...@morpho.com 01 58 11 32 51 -Origin

Re: [Puppet Users] Re: Announce: Puppet Dashboard 1.2.19 Available

2013-01-16 Thread llowder
On Wednesday, January 16, 2013 7:22:15 AM UTC-6, bernard...@morpho.com wrote: > > I did not understand : there is a new version of the dashboard ? I thought > that the dashboard was deprecated and that Puppet Lab will no work on it > anymore ... > > What is the status please ? > > Work on Da

RE: [Puppet Users] Re: Announce: Puppet Dashboard 1.2.19 Available

2013-01-16 Thread GRANIER Bernard (MORPHO)
Ok thanks for the answer. Cordialement, Bernard Granier CE Plateforme Système bernard.gran...@morpho.com 01 58 11 32 51 From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of llowder Sent: Wednesday, January 16, 2013 2:27 PM To

Re: [Puppet Users] Puppetdb will setting gc-interval to 0 disable it

2013-01-16 Thread Chuck
Here is an example of locks taking a long time to acquire in the postgres DB 2013-01-12 03:10:55 UTC|puppetdb|4553|DELETE waiting|IPADDRESS|puppet LOG: process 4553 acquired ExclusiveLock on tuple (0,102) of relation 16811 of database 16513 after 12166509.285 ms 2013-01-12 03:10:56 UTC|puppetdb

[Puppet Users] Restrict file creation in the masters

2013-01-16 Thread Nacho Barrientos
Hi, Maybe I'm missing something obvious because my question sounds very naive to me. Anyway, here I go: Is it possible to prevent module developers from writing files in the master via custom Puppet functions[0]? At least in my environment[1] I can come up with several malicious things that

[Puppet Users] kindly have a look at this issue please, related to multiple puppet masters

2013-01-16 Thread bin . zhou2007
hi, could everyone kindly have a look at this issue below please. Thanks a lot! It works while I was using apache+passenger+puppet-master on the server side, I used 'puppet agent -t' on the client side, and it was successfully synchronized saying that: "sudo puppet agent -t Notice: Ignorin

[Puppet Users] Re: Puppet, Hiera and complex data structures...

2013-01-16 Thread Gavin Williams
John Cheers for that... Could you expand on *"enhance selectivity by declaring all the relevant resources virtually, and then using collections with appropriate predicates to realize only the ones that are wanted for the current target."*? Have used virtual resources for other bits and pieces,

Re: [Puppet Users] generate function not working within conditional?

2013-01-16 Thread jcbollinger
On Tuesday, January 15, 2013 11:30:10 AM UTC-6, Jakov Sosic wrote: > > > Hm, it's maybe only me, but result of the command associates me with > exit codes, not with actual output. > I can understand that interpretation, but again, if you take it that way then you have to assume that generate

[Puppet Users] Re: Recommendations for devlopment of a new provider

2013-01-16 Thread jcbollinger
On Tuesday, January 15, 2013 9:04:39 AM UTC-6, Drew Fisher wrote: > > I'm working on a new provider for puppet 3.x and Solaris 11's dladm > command. One of the subcommands is set-linkprop which is used to set > various properties for networking links. The problem is there are dozens > and do

[Puppet Users] Re: Profiles, Hiera, and create_resources('class','...')

2013-01-16 Thread jcbollinger
On Tuesday, January 15, 2013 9:44:00 AM UTC-6, jcbollinger wrote: > > [...] multiple parametrized-style declarations of the same classes are not > forbidden even when the parameter lists match > > Clarification: there is an extraneous "not" in there. It should have been "multiple parametrized-

[Puppet Users] Re: Facter and eth1

2013-01-16 Thread jcbollinger
On Tuesday, January 15, 2013 8:40:56 AM UTC-6, Ygor wrote: > > I have one older server where the physical NIC port for eth0 won't hold > the CAT5 cable in place, so I use the other NIC port, eth1, and have eth0 > disabled/turned off > > Facts ipaddress and netmask accurately duplicate ipaddres

[Puppet Users] Re: how to add an evironment variable to puppet agent execution?

2013-01-16 Thread jcbollinger
On Wednesday, January 16, 2013 5:19:43 AM UTC-6, Luca Gioppo wrote: > > I'm creating a module for the WSO2 products and the tool needs to find the > JAVA_HOME that is not set. > > Java get installed but than the wso2server complains about the missing > JAVA_HOM. > > Checked java -version in she

[Puppet Users] Re: End of file reached, while copying large files from modules to client

2013-01-16 Thread jcbollinger
On Wednesday, January 16, 2013 5:06:17 AM UTC-6, liondgr8 wrote: > > Hi, > > I am trying to copy a file from puppet server's module to the Windows > machine client > The following snippet is from init.pp of a module: > > file {'copyingDB': > ensure => file, > pat

[Puppet Users] Re: Using resource collectors with variables from the collected resource?

2013-01-16 Thread jcbollinger
On Tuesday, January 15, 2013 12:12:18 PM UTC-6, Richard Jacobsen wrote: > > Hi everyone. An example is worth 1000 words, so here's one: > > In this example I would like the home directory to be overridden to > /testdir/me: > > @user { 'me': > ensure => present, > home => '/home/$title', >

[Puppet Users] Re: Multiple class calls via dashboard

2013-01-16 Thread jcbollinger
On Tuesday, January 15, 2013 5:30:09 PM UTC-6, Michael Dodwell wrote: > > Hi, > > I currently have puppet setup and backed into the dashboard and using ENC. > > I wish to control as much of the configuration of machines via the > dashboard. > > However, I have a requirement to call a module/cl

Re: [Puppet Users] Re: Facter and eth1

2013-01-16 Thread Dan White
Thanks for responding, John, and for your thoughts. That makes sense. I think I will start a thread on the developer's list about this. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvi

Re: [Puppet Users] Re: Profiles, Hiera, and create_resources('class','...')

2013-01-16 Thread Stephen Price
On Monday, January 14, 2013 7:49:33 AM UTC-8, R.I. Pienaar wrote: > > No I am not sure - I dont tend to use create_resources as I consider it > about > as bad as eval() :) > > I just know I recently went spelunking into that code while doing some > prototype > and noticed it worked > Sorry

[Puppet Users] /etc/facter/facts.d/ Question

2013-01-16 Thread Dan White
Is it possible to refer to another fact in one of these files ? “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) -- You received this message because you are subscribed to the G

Re: [Puppet Users] generate function not working within conditional?

2013-01-16 Thread Jakov Sosic
On 01/16/2013 04:30 PM, jcbollinger wrote: > I can understand that interpretation, but again, if you take it that way > then you have to assume that generate() will only ever return 0 (because > any other exit code of the underlying command is documented to cause a > parse error). Yea, I know. >

[Puppet Users] Broken pipe on generate function

2013-01-16 Thread Xesc Arbona
Hi, I'm trying to generate passwords for user accounts using the generate function and calling a local script on the server, but that fails with an error about Broken pipe : notice: /Stage[main]/Accounts::Virtual/Accounts::Add_user[xesc]/Notify[DM1HjM9a-VIx/usr/bin/tr: write error: Broken pipe /

[Puppet Users] New NRPE Puppet module

2013-01-16 Thread William Van Hevelingen
Hello Puppet Users and Dev, I have just a pushed a puppet module for NRPE to github. Initially it supports the Debian, Redhat, and Solaris based operating systems. I plan on adding FreeBSD support in the near future. In the meantime I will be updating the documentation and getting it ready for a

[Puppet Users] node definition and variables

2013-01-16 Thread GRANIER Bernard (MORPHO)
Hi, Is there a way to do something like : $computers_dbm="'computer1','computer2'" $computers_worklflow="'computer4','computer3'" node $computers_dbm { include dbm_installation } node $computers_worklflow { include dbm_worklflow } The point is not the include, but the fact to use a vari

[Puppet Users] Dashboard and SELinux

2013-01-16 Thread Carlos N. A. Correa
Hi, guys. I have two somewhat related questions: 1) Is the package puppetlabs-dashboard open to contributions? I'm using a particular version which creates a 127.0.0.1:8083 virtualhost for dealing with client report uploads, and uses puppet's own cert to serve the dashboard on port 8082 (this

Re: [Puppet Users] Difficulty debugging crashing PuppetDB

2013-01-16 Thread Cody Robertson
I'm not sure how I missed it but it appears the OOM was killing it (how embarassing). Once I raised the memory thresholds on the VM it was fine. Even though I somehow missed it in the log the catalyst for me finding it was looking at the PuppetDB command line - in particular the "-XX:OnOutOfMem

[Puppet Users] PuppetDB certificate signature failure for /CN=puppetdb

2013-01-16 Thread chris mague
I regenerated the puppetdb certs according to the instructions here: Step 3, Option B https://docs.puppetlabs.com/puppetdb/0.9/install_from_source.html#step-3-option-b-manually-create-a-keystore-and-truststore And can verify the cert manually using openssl client #echo "QUIT" | openssl s_client

[Puppet Users] Issue with exported resources and "ensure"

2013-01-16 Thread Cody Robertson
Hello folks! I hope everyone is having a great Wednesday! I think I may have come across a bug / a use case which isn't working properly however I wanted to run it by some eyes on the mailing list before I filed a bug report. I'm attempting to use Hiera with Puppet exported resources (a Nagios

Re: [Puppet Users] Difficulty debugging crashing PuppetDB

2013-01-16 Thread Ken Barber
So the log had enough information and it was just an oversight? Thats good to hear. We probably chose to kill the process as apposed to continually running as OOM's in Java often leave things in an unknown state. We could consider tanuki wrapper/java service wrapper around the process. At least th

[Puppet Users] Re: Broken pipe on generate function

2013-01-16 Thread jcbollinger
On Wednesday, January 16, 2013 11:10:33 AM UTC-6, Xesc Arbona wrote: > > Hi, > > I'm trying to generate passwords for user accounts using the generate > function and calling a local script on the server, but that fails with > an error about Broken pipe : > > notice: > /Stage[main]/Accounts::Vi

[Puppet Users] Re: node definition and variables

2013-01-16 Thread jcbollinger
On Wednesday, January 16, 2013 11:59:18 AM UTC-6, bernard...@morpho.com wrote: > > Hi, > > Is there a way to do something like : > > $computers_dbm="'computer1','computer2'" > > $computers_worklflow="'computer4','computer3'" > > node $computers_dbm { > include dbm_installation > } >

Re: [Puppet Users] generate function not working within conditional?

2013-01-16 Thread jcbollinger
On Wednesday, January 16, 2013 11:06:49 AM UTC-6, Jakov Sosic wrote: > > On 01/16/2013 04:30 PM, jcbollinger wrote: > [...] > > That would be less ambiguous. If you filed an RFE against the docs for > > this then I think it would be very likely to be accepted and implemented > > quickly. > >

[Puppet Users] Windows Puppet File Resource Getting Puppet Server's UNIX File Permissions

2013-01-16 Thread phundisk
I am noticing some very odd behavior with my puppet server and a windows client. For my puppet server I have a module setup similar to this below... Please note, I am not setting any permission on this file. file { "C:\\directory\\file.dll": ensure => 'present', s

[Puppet Users] Announce: Puppet Dashboard 1.2.20 Available

2013-01-16 Thread Moses Mendoza
Puppet Dashboard 1.2.20 is now available! This release of Puppet Dashboard addresses an issue in the 1.2.19 packages where the version link still reads "1.2.18". This release also changes the target of the link to the Github Puppet Dashboard repo from the CHANGELOG file to the list of commits in t

[Puppet Users] Re: Puppet, Hiera and complex data structures...

2013-01-16 Thread jcbollinger
On Wednesday, January 16, 2013 9:23:42 AM UTC-6, Gavin Williams wrote: > > John > > Cheers for that... > > Could you expand on *"enhance selectivity by declaring all the relevant > resources virtually, and then using collections with appropriate predicates > to realize only the ones that are w

[Puppet Users] Re: Restrict file creation in the masters

2013-01-16 Thread jcbollinger
On Wednesday, January 16, 2013 4:30:28 AM UTC-6, Nacho Barrientos wrote: > > Hi, > > Maybe I'm missing something obvious because my question sounds very naive > to me. Anyway, here I go: > > Is it possible to prevent module developers from writing files in the > master via custom Puppet functio

Re: [Puppet Users] Windows Puppet File Resource Getting Puppet Server's UNIX File Permissions

2013-01-16 Thread Josh Cooper
Hi Alex, On Wed, Jan 16, 2013 at 12:49 PM, phundisk wrote: > I am noticing some very odd behavior with my puppet server and a windows > client. > > For my puppet server I have a module setup similar to this below... Please > note, I am not setting any permission on this file. > file { "C:\\direct

Re: [Puppet Users] Windows Puppet File Resource Getting Puppet Server's UNIX File Permissions

2013-01-16 Thread phundisk
I see. That is very interesting to know, it was causing me much stress as to where the permissions were coming from originally. I appreciate the help again Josh! On Wednesday, January 16, 2013 4:35:46 PM UTC-5, Josh Cooper wrote: > > Hi Alex, > > On Wed, Jan 16, 2013 at 12:49 PM, phundisk >

Re: [Puppet Users] New NRPE Puppet module

2013-01-16 Thread Peter Brown
Nice to find out who pdxcat is :) (I am using a couple of your modules) I published my nrpe module to github a while back as well. It looks like you have taken a vaguely similar approach. Maybe some collaboration is in order... My module is here if you want to take a look. https://github.com/rend

[Puppet Users] Re: Error: Could not retrieve catalog from remote server: execution expired

2013-01-16 Thread Joshua Buss
Wow, I just found this by googling for the error message and I'm getting the exact same problem.. unable to run puppet agent on the same machine where I have the puppet master running.. times out on loading plugin. I'm running on ubuntu server 11.10, version 2.7.1-1ubuntu3.7 On Monday, Januar

Re: [Puppet Users] /etc/facter/facts.d/ Question

2013-01-16 Thread Peter Brown
I don't think that is possible. >From what I can tell it seems to be completely static. Though you could be tricky and manage the files in the directory with puppet to give you some extra capabilities. On 17 January 2013 02:57, Dan White wrote: > Is it possible to refer to another fact in one

[Puppet Users] Puppet resource scoping issue

2013-01-16 Thread Boris
I have a service resource in class 'foo', and i want to make a relationship with this resource from class 'bar'. Both 'foo' and 'bar' classes are included in my node definition. >From puppet docs i learned that dynamic scoping is still available for resources, but what happens in reality, is fro