Sha256: 907b220be8998d939eba7dee179c8d82a3b1c378764757519e2310820e3c0e37
Contents?: true
Size: 638 Bytes
Versions: 5
Compression:
Stored size: 638 Bytes
Contents
<%# kind: job_template name: Ensure Services - SSH Default job_category: Services description_format: 'Ensure Services' feature: ensure_services provider_type: SSH %> <% if @host.operatingsystem.family == "Redhat" && @host.operatingsystem.major.to_i > 6 %> while true; do state=$(systemctl is-system-running) case $state in initializing | starting) sleep 5 ;; maintenance | stopping | offline) echo "System is $state" exit 1 ;; running) echo "All services running." exit 0 ;; *) systemctl list-units --failed exit 1 ;; esac done <% else %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems