[Puppet Users] Re: syncronizing many files ( more than 100,000 ) with "puppet agent -t" is slow

2014-11-18 Thread Seokhee Kim
Ok, it seems the rsync is the way to go. It took 18 seconds for 10,000 files. Thanks, Seokhee -- 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+unsub

[Puppet Users] is there any way we can import variables in key value through command line or any API

2014-11-18 Thread Spriya
- Hi All, My question is how to add variables into the puppet console using txt file or any API not directly in the puppet console. Let me know. - - -- You received this message because you are subscribed to the Google Groups "Pup

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Craig White
yes that was all ;-) Got it - thanks yes, the intent is to use hiera on all of this but I have to knock down one hurdle at a time. Now that I can have made it work, I can start fooling with hiera which I never used before. Thanks so much On Tuesday, November 18, 2014 10:51:51 AM UTC-7, jcbol

[Puppet Users] Re: syncronizing many files ( more than 100,000 ) with "puppet agent -t" is slow

2014-11-18 Thread Seokhee Kim
Thanks for information. I just did test with Enterprise version on same machine and got surprised. The Enterprise version, it took 2 minutes with 10,000 files. Open source version, it took 12 mins. I guess I need some fine tuning on open source version. but need to figure it out. I will try the rs

[Puppet Users] Re: How best to use hiera for Java options? (with hash_merge)

2014-11-18 Thread jcbollinger
On Tuesday, November 18, 2014 6:21:33 AM UTC-6, Steven Post wrote: > > > > On Monday, November 17, 2014 4:06:02 PM UTC+1, jcbollinger wrote: >> >> >> >> On Monday, November 17, 2014 4:11:09 AM UTC-6, Steven Post wrote: >>> >>> Hi, >>> >>> I've been using puppet for over a year now, but now I have

[Puppet Users] Re: scope of variable inside defined type

2014-11-18 Thread jcbollinger
On Tuesday, November 18, 2014 7:24:15 AM UTC-6, Antoine Cotten wrote: > > What about the getparam function from the stdlib module > ? > It's bad juju, if for no other reason than that it is evaluation-order dependent. It wouldn't work anyway in

[Puppet Users] Re: Issue getting new custom fact to work in OS X

