| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # == Class: sitescripts::keep_alive_services | |
| 2 # | |
| 3 # Periodically check for and revive dead service instances. | |
| 4 # | |
| 5 class sitescripts::keep_alive_services { | |
|
Wladimir Palant
2015/10/21 11:05:26
I don't think that this belongs in the sitescripts
mathias
2015/10/21 11:44:01
I believe that a separation is not necessary: It i
Wladimir Palant
2015/10/21 12:07:06
That's not how we use sitescripts, and it really i
| |
| 6 | |
| 7 sitescripts::configfragment {'keep_alive_services': | |
| 8 content => template('sitescripts/keep_alive_services.erb'), | |
| 9 } | |
| 10 | |
| 11 cron {'sitescripts::keep_alive_services': | |
| 12 command => 'python -m sitescripts.management.bin.start_services', | |
| 13 environment => concat(hiera('cron::environment', []), [ | |
| 14 'PYTHONPATH=/opt/sitescripts', | |
| 15 ]), | |
| 16 require => Sitescripts::Configfragment['keep_alive_services'], | |
| 17 } | |
| 18 } | |
| OLD | NEW |