Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8dd84281 authored by LOUP David's avatar LOUP David
Browse files

[gen/templates] Allows custom commands for soft reboot

parent 057f3e9c
No related branches found
No related tags found
No related merge requests found
Pipeline #114984 passed
...@@ -29,7 +29,7 @@ remoteops: ...@@ -29,7 +29,7 @@ remoteops:
cmd: <%= data['remoteops.power_on.very_hard.cmd'] %><%end %> cmd: <%= data['remoteops.power_on.very_hard.cmd'] %><%end %>
reboot: reboot:
- name: soft - name: soft
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" cmd: <%= data['remoteops.reboot.soft.cmd'] ? data['remoteops.reboot.soft.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 - name: hard
cmd: <%= data['remoteops.reboot.hard.cmd'] ? data['remoteops.reboot.hard.cmd'] : '/usr/bin/lanpower -c cycle -m HOSTNAME_SHORT' %><% if data['remoteops.reboot.very_hard.cmd'] %> cmd: <%= data['remoteops.reboot.hard.cmd'] ? data['remoteops.reboot.hard.cmd'] : '/usr/bin/lanpower -c cycle -m HOSTNAME_SHORT' %><% if data['remoteops.reboot.very_hard.cmd'] %>
- name: very_hard - name: very_hard
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment