Re: [Puppet Users] catalog-diff and create_resources not correct

2015-01-06 Thread Johan De Wit
On 24/12/14 00:50, Felix Frank wrote: On 12/23/2014 10:36 AM, Johan De Wit wrote: The resource is indeed in both catalogs, only the old one contains 2 automatic attributes (file: and line:). I suspect this is the cause. Hi Johan, good call - I believe those are hints that the compiler adds, s

Re: [Puppet Users] not able to run Linux command through puppet

2015-01-06 Thread Gareth Rushgrove
On 5 January 2015 at 19:33, Spriya wrote: > Hi, > > I am trying to run linux command through puppet. when i run the same command > in the command line it is working fine. But when i placed it in the puppet > it is throwing me an error. > > Here is the code: > > Facter.add('unknownjava') do >

[Puppet Users] Re: Announcing Tiny Puppet

2015-01-06 Thread Alessandro Franceschi
On Monday, January 5, 2015 5:57:35 PM UTC+1, jcbollinger wrote: > > > > On Friday, January 2, 2015 3:49:25 AM UTC-6, Alessandro Franceschi wrote: >> >> Hi all, >> with some hardly hidden pride and excitement I'd like to announce the >> first release of Tiny Puppet

[Puppet Users] Upgrading all Forge modules at once

2015-01-06 Thread Jonathan Gazeley
Hi peeps, Is there a way to upgrade all currently-installed Forge modules at the same time? I'm guessing no, since I've looked in the past and haven't found a way. I prepared a small script the enumerates all installed modules and upgrades them sequentially. It's hacky, but it works for me.

[Puppet Users] Re: puppetdb memory use

2015-01-06 Thread kaustubh chaudhari
Did you upgrade the openjdk to the latest ? i did the same upgrade. for me things are running smooth. -Kaustubh On Tuesday, January 6, 2015 2:35:04 AM UTC-5, jdt wrote: > > Hello, > > I recently upgraded to PuppetDB2.2.0 from 1.6.3 > When I was running PuppetDB1.6.3 with Puppet 3.4.3 I could do

[Puppet Users] Re: puppetdb memory use

2015-01-06 Thread jdt
I'm running java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el6_5 that might not be the very latest. I'm on CentOS 6.5 The heap space usage is pretty close to 1GB,when I look at it via the PuppetDB dashboard. I'm managing over 10 resources Jo Op dinsdag 6 januari 2015 11:26:40 UTC+1 schreef kaustubh

[Puppet Users] Re: puppetdb memory use

2015-01-06 Thread kaustubh chaudhari
Hey, I noticed that you mentioned you are managing 850 nodes and you are using 1024MB for java Heap size. As per the recommendation this seems to be OK. As per the documentation you need to allocate 128MB + 1MB per node ie: 128 + 850 = 978 MB is the minimum requirement. Also the scaling depend

[Puppet Users] Re: puppetdb memory use

2015-01-06 Thread kaustubh chaudhari
For your Reference : https://docs.puppetlabs.com/puppetdb/2.2/scaling_recommendations.html#initial-memory-recommendations -Kaustubh On Tuesday, January 6, 2015 8:14:24 AM UTC-5, kaustubh chaudhari wrote: > > Hey, > > I noticed that you mentioned you are managing 850 nodes and you are using > 10

[Puppet Users] Install puppet agent via puppet master

2015-01-06 Thread jgopi ruizu
Is it possible to install a puppet agent on a new system by the puppet master? If so how it works? -- 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

[Puppet Users] Unable to retrieve catalog with Hiera as ENC

2015-01-06 Thread Adrien Kutak
Hi, I'm trying to use Hiera as ENC with dynamic puppet environment however it fails when I launch puppet : *root@test:/# puppet agent -t --environment=development* *Error: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty_answer' for Hiera::Backen

Re: [Puppet Users] not able to run Linux command through puppet

2015-01-06 Thread Spriya
Same error is coming up. even though i changed to 'bash -c /usr/bin/diff ... On Tuesday, January 6, 2015 3:42:59 AM UTC-5, garethr wrote: > > On 5 January 2015 at 19:33, Spriya > > wrote: > > Hi, > > > > I am trying to run linux command through puppet. when i run the same > command > > i

Re: [Puppet Users] not able to run Linux command through puppet

2015-01-06 Thread Trevor Vaughan
Looks like your Ruby syntax is incorrect. Try (untested): *%x{/usr/bin/diff <(/bin/sort /home/weblogic/javafoundmodified.txt) <(/bin/sort /home/weblogic/authorizedjava.txt) > /home/weblogic/unknownjava.txt | /bin/sed -i 's/^.//' /home/weblogic/unknownjava.txt}* *You might want to throw that i

[Puppet Users] How to force Puppet to use a specific yum repo?

2015-01-06 Thread staceytian4321
Hi, I am using open source Puppet 3.7.3. There are multiple yum repos on the puppet agent machines. So when I use Puppet to push a package, can I force Puppet to use a specific yum repo? For example, here is my module for pushing Firefox: class firefox::checkff inherits firefox { if ( ($ope

[Puppet Users] Re: not able to run Linux command through puppet

2015-01-06 Thread jcbollinger
On Monday, January 5, 2015 1:33:09 PM UTC-6, Spriya wrote: *%x(`/usr/bin/diff <(/bin/sort /home/weblogic/javafoundmodified.txt) > <(/bin/sort /home/weblogic/authorizedjava.txt) > > /home/weblogic/unknownjava.txt | /bin/sed -i 's/^.//' > /home/weblogic/unknownjava.txt`)* > [...] > Here is

[Puppet Users] Re: not able to run Linux command through puppet

2015-01-06 Thread jcbollinger
Sorry, I meant: %x{/bin/bash -c '/usr/bin/diff <(/bin/sort /home/weblogic/javafoundmodified.txt) <(/bin/sort /home/weblogic/authorizedjava.txt) | /bin/sed "s/^.//" /home/weblogic/unknownjava.txt | /usr/bin/tee /home/weblogic/unknownjava.txt'} John -- You received this message because you

[Puppet Users] Re: not able to run Linux command through puppet

2015-01-06 Thread jcbollinger
Errr... this: > > %x{/bin/bash -c '/usr/bin/diff <(/bin/sort > /home/weblogic/javafoundmodified.txt) <(/bin/sort > /home/weblogic/authorizedjava.txt) | /bin/sed "s/^.//" | /usr/bin/tee > /home/weblogic/unknownjava.txt'} > > > I mean it this time. John -- You received this message because y

Re: [Puppet Users] Re: not able to run Linux command through puppet

2015-01-06 Thread Felix Frank
How about avoiding the awful bashisms altogether? cat /home/weblogic/{javafoundmodified,authorizedjava}.txt | sort | uniq -u | tee ... That should make it easier on your Ruby. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsu

[Puppet Users] Re: not able to run Linux command through puppet

2015-01-06 Thread Spriya
Thank you john. This is working for me. On Tuesday, January 6, 2015 10:04:58 AM UTC-5, jcbollinger wrote: > > > Errr... this: > >> >> %x{/bin/bash -c '/usr/bin/diff <(/bin/sort >> /home/weblogic/javafoundmodified.txt) <(/bin/sort >> /home/weblogic/authorizedjava.txt) | /bin/sed "s/^.//" | /usr/b

[Puppet Users] How to test hiera info?

2015-01-06 Thread leam hall
I can use: puppet apply -e '$su = hiera_array("site_users") notify { $su: }' on the puppet master and get the information for that host. How do I run that query on a node that should get a different answer based on facts? For example, on "mynode.example.com", how do I query for hostname="mynode".

Re: [Puppet Users] How to test hiera info?

2015-01-06 Thread Dan White
From "puppet help apply" : Applies a standalone Puppet manifest to the local system. So, I do not believe you can do this on other than a puppet master. To do such tests on agent machines, I create a dummy/sandbox class and then include it on the node. If you are using hiera, you should be usi

Re: [Puppet Users] How to test hiera info?

2015-01-06 Thread Stephen Marlow
You can use hiera on the command line to directly look up values, and you can feed it a file to use different facts. On the client: sudo facter -p -y > facts.yml This tells facter to gather facts, using additional puppet facts (-p) and to output them in a yaml format (-y). In my instance I had

[Puppet Users] log config for "Passenger AppPreloader: /var/opt/lib/pe-puppetmaster"

2015-01-06 Thread Seokhee Kim
Hi, I am getting below messages on /var/log/messages. *puppet-master[1572]: schedule is a metaparam; this value will inherit to all contained resources in the* How can I redirect them? any configuration for that? Thanks, Seokhee -- You received this message because you are subscribed to

[Puppet Users] Re: log config for "Passenger AppPreloader: /var/opt/lib/pe-puppetmaster"

2015-01-06 Thread Seokhee Kim
For more information, httpd/conf.d/puppetmaster.conf has below config. why the /var/log/messages getting "puppet-master"? ErrorLog /var/log/pe-httpd/puppetmaster.error.log TransferLog /var/log/pe-httpd/puppetmaster.access.log On Tuesday, 6 January 2015 15:01:00 UTC-5, Seokhee Kim wrote

Re: [Puppet Users] Re: Puppet applies new file, then reverts it back

2015-01-06 Thread Nicholas Miller
That was it! Thank you very much! On Tuesday, January 6, 2015 2:30:14 AM UTC-5, Alex Elman wrote: > > Josh is correct. The first resource has a character with a different case. > Notice the p in the filename. You are managing two different resources from > puppet's perspective. > > > C:/LiveSer

Re: [Puppet Users] How to force Puppet to use a specific yum repo?

2015-01-06 Thread Felix Frank
Hi, I have next to no experience with yum, but generally you should try and 1. use the yumrepo type: https://docs.puppetlabs.com/references/latest/type.html#yumrepo 2. make sure the package *require* the repository 3. perhaps pass the enablerepo option via the install_options parameter: https://d

Re: [Puppet Users] Unable to retrieve catalog with Hiera as ENC

2015-01-06 Thread Felix Frank
Hi, is this Puppet 3.7? Adrien mentioned a scenario on his blog that can lead to this failure: http://somethingsinistral.net/blog/the-angry-guide-to-puppet-3/ It appears unlikely that this is hitting you, but please describe your setup anyway. Thanks, Felix On 01/06/2015 02:39 PM, Adrien Kutak

Re: [Puppet Users] Re: Issues with RHEL7

2015-01-06 Thread Felix Frank
Awesome. Is this an error in the official documentation? Could you file a bug or even create a pull request? Thanks, Felix On 01/05/2015 05:15 AM, Saxon Mailey wrote: > Hi Guys, > > There appears to be a typo in the subscription-manager example (its > missing the s from rpms) > > The command shou

Re: [Puppet Users] Vagrant Puppetmaster Cert

2015-01-06 Thread Felix Frank
Hi, so are you saying that after SSL breaks, you can fix it by restarting the service? On 01/02/2015 08:39 PM, Drew wrote: > Hey, > > I hope someone here can point me in the right direction. I've been > struggling with this for a few days and I can't seem to figure out > what the issue is. It's

Re: [Puppet Users] SSL Cert automation for service

2015-01-06 Thread Felix Frank
Hi, I haven't built this kind of scheme, but yes, Puppet should be able to do this for you. You will have to implement 1. A defined type that signs a cert for a given CN. 2. A custom fact that holds all signed certificates in a hash structure suitable for 3. A defined type that wraps the export o

Re: [Puppet Users] vcsrepo Found multiple default providers puppet 3.7.3

2015-01-06 Thread Felix Frank
On 12/29/2014 08:05 PM, Ellick Johnson wrote: > I just upgraded some of my agents to 3.7.3 and and now getting a warning: Hi, what did you run previously? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop r

Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-06 Thread Felix Frank
On 12/30/2014 09:05 PM, Matthew Kennedy wrote: > > | > if (defined("profile::${separator}::${profile}")) { > include "profile::${separator}::${profile}" > } > | Hi, Is the if defined() construct significant? Can you only reproduce when it is in place? Why is it there and what does i

[Puppet Users] Re: log config for "Passenger AppPreloader: /var/opt/lib/pe-puppetmaster"

2015-01-06 Thread Seokhee Kim
OK, I found it. it's config.ru. On Tuesday, 6 January 2015 15:01:00 UTC-5, Seokhee Kim wrote: > > Hi, > > I am getting below messages on /var/log/messages. > > *puppet-master[1572]: schedule is a metaparam; this value will inherit to > all contained resources in the* > > How can I redirect

Re: [Puppet Users] Upgrading all Forge modules at once

2015-01-06 Thread Pete Brown
Have you looked at R10K or puppet-librarian? They geared towards continuous integration and continuous delivery but that is never a bad thing. On 6 January 2015 at 19:39, Jonathan Gazeley wrote: > Hi peeps, > > Is there a way to upgrade all currently-installed Forge modules at the same > time? I'

Re: [Puppet Users] Install puppet agent via puppet master

2015-01-06 Thread Pete Brown
Not with puppet by itself. What do you use for your server infrastructure? Do you use an image based deployment system like OpenStack or AWS? Or have a provisioning server? It's not tricky to get an agent installed into your images that will find a puppet master and request a cert. I tend to use