Commit d937e190 authored by LOUP David's avatar LOUP David

[generators] Fix generator for new kadeploy conf

parent d2aba054
......@@ -29,7 +29,7 @@ remoteops:
cmd: <%= data['remoteops.power_on.very_hard.cmd'] %><%end %>
reboot:
- name: soft
cmd: ssh -q -F /etc/kadeploy3<%= suffix %>/keys/ssh_config root@HOSTNAME_FQDN "if [ -f /bin/systemctl ]; then nohup /bin/systemctl reboot <%= suffix == '' ? '-f ' : '' %>>/dev/null & else nohup /sbin/reboot <%= suffix == '' ? '-f ' : '' %>>/dev/null & fi"
cmd: ssh -q -F /etc/kadeploy3<%= suffix %>/keys/ssh_config root@HOSTNAME_FQDN "if [ -f /bin/systemctl ]; then nohup /bin/systemctl reboot >/dev/null & else nohup /sbin/reboot >/dev/null & fi"
- name: hard
cmd: <%= data['remoteops.reboot.hard.cmd'] ? data['remoteops.reboot.hard.cmd'] : '/usr/local/bin/lanpower -c cycle -m HOSTNAME_SHORT' %><% if data['remoteops.reboot.very_hard.cmd'] %>
- name: very_hard
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment