Re: [Puppet Users] Puppet Windows Service keeps stopping/starting

2013-02-08 Thread jim
Hello Josh Thanks for reply so quickly, here is my manifest, thinking about it, I assume it because i'm installing the agent every time, do I need to do something like if service doesn't exist install else ignore ? regards James file { 'C:/Installs/check-mk-agent-1.2.1i5.exe': source

[Puppet Users] Can we specify IP Address of host to run puppet agent via mcollective?

2013-02-08 Thread snlsinghal . 9
Can we specify IP Address instead of hostname in following command running from puppet master (Mcollective client): mco puppet runonce -I hostname -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop

Re: [Puppet Users] puppet master processing agent report time is very long, how to optimization

2013-02-08 Thread Dominic Cleal
On 08/02/13 03:42, serwei2...@gmail.com wrote: The puppet conf: master: reports = log,foreman agent: report = true So The foreman is the bottleneck? How to optimise? It's typically the database. Make sure you're using a real database such as PostgreSQL and not sqlite

Re: [Puppet Users] Can we specify IP Address of host to run puppet agent via mcollective?

2013-02-08 Thread R.I.Pienaar
- Original Message - From: snlsinghal 9 snlsingha...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, February 8, 2013 10:28:51 AM Subject: [Puppet Users] Can we specify IP Address of host to run puppet agent via mcollective? Can we specify IP Address instead of

Re: [Puppet Users] Can we specify IP Address of host to run puppet agent via mcollective?

2013-02-08 Thread snlsinghal . 9
Yeah thanks. This is good. But in this case would i write ipaddress in facts.yaml on each host? On Friday, February 8, 2013 3:02:59 PM UTC+5:30, R.I. Pienaar wrote: - Original Message - From: snlsinghal 9 snlsin...@gmail.com javascript: To: puppet...@googlegroups.com

Re: [Puppet Users] Can we specify IP Address of host to run puppet agent via mcollective?

2013-02-08 Thread R.I.Pienaar
- Original Message - From: snlsinghal 9 snlsingha...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, February 8, 2013 10:49:31 AM Subject: Re: [Puppet Users] Can we specify IP Address of host to run puppet agent via mcollective? Yeah thanks. This is good. But in this

Re: [Puppet Users] Can we specify IP Address of host to run puppet agent via mcollective?

2013-02-08 Thread Sonal Singhal
ok thanks.. I will go through this doc.. On Fri, Feb 8, 2013 at 3:20 PM, R.I.Pienaar r...@devco.net wrote: - Original Message - From: snlsinghal 9 snlsingha...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, February 8, 2013 10:49:31 AM Subject: Re: [Puppet Users] Can we

[Puppet Users] Puppet Enterprise 3.x available ?

2013-02-08 Thread jim
Hello all, I've seen post about Puppet 3.x being available for download but doesn't mention Enterprise ? Is this the same thing ? from puppet labs site i can only find 2.7.x regards James -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

Re: [Puppet Users] RFC: Default File Permissions

2013-02-08 Thread Nikola Petrov
I have seen this issue for sure many times. I always forget this and when I see it while running with --noop, I change the owner and the group on the file resource. I am +1 on fixing this to have a more deterministic behaviour Best, Nikola On Thu, Feb 07, 2013 at 05:48:58PM -0800, Josh Cooper

Re: [Puppet Users] RFC: Default File Permissions

2013-02-08 Thread llowder
On Friday, February 8, 2013 6:56:55 AM UTC-6, nikolavp wrote: I have seen this issue for sure many times. I always forget this and when I see it while running with --noop, I change the owner and the group on the file resource. I am +1 on fixing this to have a more deterministic behaviour

[Puppet Users] Installing puppet master and puppetdb on the same host.

2013-02-08 Thread Wikram Patankar
Hi Guys, I am new to the world of puppet. I have successfully configured puppet on centos 6 and am now trying to install puppetb on the same host. After the configuration when I try to run puppetd --test command on the client I get : [root@puppettest ~]# puppetd --test notice: Ignoring

[Puppet Users] issue storing facts values in mysql on puppet master 3.0.2

2013-02-08 Thread Heena
Hi, I got the following error:- Error: Could not retrieve catalog from remote server: wrong header line format In puppet.conf file on puppetmaster, I added following lines - facts_terminus = inventory_active_record dbadapter = mysql dbname = dashboard dbuser = test

[Puppet Users] storeconfigs migration to real DB

2013-02-08 Thread Ronald Wolf
I've been running a puppet server for about 18 months, a few months ago I read up on stored configurations and turned them on to share host entries to all my machines. But I'm seeing continuous DB collisions (machine 2 fails to run puppet agent because machine 1 already has the sqlite DB

[Puppet Users] Manifest if statement not working

2013-02-08 Thread jim
Hello Can someone please help or explain why this isn't working as read http://docs.puppetlabs.com/guides/language_guide.html It keeps adding the file NOT_present.txt i've played around with == and != and True / false etc, and its not giving me the correct outcome telling if folder exists or

Re: [Puppet Users] storeconfigs migration to real DB

2013-02-08 Thread Ken Barber
Hi Ronald, I presume your talking about switching to PuppetDB from using the ActiveRecord sqlite3 setup? One methodology is to: * Do a quick change freeze, ie. don't allow puppet to run properly on any host while you do the rest. * Simply make the switch to PostgreSQL PuppetDB configuration in

Re: [Puppet Users] Puppet Enterprise 3.x available ?

2013-02-08 Thread Gary Larizza
Hi there, I can absolutely see how this is confusing, let me see if I can help clear it up for you. The open source version of Puppet is currently at version 3.1.0, however Puppet Enterprise (the product stack) is at version 2.7.1 which is based on version 2.7.19 of the open source version of

Re: [Puppet Users] storeconfigs migration to real DB

2013-02-08 Thread Ronald Wolf
Thanks, Ken. That was my thought too, but I wanted to get a 2nd opinion. On Friday, February 8, 2013 10:30:13 AM UTC-6, Ken Barber wrote: Hi Ronald, I presume your talking about switching to PuppetDB from using the ActiveRecord sqlite3 setup? One methodology is to: * Do a quick

Re: [Puppet Users] Puppet Enterprise 3.x available ?

2013-02-08 Thread James Matthews
Hi Gary, Thanks for clearing that up, so would it be possible just to upgrade the puppet part of the PE stack? Or would that cause untold amount of issues? Thanks in advance Jim Sent from my iPhone On 8 Feb 2013, at 16:35, Gary Larizza g...@puppetlabs.com wrote: Hi there, I can

Re: [Puppet Users] Manifest if statement not working

2013-02-08 Thread Gary Larizza
The reason this is happening is because you're not testing the presence of that folder, you're actually testing whether the variable $confdir == the string of 'True', which it does not (it holds the value of the string C:/windows) What ultimately are you looking to do here? Puppet is a

Re: [Puppet Users] Puppet Enterprise 3.x available ?

2013-02-08 Thread Gary Larizza
Puppet Enterprise installs specific versions of its components into /opt/puppet and locks them in at that version (Puppet Enterprise is essentially our 'stable' build that lags behind the open source version). Upgrading Puppet in its 'vendored' location is a very bad idea for many reasons.

[Puppet Users] Re: Defined type and cyclic dependencies :(

2013-02-08 Thread Gavin Williams
Any ideas? Cheers Gavin On Wednesday, 6 February 2013 12:17:04 UTC, Gavin Williams wrote: Morning all I've got an issue when trying to use a defined type which is generating a cyclic dependency error when running puppet... The defined type is:

Re: [Puppet Users] Puppet Windows Service keeps stopping/starting

2013-02-08 Thread jcbollinger
On Friday, February 8, 2013 3:20:33 AM UTC-6, jim wrote: Hello Josh Thanks for reply so quickly, here is my manifest, thinking about it, I assume it because i'm installing the agent every time, do I need to do something like if service doesn't exist install else ignore ? regards

[Puppet Users] Re: RFC: Default File Permissions

2013-02-08 Thread jcbollinger
On Thursday, February 7, 2013 7:48:58 PM UTC-6, Josh Cooper wrote: Recently, the issue of copying file modes from remote sources was discussed on the puppet-users mailing list[1], although it equally applies to owner and group. One issue is what permissions to apply to newly created

[Puppet Users] puppet exported resources are not being realized

2013-02-08 Thread ashrith
I am trying to export store config's using puppetdb as follows: node test { @@file { /tmp/test: content = test file, tag = tmp-file, } } node test2 { File || tag == 'tmp-file' || } And, then when I run puppet on node test the resource is being exported and can be verified by

[Puppet Users] Mcollective/Puppet Plug-In

2013-02-08 Thread Worker Bee
Hi Everyone; I am stumped. I have installed Mcollective and the puppet plugin on both RHEL and AIX. Everything is working fine on RHEL. However, I keep getting the following error on my AIX boxes. I have verified the configuration, etc On AIX, I do install everything into /opt/puppet.

Re: [Puppet Users] Puppet Windows Service keeps stopping/starting

2013-02-08 Thread Josh Cooper
On Fri, Feb 8, 2013 at 9:08 AM, jcbollinger john.bollin...@stjude.org wrote: On Friday, February 8, 2013 3:20:33 AM UTC-6, jim wrote: Hello Josh Thanks for reply so quickly, here is my manifest, thinking about it, I assume it because i'm installing the agent every time, do I need to do

Re: [Puppet Users] RFC: Default File Permissions

2013-02-08 Thread Josh Cooper
Hi, On Fri, Feb 8, 2013 at 5:42 AM, llowder llowde...@gmail.com wrote: On Friday, February 8, 2013 6:56:55 AM UTC-6, nikolavp wrote: I have seen this issue for sure many times. I always forget this and when I see it while running with --noop, I change the owner and the group on the file

[Puppet Users] problem with using custom-fact in Nagios module

2013-02-08 Thread Sans
Hi there, Can anyone please tell me (or explain) what's I'm doing wrong here: Have the Nagios module installed and this is a Nagios check, where I'm facing the problem. nagios_service { check_dns_${::my_cname}: use = 'generic-service', check_command

Re: [Puppet Users] Re: RFC: Default File Permissions

2013-02-08 Thread Josh Cooper
Hi John, On Fri, Feb 8, 2013 at 9:22 AM, jcbollinger john.bollin...@stjude.org wrote: On Thursday, February 7, 2013 7:48:58 PM UTC-6, Josh Cooper wrote: Recently, the issue of copying file modes from remote sources was discussed on the puppet-users mailing list[1], although it equally

[Puppet Users] Re: Defined type and cyclic dependencies :(

2013-02-08 Thread jcbollinger
On Friday, February 8, 2013 11:07:11 AM UTC-6, Gavin Williams wrote: Any ideas? That would be a lot easier to analyze in the context of the relevant manifests, but it looks like you are specifying a lot of unneeded relationships. Also, Puppet's output may be a bit misleading because

[Puppet Users] Re: Defined type and cyclic dependencies :(

2013-02-08 Thread Gavin Williams
John Cheers for the response. I've added another file to the gist - https://gist.github.com/fatmcgav/4722199#file-oracle-pp. This is a snippet from the top-level manifest that is responsible for calling the *'remove' *define using *'create_resources'*. And yes, by various permutations, I

Re: [Puppet Users] Mcollective/Puppet Plug-In

2013-02-08 Thread R.I.Pienaar
- Original Message - From: Worker Bee beeworke...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, February 8, 2013 6:27:25 PM Subject: [Puppet Users] Mcollective/Puppet Plug-In Hi Everyone; I am stumped. I have installed Mcollective and the puppet plugin on both

[Puppet Users] Re: warnings for those shifting from puppet kick to mcollective

2013-02-08 Thread Jo Rhett
On Feb 8, 2013, at 10:44 AM, Jo Rhett wrote: 2. No classes file. http://projects.puppetlabs.com/issues/show/7917 This was actually operator error on my part. Not an issue. -- Jo Rhett Net Consonance : net philanthropy to improve open source and internet projects. -- You received this

Re: [Puppet Users] Mcollective/Puppet Plug-In

2013-02-08 Thread Worker Bee
You are correct, I do not. I followed these instructions explicitly... http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/InstallingPlugins Do I need to copy all of the directories and files in the zip distro to $mco_libdir? Thanks! Bee On Fri, Feb 8, 2013 at 1:37 PM,

[Puppet Users] Re: puppet exported resources are not being realized

2013-02-08 Thread joe
I think your collector syntax is off. Try this: File | tag == 'tmp-file' | (note the fewer | characters) That should probably be a syntax error... On Friday, February 8, 2013 10:25:37 AM UTC-7, ashrith wrote: I am trying to export store config's using puppetdb as follows: node test {

Re: [Puppet Users] Mcollective/Puppet Plug-In

2013-02-08 Thread R.I.Pienaar
- Original Message - From: Worker Bee beeworke...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, February 8, 2013 8:06:07 PM Subject: Re: [Puppet Users] Mcollective/Puppet Plug-In You are correct, I do not. I followed these instructions explicitly...

Re: [Puppet Users] Mcollective/Puppet Plug-In

2013-02-08 Thread Worker Bee
Thanks! On Fri, Feb 8, 2013 at 2:12 PM, R.I.Pienaar r...@devco.net wrote: - Original Message - From: Worker Bee beeworke...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, February 8, 2013 8:06:07 PM Subject: Re: [Puppet Users] Mcollective/Puppet Plug-In You are

Still getting an error....Re: [Puppet Users] Mcollective/Puppet Plug-In

2013-02-08 Thread Worker Bee
Now, I am getting this Thanks for the help! puppet5 : Cannot validate input: Unknown validator: 'puppet_server_address'. Cannot validate input: Unknown validator: 'puppet_server_address'.puppetdev04 : Puppet command 'puppet agent

Re: Still getting an error....Re: [Puppet Users] Mcollective/Puppet Plug-In

2013-02-08 Thread R.I.Pienaar
- Original Message - From: Worker Bee beeworke...@gmail.com To: puppet-users@googlegroups.com Sent: Friday, February 8, 2013 8:18:54 PM Subject: Still getting an errorRe: [Puppet Users] Mcollective/Puppet Plug-In Now, I am getting this Thanks for the help!

[Puppet Users] Re: puppet exported resources are not being realized

2013-02-08 Thread ashrith
Hi joe, Thanks for getting back, that doen't work. And i was thinking that the following syntaxe's are for: Collecting Virtual resources - | | Collecting exported resources - || || Please correct me if i am wrong. On Friday, February 8, 2013 11:08:20 AM UTC-8, joe wrote: I think your

Re: [Puppet Users] Re: puppet exported resources are not being realized

2013-02-08 Thread Gary Larizza
It's actually | | -- http://docs.puppetlabs.com/guides/exported_resources.html On Fri, Feb 8, 2013 at 11:28 AM, ashrith ashr...@cloudwick.com wrote: Hi joe, Thanks for getting back, that doen't work. And i was thinking that the following syntaxe's are for: Collecting Virtual resources -

[Puppet Users] warnings for those shifting from puppet kick to mcollective

2013-02-08 Thread Jo Rhett
So PL has been telling us that puppet kick is dead, and to shift to mcollective agent. The idea of getting away from 800mb puppet agents has a lot of appeal. Here's some advisories and bugs to watch before you make the shift. If you are preparing to make the shift, you may want to go to these

Re: [Puppet Users] Re: puppet exported resources are not being realized

2013-02-08 Thread ashrith
Sorry for the confusion, you are right Gary its | | (for collecting exported resources). But for some reason its still not collecting the resource. Is there any way to force puppet to collect the exported resource? Thanks, Ashrith. On Friday, February 8, 2013 11:29:40 AM UTC-8, Gary Larizza

Re: [Puppet Users] Unable to send puppet reports to foreman

2013-02-08 Thread David Schmitt
On 2013-02-07 22:50, Jagga Soorma wrote: Hi Guys, I am a new puppet user and trying to see the different options for reporting. I was able to setup and use puppet-dashboard just fine but can't seem to now get reports sent to foreman. Here is what my setup looks like: puppet server:

Re: [Puppet Users] Installing puppet master and puppetdb on the same host.

2013-02-08 Thread David Schmitt
On 2013-02-08 15:42, Wikram Patankar wrote: I have successfully configured puppet on centos 6 and am now trying to install puppetb on the same host. After the configuration when I try to run puppetd --test command on the client I get : [root@puppettest ~]# puppetd --test notice: Ignoring

Re: [Puppet Users] Puppet broken in upgrade from 3.0.1 to 3.1.0

2013-02-08 Thread Jo Rhett
On Feb 7, 2013, at 5:50 AM, Dominic Cleal wrote: Sorta puzzles me. Why would this mismatched agent certificate on puppetmaster interfered with other puppet agent runs? The same certificate that is used for the agent on the master server is also used for the master process itself (inbound

Re: [Puppet Users] Applying a resource only if not within a schedule

2013-02-08 Thread Jo Rhett
You could make a notify that also receives the same trigger with an opposite schedule. On Feb 7, 2013, at 2:40 PM, ad wrote: I have a custom resource type that upgrades a MSI and kicks off a reboot. It uses a schedule parameter (configurable through an ENC) so we can control when the node

[Puppet Users] Puppet dashboard stuck pending jobs

2013-02-08 Thread Jagga Soorma
Hi Guys, I am a new puppet user and wanted some type of monitoring for puppet so deployed puppet-dashboard. It has been working very well for a few days not, but all of a sudden I start getting pending tasks and they never finish even after restarting all processes. They keep accumulating

Re: [Puppet Users] Puppet dashboard stuck pending jobs

2013-02-08 Thread Jo Rhett
Make sure that your dashboard workers are running. If you are using CentOS then service puppet-dashboard-workers status will tell you. On Feb 8, 2013, at 1:53 PM, Jagga Soorma wrote: I am a new puppet user and wanted some type of monitoring for puppet so deployed puppet-dashboard. It has

Re: [Puppet Users] Certificate nightmares

2013-02-08 Thread Jo Rhett
I suspect your clients are talking to a different puppetmaster than you think they are. Test with an explicit --server and see if it changes. tcpdump is your friend. On Feb 6, 2013, at 7:44 AM, Bret Wortman wrote: I think I really hosed my certificates somehow this morning trying to get

Re: [Puppet Users] Applying a resource only if not within a schedule

2013-02-08 Thread ad
The schedule is a variable defined by our ENC. It varies depending on hostgroup/node. This approach would work but I'd have to write a custom function that knows how to convert a schedule. Adam On Friday, February 8, 2013 2:50:47 PM UTC-6, Jo wrote: You could make a notify that also receives

Re: [Puppet Users] Puppet dashboard stuck pending jobs

2013-02-08 Thread Jagga Soorma
Yes, the workers are definitely running and I have tried restarting puppet-dashboard-workers a few times as well as rebooting the vm completely without any luck. Something seems to be stuck somewhere but I can't figure out what. This has happened a few times now and I have just been recreating

Re: [Puppet Users] Re: Defined type and cyclic dependencies :(

2013-02-08 Thread fatmcgav
John Cheers again, very helpful... Will look at simplifying the relationships as much as possible, and also switch to before/requires... And yes, do regularly see multiple 'removing_xxx' before any of the 'removed_xxx' notifications... Cheers Gav On Feb 8, 2013 10:28 PM, jcbollinger

Re: [Puppet Users] Certificate nightmares

2013-02-08 Thread Nick Fagerlund
If a brand new never-seen-before agent starts up, it goes like this: * Do I have a private key? Nope? Better generate one. * Okay, do I have a certificate? Nope? See if the master already has one for me. This looks like a GET request to /certificate/node name. * If it gets one, it's good to

Re: [Puppet Users] Re: puppet exported resources are not being realized

2013-02-08 Thread Jakov Sosic
On 02/08/2013 08:39 PM, ashrith wrote: Sorry for the confusion, you are right Gary its | | (for collecting exported resources). But for some reason its still not collecting the resource. Is there any way to force puppet to collect the exported resource? Try to remove dash (-) from your tag,

Re: [Puppet Users] Re: RFC: Default File Permissions

2013-02-08 Thread Jakov Sosic
On 02/08/2013 06:46 PM, Josh Cooper wrote: Hi John, On Fri, Feb 8, 2013 at 9:22 AM, jcbollinger john.bollin...@stjude.org wrote: On Thursday, February 7, 2013 7:48:58 PM UTC-6, Josh Cooper wrote: Recently, the issue of copying file modes from remote sources was discussed on the

Re: [Puppet Users] issue storing facts values in mysql on puppet master 3.0.2

2013-02-08 Thread Denmat
Hi, Couple of questions: What version of puppet? What section of the puppet conf do you have those options declared (should be in [master])? Den On 08/02/2013, at 20:24, Heena rush2h...@gmail.com wrote: inventory_active_record -- You received this message because you are subscribed to the

Re: [Puppet Users] Puppet broken in upgrade from 3.0.1 to 3.1.0

2013-02-08 Thread thinkwell
Yes, I do have a hardcoded certificate name in my master section. That's why I my agent cert issue was so unexpected. Oh well, I guess all's well that ends well. I just think I'll disable the repo and not do upgrades for a long time, now that I'm at 3.1. These little glitches make little grey

Re: [Puppet Users] Re: RFC: Default File Permissions

2013-02-08 Thread Keith Burdis
Since it would apply to more than just permissions perhaps 'source_attributes' would be better? - Keith On 9 Feb 2013 01:21, Jakov Sosic jso...@srce.hr wrote: On 02/08/2013 06:46 PM, Josh Cooper wrote: Hi John, On Fri, Feb 8, 2013 at 9:22 AM, jcbollinger john.bollin...@stjude.org wrote: