Re: [Puppet Users] matching all current "ipaddress_ethX" facts

2013-12-04 Thread Stefan Schulte
On 21.11.2013 13:32, cko wrote: > Hi, > > I'm currently trying to solve the following problem: > > I wrote a module that matches the "$ipaddress" fact for certain IP > subnets (like 20.20.2... or 30.30.2..). Depending on the subnet, the > variable $proxy-server changes. > > The problem is, that

[Puppet Users] puppetdb missing environment fact

2013-12-04 Thread james . eckersall
Hi, I'm seeing something rather strange with puppetdb (1.5.2) in regards to the environment fact. On my puppetdb host: If I run the following query: curl -G 'http://localhost:8080/v3/facts' --data-urlencode 'query=["=", "name", "environment"]' I would expect to receive the environment fact f

[Puppet Users] Enabling Inventory Support for dashboard give SSL_connect error

2013-12-04 Thread shlo . afgin
I tried to Enabling Inventory Support for dashboard. I follow the instruction in http://docs.puppetlabs.com/dashboard/manual/1.2/configuring.html In the node page under the 'Inventory' I get: Could not retrieve facts from inventory service: SSL_connect returned=1 errno=0 state=SSLv2/v3 read se

[Puppet Users] How to yum install puppet 3.2.2

2013-12-04 Thread Claire Speed
Hi, I've been playing with puppet enterprise but wanted to look at open source puppet now to compare. I'm having a slightly weird problem installing it though and wonder if I'm missing something? I've been trawling through all the documentation and google matches I can find, but whatever I do

Re: [Puppet Users] Problem with PuppetDB and OpenSSL (solved)

2013-12-04 Thread Ken Barber
For what its worth the bug in openssl-1.0.1e-15 has been fixed in upstream by openssl-1.0.1e-16: http://rhn.redhat.com/errata/RHBA-2013-1751.html On Mon, Dec 2, 2013 at 12:33 PM, Ken Barber wrote: > So this seems to be a regression in openssl-1.0.1e-15.el6.x86_64. The > reason why this works for

[Puppet Users] Re: MySQL server install with datadir != /var/lib/mysql

2013-12-04 Thread Walter Heck
Tried and failed. The problem is that the mysql package automatically uses /var/lib/mysql, so the right sequence is: 1) yum install mysql-server 2) service mysqld stop 3) adjust my.cnf 4) make moves on filesystem if needed 5) service mysqld start (steps 2 and 3 can be reversed) This is hard to p

[Puppet Users] Re: MySQL server install with datadir != /var/lib/mysql

2013-12-04 Thread Luke Bigum
It should be theoretically possible. The mysql-server package owns /var/lib/mysql, but it is the mysql_install_db script that sets up an empty database in $datadir when the service starts if $datadir is empty. If you update your config file before you start the mysql server, you should be able

Re: [Puppet Users] external node classifiers

2013-12-04 Thread Jason Antman
Stuart, Yes, many of us use ENCs, though it seems to be mostly limited to larger shops; these days many people are moving in the direction of hiera instead. I've been using various ENCs for the past ~4 years. There are relatively few good choices for already-written ENCs. (well, if you just want

[Puppet Users] Re: puppetdb missing environment fact

2013-12-04 Thread Luke Bigum
'environment' is not a Fact: laptop:~$ sudo facter -p environment laptop:~$ It is a configuration parameter of Puppet. I'm not sure why older 2.7 hosts would be reporting it as a Fact to PuppetDB, unless in 2.7 all top scope variables were sent this way. You could use a Fact to pull out what

Re: [Puppet Users] Re: Puppet module testing & code coverage...

2013-12-04 Thread Felix Frank
Hi, On 12/03/2013 06:23 PM, Stuart Cracraft wrote: > You may want to go to www.amazon.com and pick up > How Google Tests Software by Whittaker, Arbon, and Carollo. I encourage the plugging of pertinent literature, but I feel uncomfortable about linking to specific retailer

