Re: [Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Wil Cooley
The $servername variable isn't actually a fact -- it's set by the server itself while compiling the catalog, so from the perspective of writing manifests it smells a lot like a fact. Wil On Wed, Dec 3, 2014 at 2:13 PM, Ramin K wrote: > I'm not a PE user, but the config for the OSS version has a

Re: [Puppet Users] Another book on Puppet

2014-12-03 Thread Walid
Congratulations Felix, I just saw it in my safari books online, checked few topics, and found it brief and informative, Thank you, Walid On 30 November 2014 at 17:24, Felix Frank wrote: > Hi all, > > it's with great pride that I follow Alessandro with yet another plug of > relevant literature.

Re: [Puppet Users] Defined type parameter defaults not set (undef)

2014-12-03 Thread Henrik Lindberg
On 2014-03-12 15:35, Martijn Grendelman wrote: Hi, Please consider the following simplified code: class apache::params { $priority = 25 } define apache::vhost ( $priority = $::apache::params::priority ) { include apache::params notify { "$name prio 1: $apache::params::priority": } notify { "

Re: [Puppet Users] Notify: log only the message itself at 'notice' level

2014-12-03 Thread Henrik Lindberg
On 2014-02-12 8:58, Nacho Barrientos wrote: On 01/12/14 16:25, Spencer Krum wrote: Maybe you could use the notice() or warn() functions? Those would log server-side, wouldn't they? I want to see it on the client console and on the Puppet report :) Yes that is true. There is no current supp

Re: [Puppet Users] Defined type parameter defaults not set (undef)

2014-12-03 Thread Wil Cooley
On Dec 3, 2014 6:53 AM, "Martijn Grendelman" wrote: > > Hi, > > Please consider the following simplified code: > > class apache::params { > $priority = 25 > } > > define apache::vhost ( > $priority = $::apache::params::priority > ) { > > include apache::params > > notify { "$name prio 1: $apache::

[Puppet Users] changes to beaker RSpec spec test best practices.

2014-12-03 Thread Alice Nodelman
With the coming EOL of ruby 1.8 support we are upgrading our RSpec support to latest. This means that we will also be adopting latest RSpec method names. The main changes will be in the removal of 'should' and 'stub' statements, which will now be 'expect' and 'allow'. For a rundown see: http

Re: [Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Ramin K
I'm not a PE user, but the config for the OSS version has a blacklist to remove facts like uptime, path, ps, etc from the facts.yaml. I'd expect PE to follow the same process. Might be worth opening a support request. Ramin On 12/3/14 1:25 PM, Daren Arnold wrote: Hi Ramin, Is this feature/va

[Puppet Users] Re: Need advice about upgrade puppetmaster from ruby 1.8.7 to ruby 1.9.3

2014-12-03 Thread josie . workerbee
HI All, Thanks for the responses - very helpful. I've installed RVM and things are progressing much more smoothly now. Cheers, Josie On Tuesday, December 2, 2014 11:56:42 AM UTC+11, josie.w...@gmail.com wrote: > > HI there, > > I'm looking for any tips/pointers on how to upgrade an existing >

Re: [Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Daren Arnold
Hi Ramin, Is this feature/variable turned on by default in PE 3.3? I am unable to see a fact for 'servername'. I am probably trying to access it incorrectly. To test, I issue an mco command: mco inventory I don't see servername available. Thanks for any additional help you can provide. D

Re: [Puppet Users] Best practice for notifying versus changing?

2014-12-03 Thread Anoop Kumar
Check audit as well. It is a meta parameter and made to address exactly such use cases. Thanks! Anoop On Wed, Dec 3, 2014 at 2:01 PM, Brian Morris wrote: > Hello all, > > Due to some persnickety Windows developers I have been tasked with showing > that Puppet can be used to alert when a known c

Re: [Puppet Users] Best practice for notifying versus changing?

2014-12-03 Thread José Luis Ledesma
Hi, Noop mode is the answer Regards, El 3/12/2014 20:01, "Brian Morris" escribió: > Hello all, > > Due to some persnickety Windows developers I have been tasked with showing > that Puppet can be used to alert when a known configuration has changed > rather than correcting the change, and then n

Re: [Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Ramin K
There is already a set of server facts available during a Puppet run. https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#puppet-master-variables Because you're running PE you should be able to query which servers are using which server through mcollective. Ra

[Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Tony Thayer
If you already have SSH shared keys, a simpler method may be to just run a remote ssh command through a loop. For instance, if you have the hostnames in a text file named servers.txt, you could run something like while read -u10 HOST ; do echo $HOST; ssh $HOST "grep server /etc/puppet/puppet.co

[Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Daren Arnold
Tony, Thanks for your reply. I was hoping to avoid inspecting all of the agents (either puppet.conf files or running puppet agent -t --debug) manually. I am looking into an approach that involves creating an external fact to query the value of 'server' in the puppet.conf. That may be what yo

[Puppet Users] Best practice for notifying versus changing?

2014-12-03 Thread Brian Morris
Hello all, Due to some persnickety Windows developers I have been tasked with showing that Puppet can be used to alert when a known configuration has changed rather than correcting the change, and then notifying of the correction. I have tried wrapping my head around this, but it doesn't seem t

[Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Tony Thayer
The agents should have the master defined in their puppet.conf file. Failing that, you can manually run the agent on a system with "puppet agent -t --debug" and look for entries that look like "Caching connection for https://puppet.local:8140"; - Tony On Wednesday, December 3, 2014 7:25:36 AM

Re: [Puppet Users] Re: [newb] Using facts to control versions of modules?

2014-12-03 Thread leam hall
And if I can learn how to use e-mail. Man, I'm getting tired. Anyway, seem to have gotten environments to work. Still testing but I think it will solve some of the issues we need to overcome. Yay! On Wed, Dec 3, 2014 at 10:57 AM, leam hall wrote: > On Wed, Dec 3, 2014 at 9:53 AM, leam hall wr

Re: [Puppet Users] Re: [newb] Using facts to control versions of modules?

2014-12-03 Thread leam hall
On Wed, Dec 3, 2014 at 9:53 AM, leam hall wrote: > If I can get environments to work. Bleagh... > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/puppet-u

[Puppet Users] puppet agent upgrade on windows

2014-12-03 Thread Jason Chinsen
Hello There, We started our puppet adventures at 3.2.x with both windows and linux boxes. Since then we have upgraded our Master to 3.3.2 and are looking to upgrade to 3.7. The linux agent upgrades are very simple, but I am running into issues with the windows agent upgrades :/ We have an Artif

[Puppet Users] Determining which master an agent is connected to

2014-12-03 Thread Daren Arnold
Hello, Newb question here. I have inherited a PE 3.3 setup that uses a Puppet master hub, spoke and about 100 agents. The agents were installed at various times - some were connected directly to the hub and others connected to the spoke. Is there a way to determine which agents are connect

Re: [Puppet Users] How to compare facts with another facts?

2014-12-03 Thread Felix Frank
Well, the manifest excerpt you pasted is valid in and of itself. I suspect that you are using it in a wrong context, such as inside a resource declaration block. "if" constructs can appear * in the global scope * in the body of a class, node or define HTH, Felix On 12/03/2014 03:08 PM, Spriya

Re: [Puppet Users] Re: puppet turning a file into a directory

2014-12-03 Thread Trevor Vaughan
Also, check to see if you have an exec somewhere that might be causing this and you're seeing a flapping issue. Trevor On Wed, Dec 3, 2014 at 9:31 AM, jcbollinger wrote: > > > On Tuesday, December 2, 2014 10:03:53 PM UTC-6, chris smith wrote: >> >> Hi, >> >> This is a very strange one. On my CA

[Puppet Users] Re: [newb] Using facts to control versions of modules?

2014-12-03 Thread leam hall
If I can get environments to work. Bleagh... -- 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.com. To view this discussion o

[Puppet Users] Defined type parameter defaults not set (undef)

2014-12-03 Thread Martijn Grendelman
Hi, Please consider the following simplified code: class apache::params { $priority = 25 } define apache::vhost ( $priority = $::apache::params::priority ) { include apache::params notify { "$name prio 1: $apache::params::priority": } notify { "$name prio 2: $priority": } } apache::vhost { 't

[Puppet Users] Re: puppet turning a file into a directory

2014-12-03 Thread jcbollinger
On Tuesday, December 2, 2014 10:03:53 PM UTC-6, chris smith wrote: > > Hi, > > This is a very strange one. On my CA server (which also runs puppet as > an agent to control various things), sometimes a file gets turned into a > directory. It's only this file and on this server (the other puppet

[Puppet Users] Re: Puppet rendered system unusable because of following a dependency tree removing an RPM

2014-12-03 Thread jcbollinger
On Monday, December 1, 2014 4:11:31 PM UTC-6, Clay Stuckey wrote: > > I wrote two manifests for RHEL systems. One removed syslog. The other > installed rsyslog. The syslog removal followed a tragic dependency tree > removing RPMs such as coreutils, rpm, yum and pam. Once the servers > rebooted

[Puppet Users] How to compare facts with another facts?

2014-12-03 Thread Spriya
Hi, I have two facts where the output is getting displayed for both. But now i am trying fact1 with fact2. How can i do that? I tried this one: *if $java_foundversion_count != $java_authorized_count {* * notify { "The server found java count has changed to $java_foundversion_count": }* *}*