Attention une mise à jour du service Gitlab va être effectuée le mardi 14 décembre entre 13h30 et 14h00. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes.

kadeployg5k.conf.erb 4 KB
Newer Older
1 2 3 4
#
# This file was generated by reference-repository.git/generators/puppet/<%= File.basename($PROGRAM_NAME) %>
# Do not edit this file by hand. Your changes will be overwritten.
#
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
---
partitioning:
  block_device: /dev/sda
  script: /etc/kadeploy3<%= suffix %>/<%= ! data['partitioning.script'].nil? ? data['partitioning.script'] : "partitioning.sh" %>
  partitions:
    tmp: 5
    prod: 2
    deploy: 3
    swap: 1
  <% if ! data['partitioning.disable_swap'].nil? %>disable_swap: <%= data['partitioning.disable_swap'] %><% end %>
timeouts:
  reboot: <%= data['reboot.timeout'] %>
  kexec: <%= data['reboot.kexec'] %>
remoteops:
  console:
  - name: soft
21
    cmd: <%= data['remoteops.console.soft.cmd'] ? data['remoteops.console.soft.cmd'] : '/usr/bin/conman -f -d conman HOSTNAME_SHORT' %>
22 23 24 25 26 27 28 29 30 31
  power_status:
  - name: soft
    cmd: <%= data['remoteops.power_status.soft.cmd'] ? data['remoteops.power_status.soft.cmd'] : '/usr/local/bin/lanpower -m HOSTNAME_FQDN -s' %>
  power_on:
  - name: hard
    cmd: <%= data['remoteops.power_on.hard.cmd'] ? data['remoteops.power_on.hard.cmd'] : '/usr/local/bin/lanpower -c on -m HOSTNAME_SHORT' %><% if data['remoteops.power_on.very_hard.cmd'] %>
  - name: very_hard
    cmd: <%= data['remoteops.power_on.very_hard.cmd'] %><%end %>
  reboot:
  - name: soft
32
    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"
33 34 35 36 37 38 39 40 41 42 43 44 45
  - 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
    cmd: <%= data['remoteops.reboot.very_hard.cmd'] %><% end %>
  power_off:
  - name: soft
    cmd: ssh -q -F /etc/kadeploy3<%= suffix %>/keys/ssh_config root@HOSTNAME_FQDN "nohup /sbin/poweroff &>/dev/null &"
  - name: hard
    cmd: <%= data['remoteops.power_off.hard.cmd'] ? data['remoteops.power_off.hard.cmd'] : '/usr/local/bin/lanpower -c off -m HOSTNAME_SHORT' %><% if data['remoteops.power_off.very_hard.cmd'] %>
  - name: very_hard
    cmd: <%= data['remoteops.power_off.very_hard.cmd'] %><%end %>
boot:
  install_bootloader: /etc/kadeploy3<%= suffix %>/install_grub2.sh
46
  kernels:<%
47 48 49 50
kernel_prod = 'kernels/kadeploy3-deploy-kernel-jessie.vmlinuz'
initrd_prod = 'kernels/kadeploy3-deploy-kernel-jessie.initrd.img'
kernel_dev  = 'kernels/kadeploy3-deploy-kernel-jessie.vmlinuz'
initrd_dev  = 'kernels/kadeploy3-deploy-kernel-jessie.initrd.img'%>
51 52 53
    deploy:<%
    if !data['deploy.drivers'].nil? %>
      drivers: <%= data['deploy.drivers'] %><% end %>
DELABROYE Dimitri's avatar
DELABROYE Dimitri committed
54
      vmlinuz: <%= data['deploy.vmlinuz'] ? data['deploy.vmlinuz'] :
55
        suffix == '' ? kernel_prod : kernel_dev %>
DELABROYE Dimitri's avatar
DELABROYE Dimitri committed
56
      initrd: <%= data['deploy.initrd'] ? data['deploy.initrd'] :
57
        suffix == '' ? initrd_prod : initrd_dev %>
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
      params: <%= data['deploy.params'] %>
      supported_fs: ext2, ext3, ext4<%
   if !data['nfsroot.params'].nil? %>
    nfsroot:
      params: <%= data['nfsroot.params'] %>
      vmlinuz: kernels/deploy-vmlinuz-2.6.31.4-nfsroot<% end %>
    user:
      params: <%= data['user.params'] %>
postinstall:
  files:
  - script: none
    format: tgz
    file:  /grid5000/preinstalls/preinstall-<%= cluster_uid %>.tgz
pxe:
  headers:
    dhcp: &id001 |-
      PROMPT 1
      SERIAL <%= data['dhcp.serial'] %>
      TIMEOUT 50
    networkboot: *id001
    localboot: *id001
automata:
  macrosteps:
    SetDeploymentEnv:
    - timeout: <%= data['deployment.timeout'] %>
      type: Untrusted
      retries: <%= data['deployment.retries'].nil? ? 1 : data['deployment.retries'] %>
    BroadcastEnv:
    - timeout: <%= data['broadcast.timeout'] %>
      type: Kascade
      retries: <%= data['broadcast.retries'].nil? ? 1 : data['broadcast.retries'] %>
    BootNewEnv:
    - timeout: <%= data['boot.timeout.0'] %>
      type: <%= data['boot.type.0'].nil? ? 'Kexec' : data['boot.type.0'] %>
      retries: 0
    - timeout: <%= data['boot.timeout.1'] %>
      type: HardReboot
      retries: 0