Re: [Puppet Users] puppet-users-br err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=unknown sta

2013-12-04 Thread Felix Frank
Hi, on this agent machine, is there a /var/lib/puppet/ssl/certs/ca.pem? If so, what is the output of openssl x509 -issuer -subject -noout -in /var/lib/puppet/ssl/certs/ca.pem Thanks, Felix On 11/28/2013 12:09 PM, Caio Pedroso wrote: > root@Puppetclient:~# puppet agent --test > err: Could not

Re: [Puppet Users] testing and exported (nagios) resources

2013-12-04 Thread Felix Frank
Hi, I must be missing an essential piece here. All three of your puppet stack nodes must be present in each instance, no? The production master manages all three masters, normally. To change monitoring of either of them, you update the production manifests. Of course, if you implement some new m

[Puppet Users] puppet 2.7, template, keys of hash

2013-12-04 Thread David Portabella
test.pp $config = { host1 => { port => , msg => 'dfdasfas' }, host2 => { port => , msg => 'dfdasfas' }, } file { '/tmp/file.txt': content => template('file.txt.erb'), } file.txt.erb: keys: <%= @config.keys %> $ puppet apply --templatedir

[Puppet Users] How to reject agent (node) certificate request

2013-12-04 Thread kaustubh chaudhari
Hi, I am using open source puppet. How can i reject a certificate request generated by agent on the master. I can see the cert request in : puppet cert list However i wish to reject the request so that next time i run the same command, i dont see the garbage(unwanted requests) I know this ca

[Puppet Users] Re: puppetdb missing environment fact

2013-12-04 Thread james . eckersall
Thanks Luke. I just found a bug report describing that this behaviour has changed in 3.x http://projects.puppetlabs.com/issues/17692 For me, being able to determine the agent environment is very useful. We use git for the Puppet manifests and each branch is an environment. So we'll create new b

[Puppet Users] Re: what is the right way to ensure specific version installed on puppet agent?