2014-11-18 Thread jcbollinger
On Tuesday, November 18, 2014 8:13:22 AM UTC-6, Jonathan Cohen wrote: > > We do not use puppet as a full system, only Facter to pull metrics and > other information into other tools. > > Then you need to put your custom fact into the correct location manually. /etc/facter/facts.d/ still isn't

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread jcbollinger
On Tuesday, November 18, 2014 10:09:32 AM UTC-6, Craig White wrote: > > OK - but I still need to figure out how to call one class with parameters > from another class... > > class wl::config { : > class openldap::server::database { $dn: > ensure => present, > rootdn => "cn=admin,${dn

Re: [Puppet Users] Re: invalid checksum using template

2014-11-18 Thread Josh Cooper
On Tue, Nov 18, 2014 at 7:28 AM, jcbollinger wrote: > > > On Monday, November 17, 2014 9:38:17 AM UTC-6, Felice Pizzurro wrote: >> >> Hi all, >> >> I'm simply tryng to push a file with content in template: >> >> file {'/tmp/test': >> ensure => present, >> content => template('modulename/temp

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Craig White
On Tuesday, November 18, 2014 9:18:33 AM UTC-7, Steven Post wrote: > > If you use hiera and puppet 3 (or later), you can use the automatic class > parameters for that, and just 'include openldap::server::database'. > Of cause you can set up some class parameters on your own class if you > want

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
If you use hiera and puppet 3 (or later), you can use the automatic class parameters for that, and just 'include openldap::server::database'. Of cause you can set up some class parameters on your own class if you want to and do that. Typically, this is where I would use hiera for. On Tuesday, No

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Craig White
OK - but I still need to figure out how to call one class with parameters from another class... class wl::config { : class openldap::server::database { $dn: ensure => present, rootdn => "cn=admin,${dn}", rootpw => $rootpw, } } On Tuesday, November 18, 2014 9:06:34 AM UTC-7, St

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
The roles/profile pattern does not use node inheritance, only class inheritance. Strictly speaking, this isn't even necessary, it can just make some things easier. At my company, we don't even use any real node definition, everything is done with an ENC and hiera. The roles/profile model still

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Craig White
On Tuesday, November 18, 2014 7:27:20 AM UTC-7, jcbollinger wrote: > > > On Monday, November 17, 2014 4:40:28 PM UTC-6, Craig White wrote: >> >> The last file - wl.pp is my own file and it looks like this... >> > >> $ensure= present >> $directory = '/var/lib/ldap' >> $rootdn= 'cn=admi

Re: [Puppet Users] how to use snmp trap command to send to monitoring tool if the node goes to changed state

2014-11-18 Thread Juan Sierra Pons
2014-11-18 16:47 GMT+01:00 Spriya : > Hi, > > Appreciate your help. Do you have any sample script to just get started > > Thank You Hi, I wrote this post in Spanish long time ago about connecting to a msyql DB from a bash script: http://www.elsotanillo.net/2006/05/linux-acceso-a-una-bbdd-mysql-de

Re: [Puppet Users] SSL issues arising from cloning environment

2014-11-18 Thread Roger Sherman
Er ah, to be more specific, I had to list the correct .pem files in the puppetmaster vhost, and change the server IP. On Tuesday, November 18, 2014 10:51:40 AM UTC-5, Roger Sherman wrote: > > Turns out this was the problem - thanks for the help, guys, as always, > talking it out helped point me

Re: [Puppet Users] SSL issues arising from cloning environment

2014-11-18 Thread Roger Sherman
Turns out this was the problem - thanks for the help, guys, as always, talking it out helped point me down the right path. Thanks, Rog On Tuesday, November 18, 2014 9:56:05 AM UTC-5, Roger Sherman wrote: > > Right - and on that note, I think I've made a little bit of progress, but > I'm still

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Craig White
It seems that node inheritance is deprecated in Puppet 4 so this is a no go (role/profiles). I suppose I should have mentioned that I will be using an ENC so I am trying to keep the cruft inside node definitions to a minimum which is why I am struggling to find a way to create a class - certain

Re: [Puppet Users] how to use snmp trap command to send to monitoring tool if the node goes to changed state

2014-11-18 Thread Juan Sierra Pons
Hi, Probably there is a more straightforward way of doing this. Just my 5 cents Supposing you have the dashboard installed: 1.- Create a script that checks the msyql db for servers that changed the state during last run. Check nodes table 2.- Make this script launch the traps you need. 3.- Put t

Re: [Puppet Users] how to use snmp trap command to send to monitoring tool if the node goes to changed state

2014-11-18 Thread Spriya
Hi, Appreciate your help. Do you have any sample script to just get started Thank You On Tuesday, November 18, 2014 10:44:42 AM UTC-5, Juan Sierra Pons wrote: > > Hi, > > Probably there is a more straightforward way of doing this. Just my 5 > cents > > Supposing you have the dashboard install

[Puppet Users] Re: invalid checksum using template

2014-11-18 Thread jcbollinger
On Monday, November 17, 2014 9:38:17 AM UTC-6, Felice Pizzurro wrote: > > Hi all, > > I'm simply tryng to push a file with content in template: > > file {'/tmp/test': > ensure => present, > content => template('modulename/template_file.erb') > } > > Template file contains a line like this: >

[Puppet Users] How to use mcollective::plugin defined type to install different agents and client?

2014-11-18 Thread Stella
Hi, I have installed mcollective on both server and client, now I need to install some mcollective agent and client on all the machines: I can use yum install: - yum install mcollective-filemgr-agent - yum install mcollective-nettest-agent - yum install mcollective-package-agent - y

Re: [Puppet Users] SSL issues arising from cloning environment

2014-11-18 Thread Roger Sherman
Right - and on that note, I think I've made a little bit of progress, but I'm still not there yet. I looked at the apache vhost file for the puppetmaster, and found the following: # you probably want to tune these settings PassengerHighPerformance on PassengerMaxPoolSize 12 PassengerPoolIdle

[Puppet Users] PuppetDB service not running

2014-11-18 Thread mike
Hello Eveyone I've Puppet Server 3.7 running on Centos 6, i try install Puppetdb but when upload service inside the log i have the next error: [..] 2014-11-18 11:33:56,676 INFO [o.a.k.j.Journal] ignoring zero length, partially initialised journal data file: db-1.log number = 1

[Puppet Users] how to use snmp trap command to send to monitoring tool if the node goes to changed state

2014-11-18 Thread Spriya
Hi , How to use snmp trap command if the server goes to changed state in puppet? Anyone,Please help me Thank you -- 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

[Puppet Users] Re: SSL issues arising from cloning environment

2014-11-18 Thread Roger Sherman
Hi John, I've already run through those steps, and everything is communicating as expected. Thank you, Rog On Tuesday, November 18, 2014 9:37:16 AM UTC-5, jcbollinger wrote: > > > > On Monday, November 17, 2014 10:26:41 PM UTC-6, Roger Sherman wrote: >> >> I'm in the process of setting up a s

Re: [Puppet Users] SSL issues arising from cloning environment

2014-11-18 Thread jcbollinger
On Tuesday, November 18, 2014 7:57:44 AM UTC-6, Roger Sherman wrote: > > For some reason, (I think) the PM is unable to sign them. At least, that's > what seems to be the case. > Well yes, sort of. It appears that the PM is unable to sign the requests because the client is unable to establis

[Puppet Users] Re: SSL issues arising from cloning environment

2014-11-18 Thread jcbollinger
On Monday, November 17, 2014 10:26:41 PM UTC-6, Roger Sherman wrote: > > I'm in the process of setting up a staging environment for the company I > work for. To do this, we've cloned our production environment (vmware), > changed the hostnames of the nodes, re-IP'd the nodes, and since that >

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread jcbollinger
On Monday, November 17, 2014 4:40:28 PM UTC-6, Craig White wrote: > > Not that it matters, but I am trying to use a module out of puppet forge - > camptocamp-openldap > https://github.com/camptocamp/puppet-openldap > > There's no hint of using it anywhere > > It has an unusual style. There isn't

[Puppet Users] Re: Issue getting new custom fact to work in OS X

2014-11-18 Thread Jonathan Cohen
We do not use puppet as a full system, only Facter to pull metrics and other information into other tools. On Tuesday, November 18, 2014 8:05:08 AM UTC-6, jcbollinger wrote: > > > > On Monday, November 17, 2014 8:47:28 AM UTC-6, Jonathan Cohen wrote: >> >> I'm trying to get a new custom fact wor

[Puppet Users] Re: Issue getting new custom fact to work in OS X

2014-11-18 Thread jcbollinger
On Monday, November 17, 2014 8:47:28 AM UTC-6, Jonathan Cohen wrote: > > I'm trying to get a new custom fact working in OS X. Source information > is from: > > > https://github.com/grahamgilbert/grahamgilbert-mac_facts/blob/master/lib/facter/mac_admin_users.rb > > Here is the process that I wen

Re: [Puppet Users] SSL issues arising from cloning environment

2014-11-18 Thread Roger Sherman
Hi Neil, thank you for the response. Certificate requests are sent out during a noop run, which are then signed on the PM and then a subsequent noop run puts the cert in place. For some reason, (I think) the PM is unable to sign them. At least, that's what seems to be the case. Thank you, Rog

[Puppet Users] Re: syncronizing many files ( more than 100,000 ) with "puppet agent -t" is slow

2014-11-18 Thread jcbollinger
On Monday, November 17, 2014 12:32:44 PM UTC-6, Seokhee Kim wrote: > > Hi, > We have some special case to use Puppet which need to sync many and many > files but just few files are updated ( delete, created or updated ). > Is there any way to sync just for changed files? now I am syncing whole

[Puppet Users] how to compare facts using variables in a text file

2014-11-18 Thread Spriya
Hi, I have a requirement how to compare facts using variables which are in a txt file For example i have a facts java_known_weblogic_version11.7.0_72 I have txt file javaversion.txt file 1.7.0_72 I want to comapare these files java_known_weblogic_version != javaversion.txt file? How can i d

[Puppet Users] Re: scope of variable inside defined type

2014-11-18 Thread Antoine Cotten
What about the getparam function from the stdlib module ? Quote: define example_resource($param) { } example_resource { "example_resource_instance": param => "param_value" } getparam(Example_resource["example_resource_instance"], "param") -- Y

Re: [Puppet Users] Puppet variable within a Fact

2014-11-18 Thread Antoine Cotten
True, I could try the file approach, the only drawback is that it would take 1 Puppet run before the fact is defined, but the same would hold true with the environment variable. Thanks Henrik! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. T

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
Hi Craig, If you scroll down on the website you mentioned, you'll see some usage instructions. I recommend *not* to change the module (not even adding your own wl.pp file inside), but to set up your wl.pp file elsewhere. You can use your own class (wl.pp, located outside this module) to set up

[Puppet Users] Re: How best to use hiera for Java options? (with hash_merge)

2014-11-18 Thread Steven Post
On Monday, November 17, 2014 4:06:02 PM UTC+1, jcbollinger wrote: > > > > On Monday, November 17, 2014 4:11:09 AM UTC-6, Steven Post wrote: >> >> Hi, >> >> I've been using puppet for over a year now, but now I have a problem, and >> I'm not seeing a solution. >> I have a hash to set up Java appl

Re: [Puppet Users] PuppetDB Queries

2014-11-18 Thread Ken Barber
> Would like to use PuppetDB to find out more about the estate inventory. > Specifically at the moment I am trying to find out the amount of servers > using "productname", and the "physicalprocessorcount" for each - both with > totals. > > Is this doable from the API at all, or easier from insid

[Puppet Users] PuppetDB Queries

2014-11-18 Thread Paul Seymour
Hello, Would like to use PuppetDB to find out more about the estate inventory. Specifically at the moment I am trying to find out the amount of servers using "productname", and the "physicalprocessorcount" for each - both with totals. Is this doable from the API at all, or easier from inside P

Re: [Puppet Users] SSL issues arising from cloning environment

2014-11-18 Thread Neil
Hello 2.7 is pretty old. IIRC noop stops the agent writing anything including the certificate stuff. You can either Drop the noop Upgrade puppet on client Do the certificate work manually Specify the certname in the config and use the old cert assuming your cloned master still has that Neil On 18