--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
We had frequent inexplicable daemon crashes on Solaris, but not on RHEL5 (at least not yet) . Given known issues with memory leakage in older Ruby releases Cron seemed more likely to be reliable. We stuck a random wait in the Cron job to spread load on the master and so far it works well.
I used the ip_to_cron function from
http://projects.puppetlabs.com/projects/1/wiki/Cron_Patterns
afterwards, I just do a sleep random 59, so its also random within the minute.
Ohad
Ohad, was rand_fqdn not sufficient for you?
well.. I did it a long time ago, so I'm not 100% sure, but I think the
main reason was to allow to manage cron entries over an interval, e.g.
3 times an hour, or 7 times a day in a random fashion.
Ohad
If so, you should check to see if any of them are unintentionally doing Bad Things, e.g., modifying global state like environment variables.
-Josh
Mostly stlll run as cron. Though for some instances we run as a daemon.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/itTFPtfZLocJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I assume your Nagios plugin execution timeout must be insanely long? :)
In the past I have considered using Nagios for things other than
monitoring, and likewise using Puppet for things other than
configuration. On both counts I decided it was probably best to set a
boundary and not wilfully abuse these tools, since it's likely to go
wrong sooner or later! In my organisation we use Nagios only to monitor,
and Puppet only to configure.
Have fun!
Jonathan
If you are using foreman, its very easy to query the last puppet
report state, e.g.
curl -k -u $user:$pass https://foreman/hosts/`hostname
-f`/reports/last?format=json |prettify_json.rb
{
"report": {
"reported_at": "2011-10-10T13:03:02Z",
"metrics": {
"time": {
"group": 0.001799,
"class": 0.002389,
"config_retrieval": 2.4686119556427,
"cron": 0.00056,
"schedule": 0.002556,
"service": 0.702501,
"yumrepo": 0.081921,
"total": 4.6954209556427,
"mailalias": 0.000351,
"package": 0.012924,
"exec": 0.336481,
"file": 1.079741,
"filebucket": 0.000226,
"user": 0.00536
},
"events": {
"total": 0
},
"resources": {
"total": 212
},
"changes": {
"total": 0
}
},
"id": 269755,
"summary": "Success",
"host": "super.tlv.redhat.com",
"logs": [
],
"status": {
"failed": 0,
"restarted": 0,
"applied": 0,
"skipped": 0,
"failed_restarts": 0
}
}
}
Ohad
On 10 October 2011 13:05, Jonathan Gazeley <jonathan...@bristol.ac.uk> wrote:
On 08/10/11 21:22, Chris Phillips wrote:
What better way to monitor the puppet runs than by executing that run as
part of the check?
I assume your Nagios execution timeout must be insanely long? :)
In the past I have considered using Nagios for things other than monitoring, and likewise using Puppet for things other than configuration. On both counts I decided it was probably best to set a boundary and not wilfully abuse these tools, since it's likely to go wrong sooner or later! In my organisation we use Nagios only to monitor, and Puppet only to configure.
always done within 30 seconds, and it's not like if it took longer on an occasional rollout it would impact puppet at all, temporarily messy as the monitor results might be.fundamentally though, with cron or puppetd being trivial simple, i'm more than happy to be doing it this way.Chris
Craig
--
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig...@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com
Need help communicating between generations at work to achieve your desired success? Let us help!
Ohad
> On Mon, Oct 10, 2011 at 5:16 PM, Craig White <craig...@ttiltd.com> wrote:
>> that always seems to redirect me to 'login' (even though I am passing the -u username:password)
>>
> I'm guessing you have ssl redirection turned on and you are using http
> instead of https?
----
strange... just tried again and it worked
and an fyi for anyone trying to use nginx/foreman, this seems to work fairly well..
passenger_pre_start https://$SERVER:8142/;
server {
server_name $SERVER;
listen 8142;
root /var/www/foreman/public;
passenger_enabled on;
passenger_min_instances 1;
rails_env production;
rails_spawn_method smart;
passenger_user puppet;
passenger_use_global_queue off;
error_log logs/foreman_error.log error;
access_log logs/foreman_access.log combined;
ssl on;
ssl_certificate /etc/puppet/ssl/certs/$SERVER.pem;
ssl_certificate_key /etc/puppet/ssl/private_keys/$SERVER.pem;
ssl_crl /etc/puppet/ssl/ca/ca_crl.pem;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:!kEDH:+EXP:-SSLv2;
ssl_prefer_server_ciphers on;
ssl_verify_client off;
ssl_verify_depth 1;
ssl_session_cache builtin:1000 shared:SSL:10m;
}
Craig
Most things are ok if you only have 10 servers