2013-12-04 Thread jcbollinger
On Wednesday, December 4, 2013 1:19:55 AM UTC-6, shlo@gmail.com wrote: > > > > Hi, > > I wanted to install mysql-5.1.66 and make sure mysql-5.5.34 removed so I > make a init.pp file and put in it: > class mysql { > package { 'mysql': > ensure => "5.1.66-2.el6_3", > requi

Re: [Puppet Users] MySQL server install with datadir != /var/lib/mysql

2013-12-04 Thread Thomas
No it didn't work and see other replies with additional details thanks to the others that have provided more details regarding the problem. If I'm able to figure out a fix I'll certainly submit a pull request to resolve the issue. What I had done was on RHEL 6.4 deploy an /etc/my.cnf containing

[Puppet Users] Re: MySQL server install with datadir != /var/lib/mysql

2013-12-04 Thread Thomas
Yes that is what I was thinking as well. Unfortunately I don't believe yum will permit me to specify --noscripts so I can avoid mysql_install_db from running. On Wednesday, December 4, 2013 7:30:31 AM UTC-5, Walter Heck wrote: > > Tried and failed. The problem is that the mysql package automatic

[Puppet Users] Re: MySQL server install with datadir != /var/lib/mysql

2013-12-04 Thread Thomas
Yes it might be tricky to integrate it but I think this would be a useful enhancement. On Wednesday, December 4, 2013 7:38:46 AM UTC-5, Luke Bigum wrote: > > It should be theoretically possible. The mysql-server package owns > /var/lib/mysql, but it is the mysql_install_db script that sets up a

[Puppet Users] Re: puppet-dashboard cert::create_key_pair and cert::request fails

2013-12-04 Thread Jeremy Anderson
Thanks for the email, Robert -- after I replied to you, I realized I hadn't reply-all'd, so anyone on the list searching for this issue wouldn't see how I got it working. I worked around this by moving to the sodabrew version of puppet-dashboard, and also flailing around a bit with the config.

Re: [Puppet Users] puppet 2.7, template, keys of hash

2013-12-04 Thread Felix Frank
Works for me. $ cat /tmp/test.pp $config = { host1 => { port => , msg => 'dfdasfas' }, host2 => { port => , msg => 'dfdasfas' }, } notify { 'test': message => inline_template("keys: <%= @config.keys %>") } $ puppet --version 2.7.21 $ pupp

[Puppet Users] Re: external node classifiers

2013-12-04 Thread jcbollinger
On Tuesday, December 3, 2013 5:50:47 PM UTC-6, Stuart Cracraft wrote: > > Hi, > > I'd like to use ENC:: > > http://docs.puppetlabs.com/guides/external_nodes.html > > to keep hardwired customizations away from our classes and other files as > much as possible > particularly for the node name, b

Re: [Puppet Users] Re: MySQL server install with datadir != /var/lib/mysql

2013-12-04 Thread Walter Heck
What you could do is let yum just start and install it's stuff in /var/lib/mysql. Then an exec of mysql_install_db with an onlyif attribute that checks for the mysql metadata in /data/mysql. On Wed, Dec 4, 2013 at 4:02 PM, Thomas wrote: > Yes it might be tricky to integrate it but I think this

Re: [Puppet Users] Re: MySQL server install with datadir != /var/lib/mysql

2013-12-04 Thread Thomas
I agree and was thinking along those lines as well. For those interested vicinus (on github) has started this and has it working on Ubuntu. See https://github.com/puppetlabs/puppetlabs-mysql/issues/380 for details

[Puppet Users] dependency injection in puppet

2013-12-04 Thread David Portabella
Here: http://www.devco.net/archives/2012/12/13/simple-puppet-module-structure-redux.php it explains that "modules that have configuration should be configurable in a single way and single place", and I agree. However, as configuration grows in complexity, this means that the entry point would h

[Puppet Users] Puppet Master accepting request without certificates

2013-12-04 Thread kaustubh chaudhari
Hi, Auto sign is not configured. 1. installed puppet agent on a windows box. 2. accepted the certificate 3. uninstalled puppet agent from the windows box. 4. puppet cert clean "wintest" 5. puppet node clean "wintest" 6 puppet node deactivate "wintest" 7. install puppet agent on windows box(did n

[Puppet Users] templates as static files

2013-12-04 Thread Fabio Sangiovanni
hi everyone, are there any side effects in using only templates in a module, even when they have just static content? It would be helpful in having less direcories around to look into when dealing with file contents, especially when using hiera as storage for 'source' and 'content' values for

[Puppet Users] Re: Puppet Master accepting request without certificates

2013-12-04 Thread kaustubh chaudhari
Ok, I understood my doubts partially! When we uninstall puppet agent from windows box, it will not delete the APP Data folder for puppet which contains the certificates, to generate new certificate request you need to uninstall puppet agent and delete this directory. Further, i understood tha

[Puppet Users] Question about Hiera...

2013-12-04 Thread Jerald Sheets
If I'm finding Hiera unnecessarily obtuse and the PuppetLabs documentation (after dredging through the docs literally all morning) similarly confusing, where could I look to find more clarity and quality tutorial or instruction in the Hiera product? --- Jerald M. Sheets jr. -- You received thi

[Puppet Users] puppetdb: how to install using the system ruby 1.9.3-p484

2013-12-04 Thread machete
Hey what gives ... ? ;) I've got a shiny new install of ruby 1.9.3-p484 ... and my 'sudo puppet resource package puppetdb ensure=latest' loads ruby 1.8.7 Would some please point me to the instruction ( or share ) on how to get my 'sudo puppet resource package puppetdb ensure=latest' to

[Puppet Users] Re: puppetdb: how to install using the system ruby 1.9.3-p484

2013-12-04 Thread machete
Sorry if that was a vague request .. Here is some more details on the env...: ~> ruby -v ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux] ~> puppet -V 3.3.2 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this gr

[Puppet Users] Re: external node classifiers

2013-12-04 Thread Stuart Cracraft
Chapter 5 at page 119 in the Pro Puppet book of 2011 by Turnbull/McCune has good explanation and scripts, in Shell, Perl, Ruby. On Tuesday, December 3, 2013 3:50:47 PM UTC-8, Stuart Cracraft wrote: > Hi, > > I'd like to use ENC:: > > http://docs.puppetlabs.com/guides/external_nodes.html > > to

[Puppet Users] Re: puppetdb: how to install using the system ruby 1.9.3-p484

2013-12-04 Thread machete
Hey what gives ... ? ;) I've got a shiny new install of ruby 1.9.3-p484 ... and my 'sudo puppet resource package puppetdb ensure=latest' loads ruby 1.8.7 Would someone please point me to the instructions ( or share ) on how to get my 'sudo puppet resource package puppetdb ensure=latest' t

