RE: [Puppet Users] puppet agent / master version compatibility?

2013-07-16 Thread Bernd Adamowicz
Never run an agent with a higher version than the master. This will not work. At least not running a 3.x agent against a 2.x master. Bernd From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Axel Bock Sent: Montag, 15. Juli 2013 14:36 To:

RE: [Puppet Users] exec command

2012-12-11 Thread Bernd Adamowicz
First, put the whole line in single quotes in order to prevent Puppet from trying to resolve all the dollar signs as variables. Then simply escape all quotes within your string. I didn't test it, but this should work: line = 'PROMPT_COMMAND=\'history -a (tee -a ~/.bash_history | logger -t

RE: [Puppet Users] Removing nodes from puppetdb

2012-11-30 Thread Bernd Adamowicz
And as an alternative you also may delete the host and its resources directly inside the database. It's described here: http://www.bernd-adamowicz.de/209/removing-hosts-from-stored-configurations/. Bernd From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of

RE: [Puppet Users] Is new puppet node compatible with old puppetmaster ?

2012-11-29 Thread Bernd Adamowicz
No. Never have a higher version of Puppet on your agents than on your master. Bernd From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Balasubramaniam Natarajan Sent: Donnerstag, 29. November 2012 16:28 To: puppet-users@googlegroups.com Subject: [Puppet

RE: [Puppet Users] No support for http method HEAD

2012-11-12 Thread Bernd Adamowicz
The versions might be the reason. Never run agents with a higher version than the master. Try upgrading your master or downgrading your agent. Most presumably this will solve the problem. If not, just get back to the list. Bernd -Original Message- From: puppet-users@googlegroups.com

RE: [Puppet Users] Config Sync

2012-11-07 Thread Bernd Adamowicz
The Puppet cookbook is always a good starting point: http://puppetcookbook.com/. And for your particular problem this is the real world example: http://puppetcookbook.com/posts/restart-a-service-when-a-file-changes.html Bernd From: puppet-users@googlegroups.com

RE: [Puppet Users] Problem using exported resources with tag = $variable

2012-10-31 Thread Bernd Adamowicz
This could be a scope issue. You may want to try $::variable or some other prefix depending on where this variable actually is defined. See: http://docs.puppetlabs.com/guides/scope_and_puppet.html Bernd From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of

RE: [Puppet Users] Can Puppet alert about dead nodes?

2012-10-31 Thread Bernd Adamowicz
I provided some posts about the health of Puppet agents some time ago. They might help too. The first one is found here: http://www.bernd-adamowicz.de/80/monitoring-puppet-part-1/. The others are linked. Bernd -Original Message- From: puppet-users@googlegroups.com

RE: [Puppet Users] Automate adding new host to nagios server?

2012-10-11 Thread Bernd Adamowicz
See: * http://docs.puppetlabs.com/guides/exported_resources.html or * http://www.bernd-adamowicz.de/12/puppet-stored-configurations-and-icinga/ Cheers, Bernd -Original Message- From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Brent Clark Sent:

AW: [Puppet Users] How to change node hostname?

2012-09-25 Thread Bernd Adamowicz
On master use: puppetca --clean your.host.name On the agent I use this to delete all keys and certificates. find /var/lib/puppet -name * -type f -exec rm -f {} \; There might be a more elegant solution. Regards, Bernd Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im

Re: [Puppet Users] AW: Issue with large directory content

2012-09-17 Thread Bernd Adamowicz
On 09/14/2012 03:09 PM, jcbollinger wrote: On Friday, September 14, 2012 6:14:37 AM UTC-5, badamowicz wrote: The other questions from all of you and finally Den's question, which was: Are you trying to set any permissions inside that directory elsewhere in the manifest? made

Re: [Puppet Users] AW: Issue with large directory content

2012-09-13 Thread Bernd Adamowicz
manage the checkouts of git or svn with puppet as well. I wrote a few tricky resources for this a while ago and they are infinitely handy. On Wed, Sep 12, 2012 at 04:08:13PM +0200, Bernd Adamowicz wrote: No ideas at all? -Ursprüngliche Nachricht- Von: Bernd Adamowicz Gesendet

AW: [Puppet Users] AW: Issue with large directory content

2012-09-13 Thread Bernd Adamowicz
: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von Bernd Adamowicz Gesendet: Donnerstag, 13. September 2012 10:46 An: puppet-users@googlegroups.com Betreff: Re: [Puppet Users] AW: Issue with large directory content Thanks for your answers so far. But beware

WG: [Puppet Users] AW: Issue with large directory content

2012-09-13 Thread Bernd Adamowicz
: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von Bernd Adamowicz Gesendet: Donnerstag, 13. September 2012 14:45 An: 'puppet-users@googlegroups.com' Betreff: AW: [Puppet Users] AW: Issue with large directory content This keeps being weird. Simply thought to wait

[Puppet Users] AW: Issue with large directory content

2012-09-12 Thread Bernd Adamowicz
No ideas at all? -Ursprüngliche Nachricht- Von: Bernd Adamowicz Gesendet: Dienstag, 11. September 2012 16:16 An: puppet-users@googlegroups.com Betreff: Issue with large directory content Hi all, I got this directory configuration: file { ${codebase_ng

[Puppet Users] Issue with large directory content

2012-09-11 Thread Bernd Adamowicz
Hi all, I got this directory configuration: file { ${codebase_ng::repository_mount}/${sonatype_work_dir}: ensure = directory, owner = $nexus_user, group = $nexus_group, mode= 0755, recurse = false,

RE: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Bernd Adamowicz
Did you ever try Gepetto (https://github.com/cloudsmith/geppetto)? At least in the coming version (3.0) will support Puppet 3. I really do recommend Gepetto since I've been working with it for more than a year now and it helped me a lot creating error free code. You should give it a try. There

RE: [Puppet Users] How to syntax debug in puppet 3?

2012-08-24 Thread Bernd Adamowicz
Hi Sandra, Yes, you may either use it as an Eclipse plugin or as a standalone program. There's no link to vi or Emacs at all. I think I know what you mean. My absolutely favorite editor is vim. Normally I don't need anything else but the command line and vim. However, when it's about creating

AW: [Puppet Users] Switching agent to another environment does not work

2012-08-09 Thread Bernd Adamowicz
, Bernd Adamowicz bernd.adamow...@esailors.de wrote: Tried to attach one of my agents to another environment with a command like this: puppet agent --verbose --debug --server my.puppet.master --environment my_new_env --no-daemonize But it still receives the old catalog of the old

AW: [Puppet Users] Using regex in Puppet node definition

2012-08-09 Thread Bernd Adamowicz
I'm not an expert in regular expression. But if I run into problems like this one, I always turn to this page: http://www.regexplanet.com/advanced/java/index.html Has always helped me. Bernd -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet-

[Puppet Users] Switching agent to another environment does not work

2012-08-08 Thread Bernd Adamowicz
Tried to attach one of my agents to another environment with a command like this: puppet agent --verbose --debug --server my.puppet.master --environment my_new_env --no-daemonize But it still receives the old catalog of the old environment. No errors or warnings in log files both on master

AW: [Puppet Users] What is the intention of thin_storeconfigs?

2012-07-16 Thread Bernd Adamowicz
: Freitag, 13. Juli 2012 11:08 An: puppet-users@googlegroups.com Betreff: Re: [Puppet Users] What is the intention of thin_storeconfigs? On 12/07/12 10:29, Bernd Adamowicz wrote: I started doing some experiments with the configuration option 'thin_storeconfigs=true' by adding this option

AW: [Puppet Users] How to use thin_storeconfigs

2012-07-13 Thread Bernd Adamowicz
thin_storeconfigs On Fri, 2012-07-06 at 09:43 +0200, Bernd Adamowicz wrote: Which is the right way to use thin_storeconfigs? Currently I'm about to try this: storeconfigs = true thin_storeconfigs = true Or should it be only a single line containing the 'thin_storeconfigs' directive

[Puppet Users] AW: What is the intention of thin_storeconfigs?

2012-07-13 Thread Bernd Adamowicz
Thanks to all who gave feedback on this topic. I will have a deeper look at this issue throughout the next days and weeks and will share my experience then. Bernd -Ursprüngliche Nachricht- Von: Bernd Adamowicz Gesendet: Donnerstag, 12. Juli 2012 10:29 An: 'puppet-users

[Puppet Users] What is the intention of thin_storeconfigs?

2012-07-12 Thread Bernd Adamowicz
I started doing some experiments with the configuration option 'thin_storeconfigs=true' by adding this option to one of my Puppet masters. However, I could not determine any change in behavior. I expected to have the resources collected faster, but Puppet still takes some 15min to do the job.

AW: [Puppet Users] Puppet freelancers?

2012-07-09 Thread Bernd Adamowicz
Searching LinkedIn should be a good starting point. Where are you located (US, Europe, ..)? Bernd Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von JeremyCampbell Gesendet: Samstag, 7. Juli 2012 19:06 An: puppet-users@googlegroups.com Betreff: [Puppet

[Puppet Users] How to use thin_storeconfigs

2012-07-06 Thread Bernd Adamowicz
Which is the right way to use thin_storeconfigs? Currently I'm about to try this: storeconfigs = true thin_storeconfigs = true Or should it be only a single line containing the 'thin_storeconfigs' directive without 'storeconfigs=true'? Thanks Bernd -- You received this message because you

AW: [Puppet Users] OT: Monitoring solutions

2012-06-25 Thread Bernd Adamowicz
We got a totally integrated solution made up with Puppet, Icinga and stored resources. When integrating a new host into Puppet, one just has to wait until it gets monitored in Icinga - no more work to do. Some details are found here: http://www.bernd-adamowicz.de/tag/monitoring/ Bernd

AW: AW: [Puppet Users] OT: Monitoring solutions

2012-06-25 Thread Bernd Adamowicz
it's based on Nagios. Overall you are pleased with the solution? Sent from my iPhone On Jun 25, 2012, at 7:45 AM, Bernd Adamowicz bernd.adamow...@esailors.de wrote: We got a totally integrated solution made up with Puppet, Icinga and stored resources. When integrating a new host

AW: AW: [Puppet Users] OT: Monitoring solutions

2012-06-25 Thread Bernd Adamowicz
@googlegroups.com [mailto:puppet- us...@googlegroups.com] Im Auftrag von Alexander Bien Gesendet: Montag, 25. Juni 2012 15:10 An: puppet-users@googlegroups.com Betreff: Re: AW: [Puppet Users] OT: Monitoring solutions On 25.06.2012 14:45, Bernd Adamowicz wrote: We got a totally integrated solution made up

AW: AW: [Puppet Users] OT: Monitoring solutions

2012-06-25 Thread Bernd Adamowicz
k...@mocker.orgmailto:k...@mocker.org wrote: Curious if Icinga has integrated graphing or if it's an add-on since it's based on Nagios. Overall you are pleased with the solution? Sent from my iPhone On Jun 25, 2012, at 7:45 AM, Bernd Adamowicz bernd.adamow...@esailors.demailto:bernd.adamow

AW: [Puppet Users] Service Puppetmaster being monitored by Nagios

2012-06-19 Thread Bernd Adamowicz
This might give another starting point: * http://www.bernd-adamowicz.de/180/monitoring-puppet-part-3/ * http://www.bernd-adamowicz.de/85/synchronizing-puppet-generated-icinga-configuration/ Essentially the first link might be helpful. Bernd Von:

AW: [Puppet Users] Start puppet master

2012-06-11 Thread Bernd Adamowicz
Obviously the user which is executing the Puppet start command is not allowed to access the directory '/var/lib/puppet/run/' or the file '/var/lib/puppet/run/pidlock.rb'. Are you starting the master as root? If not, you should. If the problem persists, check the access rights and permissions of

AW: [Puppet Users] Re: What is Could not intern from pson error??

2012-05-07 Thread Bernd Adamowicz
I cannot help with this problem. But I'm facing the same issue from the very first time I'm using Puppet. It happens only on my Puppet master boxes. I'm running Puppet 2.6.12 on RHEL 5.5. If I can provide more information to help solving this issue, just let me know. Bernd Von:

AW: [Puppet Users] distributing updates to multiple puppet masters (Subversion)

2012-05-03 Thread Bernd Adamowicz
Yes, actually each of my masters has its own SVN-URL checked out with the appropriate configuration. A cron job is doing updates in 5 minute intervals. Quite easy and works very reliable. Bernd -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet-

AW: [Puppet Users] Puppet logging

2012-05-03 Thread Bernd Adamowicz
You should try debug = true verbose = true in your agent and/or master configurations. Some more hints on monitoring and on Nagios/Icinga checks are found here: http://www.bernd-adamowicz.de/180/monitoring-puppet-part-3/ Bernd Von:

AW: [Puppet Users] Undo

2012-04-18 Thread Bernd Adamowicz
I'm not aware of any undo functions in Puppet. I think the only thing you can do is do create a proper user configuration for your Suse and Solaris boxes and let Puppet fix it. Bernd Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von root Gesendet:

[Puppet Users] WG: Could not send report: Error 400 on SERVER: execution expired

2012-04-18 Thread Bernd Adamowicz
No ideas? -Ursprüngliche Nachricht- Von: Bernd Adamowicz Gesendet: Montag, 16. April 2012 13:32 An: 'puppet-users@googlegroups.com' Betreff: Could not send report: Error 400 on SERVER: execution expired Hi all! One of my Puppet masters has to compile some 3800 stored

[Puppet Users] Could not send report: Error 400 on SERVER: execution expired

2012-04-16 Thread Bernd Adamowicz
Hi all! One of my Puppet masters has to compile some 3800 stored configurations which takes a very long time to proceed. Example log: Apr 16 13:17:13 mymaster puppet-agent[15249]: Finished catalog run in 954.58 seconds Apr 16 13:18:35 mymaster puppet-master[11422]: execution expired Apr 16

AW: [Puppet Users] Error 400 on SERVER: Duplicate definition

2012-04-12 Thread Bernd Adamowicz
Try to change * exec { 'chk_vomsdir': to something like * exec { chk_vomsdir_${dir}: and * require = Exec[ 'chk_vomsdir' ]; to * require = Exec[chk_vomsdir_${dir}]; This should make everything unique. Bernd -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com

AW: [Puppet Users] Re: Error 400 on SERVER: Duplicate definition

2012-04-12 Thread Bernd Adamowicz
' ]; } } --- I don't get any error at all. Cheers, San On Apr 12, 2:55 pm, Bernd Adamowicz bernd.adamow...@esailors.de wrote: Try to change * exec { 'chk_vomsdir': to something like * exec { chk_vomsdir_${dir}: and * require = Exec

AW: [Puppet Users] Backup/restore certificates after new puppetmaster installation

2012-03-22 Thread Bernd Adamowicz
Concerning backup: I have everything below '/var/lib/puppet' backed up regularly on my Puppet masters. This will also contain all client certificates. Concerning client certificates: Are the clients still requesting? What does 'puppetca --list' say? It might be possible to simply re-accepting

AW: [Puppet Users] How to handle multiple definitions of the same package in multiple included modules?

2012-03-19 Thread Bernd Adamowicz
You need virtual resources: 1. Define package A in a virtual way: @package { A : ensure = 'present', } 2. Then realize it wherever needed: class module2::app2 { realize(Package[A]) # your stuff here... } Cheers, Bernd

AW: [Puppet Users] Can't send certificate request

2012-03-13 Thread Bernd Adamowicz
Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von Mike Gesendet: Dienstag, 13. März 2012 15:04 An: puppet-users@googlegroups.com Betreff: [Puppet Users] Can't send certificate request I can't get a new client working with my puppet master. When I try to

AW: [Puppet Users] Can't send certificate request

2012-03-13 Thread Bernd Adamowicz
Try puppet agent --verbose --debug --server your.server --environment your_env --waitforcert 60 --no-daemonize Bernd Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von Bernd Adamowicz Gesendet: Dienstag, 13. März 2012 15:54 An: 'puppet-users

AW: [Puppet Users] Distributing file over puppet client

2012-03-07 Thread Bernd Adamowicz
That's basically OK, but try source = puppet:///files/etc/sudoers instead. This will link automatically to your local host's Puppet master. If you are already working with modules, you should work with source = puppet:///modules/yourmodulename/etc/sudoers Your file 'sudoers' must then be

AW: [Puppet Users] Re: Distributing file over puppet client

2012-03-07 Thread Bernd Adamowicz
/site.pp:33 notice: Finished catalog run in 0.47 seconds. Can you suggest me some steps where i can copy some files to puppet client from start.?? Thanx Niraj On Mar 7, 5:39 am, Bernd Adamowicz bernd.adamow...@esailors.de wrote: That's basically OK, but try source = puppet

AW: [Puppet Users] Announcement: Geppetto 2.1.2 released

2012-02-03 Thread Bernd Adamowicz
Hi Henrik, looks great! Discovered lots of warnings and even an error (which Puppet did not complain about) after upgrading. Fixed all my Puppet code now and I think this is another good step in improving my overall code quality. Thanks for the work. Looking forward for new releases. Bernd

AW: [Puppet Users] installing Nagios client with selinux enabled

2012-01-06 Thread Bernd Adamowicz
I'm not sure, but you could try changing the SELinux stuff with Puppet configuration instead of 'chcon'. I got a little description here: http://berndadamowicz.wordpress.com/2011/12/16/nrpe-and-selinux/. Be aware that the SELinux attributes might be changed back after Puppet has applied the

AW: [Puppet Users] Puppetserver error

2011-12-29 Thread Bernd Adamowicz
I'm pretty sure that, besides the other answers already provided, your main problem is the wrong user for your Puppet configuration. It should be user 'puppet' and not 'root'. That's how '/etc/puppet' should look like: drwxr-xr-x 5 puppet puppet 4.0K Dec 12 17:48 . drwxr-xr-x 79 root root

AW: [Puppet Users] Hosting the user password only, not the .bashrc and -bash_profile files

2011-12-19 Thread Bernd Adamowicz
Are you sure Puppet does change your bash-files? I got the same configuration a lot of times (Puppet 2.6.6 and 2.6.12) and did not encounter such behavior. Can you give more details? Bernd -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet-

AW: [Puppet Users] filtering exported resources...

2011-12-16 Thread Bernd Adamowicz
I'm not quite sure, but my experience is that as soon as you remove the @@-resources from your node configuration, they will also be dropped from the database by the Puppet master. You may want to check with some select-statements if this is really true. I once deleted some resources manually

AW: [Puppet Users] Re: How to make partial change to a line??

2011-12-01 Thread Bernd Adamowicz
Augeas? -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet- us...@googlegroups.com] Im Auftrag von Sans Gesendet: Donnerstag, 1. Dezember 2011 15:54 An: Puppet Users Betreff: [Puppet Users] Re: How to make partial change to a line?? Does anyone have any

AW: [Puppet Users] storeconfgs not initializing database

2011-11-30 Thread Bernd Adamowicz
] storeconfgs not initializing database Hi Bernd, I've tried with and without dbsocket being set but it has no affect. -- Later, Darin On Wed, Nov 30, 2011 at 3:53 AM, Bernd Adamowicz bernd.adamow...@esailors.demailto:bernd.adamow...@esailors.de wrote: Did you try uncommenting the 'dbsocket' line

AW: [Puppet Users] Puppet Setup Difficulty With SuSE

2011-11-29 Thread Bernd Adamowicz
I recently set up our CI system using two Puppet masters and some 50 Puppet agents. If you follow some installation instruction it will not take longer than a day for having set up your first Puppet master and some agents. Once this is done the actual work starts: * create/configure the Puppet

AW: [Puppet Users] Recommended/Best Practise directory structure for a multi domain setup

2011-11-28 Thread Bernd Adamowicz
We have a single Puppet master for every data center. Every master has its own Subversion branch containing the appropriate Puppet configuration along with the environments needed. It's quite an easy concept which works very well for us and which also allows managing configurations between the

[Puppet Users] Crashed my Puppet master?

2011-11-28 Thread Bernd Adamowicz
I made a really bad mistake today by deleting all files below /var/lib/puppet on one of my Puppet masters. (I simply issued a command in the wrong terminal window.) A first analysis showed that all SSL certificates from the clients have gone (puppetca --list --all). However the clients are

AW: [Puppet Users] Crashed my Puppet master?

2011-11-28 Thread Bernd Adamowicz
and restored the ssl dir from backup. No problem while restarting kind regards, Martin 2011/11/28 Bernd Adamowicz bernd.adamow...@esailors.de: I made a really bad mistake today by deleting all files below /var/lib/puppet on one of my Puppet masters. (I simply issued a command

[Puppet Users] Different cron behaviour?

2011-11-22 Thread Bernd Adamowicz
Is there anything special about the cron resource? I have a configuration like this: cron { sync-stored-config: command = /some/command.sh, user = icinga, hour = *, minute = 15,45, } But the 'minute' field produces this error: 8955 Nov 22 14:30:11 bob puppet-agent[7950]:

AW: [Puppet Users] Different cron behaviour?

2011-11-22 Thread Bernd Adamowicz
behaviour? On Tue, Nov 22, 2011 at 03:48:31PM +0100, Bernd Adamowicz wrote: Is there anything special about the cron resource? I have a configuration like this: cron { sync-stored-config: command = /some/command.sh, user = icinga, hour = *, minute = 15,45

AW: [Puppet Users] Collecting ressources for different hosts

2011-11-22 Thread Bernd Adamowicz
I've never used the file resource along with stored configurations. But the first thing I would do is to dig into the database the configurations are stored. Something like this: [root@myhost ~]# mysql -u puppet -p Enter password: mysql use puppet mysql select title,host_id from resources

AW: [Puppet Users] Dashboard not working (406 Not Acceptable)

2011-11-21 Thread Bernd Adamowicz
Just an idea: Seems, Puppet is using the URL http://localhost/reports/upload though you have specified 'reporturl = http://localhost:3000/reports/upload'. Is it possible that there is some command line argument overriding your puppet.conf? However I don't use the 'reporturl' argument at all.

WG: Re: [Puppet Users] AW: nagios_service does not replace target file

2011-11-21 Thread Bernd Adamowicz
the Puppet agent. If anyone is interested in details, see: http://wp.me/p1RukY-1n. Thanks for helping, Gabriel! Bernd -Ursprüngliche Nachricht- Von: Bernd Adamowicz [mailto:i...@bernd-adamowicz.de] Gesendet: Donnerstag, 17. November 2011 22:36 An: Bernd Adamowicz Betreff: Fwd: Re: [Puppet

Re: [Puppet Users] AW: nagios_service does not replace target file

2011-11-17 Thread Bernd Adamowicz
the permissions. however, there's no require link between both. what happens if you try and remove the require link from Nagios_XYZ - ${baseconfigdir}/${conf_file_srvs} ? On 11-11-16 05:57 PM, Bernd Adamowicz wrote: Hi all, I'm a little bit confused that I did not get a single reply from the list

Re: WG: [Puppet Users] Naginator and Puppet on different hosts

2011-11-17 Thread Bernd Adamowicz
. So I hope it's OK. Tell me, if not. Bernd On Mon, 31 Oct 2011 13:28:37 +0100, Bernd Adamowicz bernd.adamow...@esailors.de wrote: -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet- us...@googlegroups.com] Im Auftrag von Bernd Adamowicz Gesendet: Donnerstag

Re: [Puppet Users] AW: nagios_service does not replace target file

2011-11-17 Thread Bernd Adamowicz
:02 +0100, Gabriel Filion lelu...@gmail.com wrote: On 11-11-17 04:04 AM, Bernd Adamowicz wrote: Removing the 'require' link leads back to the very first problem I've encountered: The files are not regenerated even thought the stored configurations inside the MySQL database changed (I did check

[Puppet Users] AW: nagios_service does not replace target file

2011-11-16 Thread Bernd Adamowicz
-Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet- us...@googlegroups.com] Im Auftrag von Bernd Adamowicz Gesendet: Mittwoch, 9. November 2011 13:44 An: 'puppet-users@googlegroups.com' Betreff: [Puppet Users] AW: nagios_service does not replace target file Now I tried

AW: [Puppet Users] puppet client can not pull configurat​ion from puppetmast​er

2011-11-10 Thread Bernd Adamowicz
Can you be a little bit more precise please? What are you doing exactly, which commands? What is not working? Any error messages in syslog? Bernd -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet- us...@googlegroups.com] Im Auftrag von Javid Mehraban

[Puppet Users] AW: nagios_service does not replace target file

2011-11-10 Thread Bernd Adamowicz
the only one ever running into this problem. So I'd like to ask this list and mainly the Puppet guys if you think this is worth filing a bug? Thanks Bernd -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet- us...@googlegroups.com] Im Auftrag von Bernd Adamowicz

[Puppet Users] nagios_service does not replace target file

2011-11-08 Thread Bernd Adamowicz
Hi all, I'm using Puppet 2.6.6 on both clients and master along with stored configurations. My clients provide Nagios configurations like this example: @@nagios_service { check_ping_${hostname}: check_command = check_ping!100.0,20%!500.0,60%, use = generic-service,

AW: [Puppet Users] Restore Storconfig Data

2011-10-20 Thread Bernd Adamowicz
If you really dropped the database you have to recreate it before the first Puppet run: 05mysql create database puppet; 06 Query OK, 1 row affected (0.00 sec) 07 08 mysql grant all privileges on puppet.* to puppet@localhost identified by 'xxx'; 09 Query OK, 0 rows

[Puppet Users] AW: How best to monitor puppet?

2011-10-04 Thread Bernd Adamowicz
We use the basic checks for any Unix machine along with special checks for running Puppet master and client process where appropriate. A service which uses NRPE and a check_procs call on the Puppet boxes like these two examples works fine for us:

[Puppet Users] Naginator and Puppet on different hosts

2011-09-29 Thread Bernd Adamowicz
We were using Naginator resources like nagios_host, etc. along with stored configurations and exported resources. Worked pretty well. However we have to separate the Puppet master and the Icinga (Nagios) server. They will be on different machines from now on. Are there any best practices for

AW: [Puppet Users] Naginator and Puppet on different hosts

2011-09-29 Thread Bernd Adamowicz
. On Sep 29, 2011, at 8:47 AM, Bernd Adamowicz wrote: We were using Naginator resources like nagios_host, etc. along with stored configurations and exported resources. Worked pretty well. However we have to separate the Puppet master and the Icinga (Nagios) server. They will be on different

AW: [Puppet Users] Export variables into other classes

2011-09-22 Thread Bernd Adamowicz
I'm not quite sure, but maybe exported resources could help. Some introductions are found here: * http://docs.puppetlabs.com/guides/exported_resources.html * http://blog.gurski.org/index.php/2010/01/28/automatic-monitoring-with-puppet-and-nagios/ They also cover the Nagios issue. Cheers Bernd

AW: [Puppet Users] Dashboard - Pending Tasks

2011-09-13 Thread Bernd Adamowicz
Yes, I was simply missing the worker process. Thanks, Craig and Michael! -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet- us...@googlegroups.com] Im Auftrag von Craig White Gesendet: Montag, 12. September 2011 22:00 An: puppet-users@googlegroups.com

AW: [Puppet Users] Re: Puppet not pushing file

2011-09-13 Thread Bernd Adamowicz
Try this: node client { file { /home/admin/puppet/jck.txt: owner = admin, group = admin, mode = 0744, source = puppet:///test/jck.txt, } Beware the colon and the commas. (Didn't you get any error messages in your log

AW: [Puppet Users] Re: Puppet not pushing file

2011-09-13 Thread Bernd Adamowicz
Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im Auftrag von John Kennedy Gesendet: Dienstag, 13. September 2011 13:43 An: puppet-users@googlegroups.com Betreff: Re: [Puppet Users] Re: Puppet not pushing file On Tue, Sep 13, 2011 at 12:27, Bernd Adamowicz

[Puppet Users] Dashboard - Pending Tasks

2011-09-12 Thread Bernd Adamowicz
Hi all! After installing and configuring puppet-dashboard-1.2.1-0.1rc1.el6.noarch.rpm following the installation instruction given in the Pro Puppet book, everything seems fine. (No errors during installation and configuration.) However Dashboard only shows me that there are 'x pending tasks'

[Puppet Users] Avoid user creation/deletion possible?

2011-09-08 Thread Bernd Adamowicz
Hi all, is there a way to avoid changing the state (present/absent) of a user? In my case I just want to do a kind of 'check' if the user is present. If so, I will do some file-resource stuff on him. If not, nothing should be done at all. Example: # create the user resource user { 'someuser':

[Puppet Users] AW: Avoid user creation/deletion possible?

2011-09-08 Thread Bernd Adamowicz
Sorry, the file resource should of course be: # copy file if user exists # do nothing if not file { /home/someuser/.bashrc: require = User[someuser], ... } -Ursprüngliche Nachricht- Von: puppet-users@googlegroups.com [mailto:puppet- us...@googlegroups.com] Im Auftrag von Bernd

AW: [Puppet Users] Re: Avoid user creation/deletion possible?

2011-09-08 Thread Bernd Adamowicz
, Bernd Adamowicz bernd.adamow...@esailors.de wrote: Hi all, is there a way to avoid changing the state (present/absent) of a user? In my case I just want to do a kind of 'check' if the user is present. If so, I will do some file-resource stuff on him. If not, nothing should be done at all

AW: [Puppet Users] Re: complex data types in puppet facter

2010-05-04 Thread Bernd Adamowicz
Ok, found the answer myself. Just installed 25.5-rc2 on client and server and tried it. But same error message when parsing the template. Is there an elegant way to use complex facts in puppet's erb templates? Puppet will support hashes in the next major version (Rwolf), although I am

[Puppet Users] Some advice on using hashes in ERB templates needed

2010-04-30 Thread Bernd Adamowicz
Hi all, I'm working with Puppet version 0.25.4 and as far as I have read in this list it's not possible to access complex data structures from within an ERB template, instead serializing is needed. Due to my lack of Ruby knowledge I didn't find the right solution for this problem: Given this

AW: [Puppet Users] Resolving variables when using templates

2010-04-27 Thread Bernd Adamowicz
Dan, I think what you suggested seems to be the right way. I had a deeper look at external node classifiers as well as on working with different environments inside Puppet. I have not been aware of these concepts but will start now to create a proof of concept for our systems. Thanks all for

AW: [Puppet Users] Setting Variable in Class or Node and Using in Included Module

2010-04-27 Thread Bernd Adamowicz
Sounds pretty much like the problem I posted yesterday. You may have a look at it here: http://groups.google.com/group/puppet-users/browse_thread/thread/336a6c1d941acca8/b50faf7711b7bf41?hl=enlnk=gstq=adamowicz#b50faf7711b7bf41. It seems that external node definitions and different environments

[Puppet Users] Resolving variables when using templates

2010-04-26 Thread Bernd Adamowicz
Hi all, given these two classes inside the file '/etc/puppet/modules/templates_eval/manifests/init.pp': 53 class templates_eval::providevars { 54 55 $hibernate_connection_dialect=org.hibernate.dialect.Oracle10gDialect 56 } 57 58 class