daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Jun 30th, 2015 145 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #cloud-config
  2. debconf_selections:
  3.  maas: |
  4.  {{for line in str(curtin_preseed).splitlines()}}
  5.   {{line}}
  6.   {{endfor}}
  7. {{if third_party_drivers and driver}}
  8. early_commands:
  9.   {{py: key_string = ''.join(['\\x%x' % x for x in map(ord, driver['key_binary'])])}}
  10.   driver_00_get_key: /bin/echo -en '{{key_string}}' > /tmp/maas-{{driver['package']}}.gpg
  11.   driver_01_add_key: ["apt-key", "add", "/tmp/maas-{{driver['package']}}.gpg"]
  12.   driver_02_add: ["add-apt-repository", "-y", "deb {{driver['repository']}} {{node.get_distro_series()}} main"]
  13.   driver_03_update_install: ["sh", "-c", "apt-get update --quiet && apt-get --assume-yes install {{driver['package']}}"]
  14.   driver_04_load: ["sh", "-c", "depmod && modprobe {{driver['module']}}"]
  15. {{endif}}
  16. late_commands:
  17.   maas: [wget, '--no-proxy', '{{node_disable_pxe_url|escape.shell}}', '--post-data', '{{node_disable_pxe_data|escape.shell}}', '-O', '/dev/null']
  18. {{if third_party_drivers and driver}}
  19.   driver_00_key_get: curtin in-target -- sh -c "/bin/echo -en '{{key_string}}' > /tmp/maas-{{driver['package']}}.gpg"
  20.   driver_02_key_add: ["curtin", "in-target", "--", "apt-key", "add", "/tmp/maas-{{driver['package']}}.gpg"]
  21.   driver_03_add: ["curtin", "in-target", "--", "add-apt-repository", "-y", "deb {{driver['repository']}} {{node.get_distro_series()}} main"]
  22.   driver_04_update_install: ["curtin", "in-target", "--", "apt-get", "update", "--quiet"]
  23.   driver_05_install: ["curtin", "in-target", "--", "apt-get", "-y", "install", "{{driver['package']}}"]
  24.   driver_06_depmod: ["curtin", "in-target", "--", "depmod"]
  25.   driver_07_update_initramfs: ["curtin", "in-target", "--", "update-initramfs", "-u"]
  26.   driver_08_install_bond_pkg: ["curtin", "in-target", "--", "apt-get", "instal", "ifenslave-2.6"]
  27.   driver_09_load_bonding: ["curtin", "in-target", "--", "if ! cat /etc/modules | grep bonding ; then echo bonding >> /etc/modules ; fi"]
  28.   driver_10_echo: ["curtin", "in-target", "--", "echo trial >> /usr/share/testfile"]
  29. {{endif}}
  30.  
  31. power_state:
  32.   mode: reboot
  33.  
  34. {{if node.split_arch()[0] in {'i386', 'amd64'} }}
  35. apt_mirrors:
  36.   ubuntu_archive: http://{{main_archive_hostname}}/{{main_archive_directory}}
  37.   ubuntu_security: http://{{main_archive_hostname}}/{{main_archive_directory}}
  38. {{else}}
  39. apt_mirrors:
  40.   ubuntu_archive: http://{{ports_archive_hostname}}/{{ports_archive_directory}}
  41.   ubuntu_security: http://{{ports_archive_hostname}}/{{ports_archive_directory}}
  42. {{endif}}
  43.  
  44. {{if http_proxy }}
  45. apt_proxy: {{http_proxy}}
  46. {{else}}
  47. apt_proxy: http://{{server_host}}:8000/
  48. {{endif}}
RAW Paste Data
Top