Re: [Puppet Users] Re: puppetdb: how to install using the system ruby 1.9.3-p484

2013-12-04 Thread Moses Mendoza
How did you install puppet originally? Are you running from packages, rubygem, or running from source, or some other method? On Wed, Dec 4, 2013 at 11:58 AM, machete wrote: > Hey what gives ... ? ;) > > I've got a shiny new install of ruby 1.9.3-p484 ... and my 'sudo puppet > resource package pup

Re: [Puppet Users] Re: puppetdb: how to install using the system ruby 1.9.3-p484

2013-12-04 Thread machete
Hey Moses, Thanks for the quick response. Puppet was install via ruby gem ... I know, but it is so easy. Ruby/rubygem are running from source. OS is CentOS 6.4 Linux puppetdb 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux On Wednesday, December 4, 201

Re: [Puppet Users] Re: puppetdb: how to install using the system ruby 1.9.3-p484

2013-12-04 Thread machete
gem list: gem list *** LOCAL GEMS *** bigdecimal (1.1.0) bundler (1.3.5) daemon_controller (1.1.7) facter (1.7.3) hiera (1.3.0) io-console (0.3) json (1.5.5) json_pure (1.8.1) minitest (2.5.1) passenger (4.0.17) puppet (3.3.2) rack (1.5.2) rake (0.9.2.2) rdoc (3.9.5) rgen (0.6.6) On Wednesda

[Puppet Users] Re: templates as static files

2013-12-04 Thread jcbollinger
On Wednesday, December 4, 2013 12:33:13 PM UTC-6, Fabio Sangiovanni wrote: > > hi everyone, > > are there any side effects in using only templates in a module, even when > they have just static content? It would be helpful in having less > direcories around to look into when dealing with file

[Puppet Users] Re: Puppet fails on aws instance using ruby19 yum install

2013-12-04 Thread Glenn Poston
I'm having the exact same issue. Anyone had success with puppet 3 ruby19 and Amazon linux? Any help? On Monday, October 7, 2013 11:27:41 AM UTC-4, Robert Logan wrote: > > > I've been trying to use the ruby19 and rubygems19 packages from amazons > yum repo but cant get around this issue: > > [r

[Puppet Users] Re: templates as static files

2013-12-04 Thread Fabio Sangiovanni
hi john, thank you very much for your exaustive answer. I'll meditate a little more on the matter, but I think the differences between the two parameters are more than clear to me now. thanks again! -- You received this message because you are subscribed to the Google Groups "Puppet Users" g

[Puppet Users] Re: dependency injection in puppet

2013-12-04 Thread jcbollinger
On Wednesday, December 4, 2013 11:48:50 AM UTC-6, David Portabella wrote: > > Here: > http://www.devco.net/archives/2012/12/13/simple-puppet-module-structure-redux.php > it explains that "modules that have configuration should be configurable > in a single way and single place", > and I agree.

[Puppet Users] Re: Puppet fails on aws instance using ruby19 yum install

2013-12-04 Thread Alexander Gray II
> > same here. if anyone has an update, please post here. Thanks. >> > -- 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+unsubscr...@googlegroups.c

[Puppet Users] external node classifier with a back-end

2013-12-04 Thread Stuart Cracraft
Hi everybody! Anyone have a back-ended external node classifier to a Postgres database they could throw my way? Stuart -- 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

[Puppet Users] Re: dependency injection in puppet

2013-12-04 Thread David Portabella
calling hiera from inside jmxtrans::connection would contradict the argument: "modules that have configuration should be configurable in a single way and single place", explained here: http://www.devco.net/archives/2012/12/13/simple-puppet-module-structure-redux.php I agree with that argument

Re: [Puppet Users] Re: dependency injection in puppet

2013-12-04 Thread R.I.Pienaar
- Original Message - > From: "David Portabella" > To: puppet-users@googlegroups.com > Sent: Wednesday, December 4, 2013 9:35:05 PM > Subject: [Puppet Users] Re: dependency injection in puppet > > calling hiera from inside jmxtrans::connection would contradict the > argument: > "module

Re: [Puppet Users] Re: puppetdb: how to install using the system ruby 1.9.3-p484

2013-12-04 Thread Moses Mendoza
If you installed puppet originally using ruby 1.8.7, then all of your gems, including puppet, will be in the ruby 1.8.7 gem home, and all the binaries, including puppet, that were created by rubygems will be pointing there. Since you built ruby 1.9.3 from source, perhaps you have a separate 'gem' e

Re: [Puppet Users] Re: dependency injection in puppet

2013-12-04 Thread David Portabella
> so if you feel your module has too many arguments, adjust the pattern but try to > understand why it recommends what it does and try to stay within the overall goals sure, and again, what i like about it is that it allows to have two apps, myapp1, and myapp2, which uses two differents $jmx

Re: [Puppet Users] external node classifier with a back-end

2013-12-04 Thread Dan White
Isn't that what PuppetDB is ? “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) - Original Message - From: "Stuart Cracraft" To: puppet-users@googlegroups.com Sent:

Re: [Puppet Users] Re: puppetdb: how to install using the system ruby 1.9.3-p484

2013-12-04 Thread machete
Ok .. thanks ... looks like the linux user is rockin' a different version than root and because I am using root to do the install it ... DOH! Scary, I thought all the 1.8.7 stuff was gone ... User gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.8.23 - RUBY VERSION: 1.9.3 (2

Re: [Puppet Users] external node classifier with a back-end

2013-12-04 Thread Stuart Cracraft
Hi Ygor/Dan, Postgres has better DR. We like Postgres. Stuart On Wednesday, December 4, 2013 2:03:10 PM UTC-8, Ygor wrote: > Isn't that what PuppetDB is ? > > “Sometimes I think the surest sign that intelligent life exists elsewhere > in the universe is that none of it has tried to contact us

Re: [Puppet Users] Question about Hiera...

2013-12-04 Thread Rich Burroughs
Is this the one you were using Jerald? http://docs.puppetlabs.com/hiera/1/complete_example.html I'm not sure I've seen a better one. There is a chapter on it in the second edition of Pro Puppet. I am expecting it will be pretty clear but I've not gotten that far yet :) http://www.apress.com/9781

[Puppet Users] Ensure last line in a file

2013-12-04 Thread Stack Kororā
Greetings, I am currently managing a configuration file for an application with puppet+file_line and so far everything is going well. I have about 30 rules that I need to ensure are in the configuration file. The tricky part is that the rest of the file I don't care about but some admin somewhe

Re: [Puppet Users] Re: VMware and open source puppet

2013-12-04 Thread Rich Burroughs
If you are using Puppet Enterprise, it does have support for provisioning VMs though Puppet: http://docs.puppetlabs.com/pe/latest/cloudprovisioner_vmware.html If you're using the open source Puppet, I'm not aware of a way to do that (I'm not saying there's not a way, just that I don't know of one

[Puppet Users] puppetmaster and nodes upgraded

2013-12-04 Thread Stuart Cracraft
3.2.1 to 3.3.2 puppetmaster(s) and associated node(s) passed test(s) one case was a straight "yum upgrade" with puppet labs yum service (the puppet master). the others from a private/local rpm repo I maintain. Didn't see anything weird. Did have to install libselinux-ruby though... Stuart

[Puppet Users] Re: VMware and open source puppet

2013-12-04 Thread Dhanarajan Ponnurangam
Thanks Rich. Seems open source does not support creating VM's. I learnt that Razor is another package which can be used to create VM's in a bare metal. Let me try exploring that. Thanks all for your support. Regards, Dhanarajan.p On Tuesday, 26 November 2013 23:32:34 UTC-8, Dhanarajan Ponnuranga

Re: [Puppet Users] MySQL server install with datadir != /var/lib/mysql

2013-12-04 Thread Justin
Have you tried creating a symlink (eg. /var/lib/mysql -> /mysql/data) before installing with yum? On Dec 3, 2013 8:40 PM, "Thomas" wrote: > Has anybody sucessfully used puppetlabs-mysql (or some other method) to > install MySQL-server on Linux with a my.cnf where datadir != /var/lib/mysql > ? > >

Re: [Puppet Users] external node classifier with a back-end

2013-12-04 Thread Ken Barber
>>> Anyone have a back-ended external node classifier to a Postgres database >>> they could throw my way? >> >> Isn't that what PuppetDB is ? > > Postgres has better DR. > > We like Postgres. PuppetDB is not an ENC, also FWIW and to be clear it uses PostgreSQL. ken. -- You received this message

Re: [Puppet Users] Re: puppet in java

2013-12-04 Thread Henrik Lindberg
On 2013-04-12 8:27, PRAVEEN D wrote: Current application is a standalone web application running in one server, so we use spring framwork to load the properties. New direction is to go with a distributed and clustered model, that is where we are getting complicated with the property file manageme

[Puppet Users] Using scheduled_task for Windows startup

2013-12-04 Thread Jeff Bachtel
Is there a way that I'm not seeing to make scheduled_task create a task that runs on Windows startup? Unrelated (but too lazy to send 2 emails) does anyone have an example of configuring the Windows time service from Puppet? This is all on 3.3.1, Jeff -- You received this message because you a

Re: [Puppet Users] external node classifier with a back-end

2013-12-04 Thread Dan White
Thanks for that clarification. I was fairly certain it uses PostgreSQL On Dec 4, 2013, at 8:52 PM, Ken Barber wrote: Anyone have a back-ended external node classifier to a Postgres database they could throw my way? >>> >>> Isn't that what PuppetDB is ? >> >> Postgres has better DR. >

Re: [Puppet Users] external node classifier with a back-end

2013-12-04 Thread Stuart Cracraft
And if you do not want to store secretive (complete) company data in PuppetDB but instead an alternative securable database, what then pray tell? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] external node classifier with a back-end

2013-12-04 Thread xav
On Wed, 2013-12-04 at 20:06 -0800, Stuart Cracraft wrote: > And if you do not want to store secretive (complete) company data in > PuppetDB but instead an alternative securable database, what then pray tell? > > Your original question wasn't about security at all. It was much more vague than t

[Puppet Users] Re: what is the right way to ensure specific version installed on puppet agent?

2013-12-04 Thread shlo . afgin
Thank you very much for your detailed answer. On Wednesday, December 4, 2013 4:56:34 PM UTC+2, jcbollinger wrote: > > > > On Wednesday, December 4, 2013 1:19:55 AM UTC-6, shlo@gmail.com wrote: >> >> >> >> Hi, >> >> I wanted to install mysql-5.1.66 and make sure mysql-5.5.34 removed so I >>