~lutostag/ubuntu/utopic/maas/1.5.2

« back to all changes in this revision

Viewing changes to contrib/preseeds_v2/curtin_userdata

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2014-04-09 19:02:00 UTC
  • mfrom: (1.2.30)
  • Revision ID: package-import@ubuntu.com-20140409190200-jhcri0irlnc5o8r9
Tags: 1.5+bzr2252-0ubuntu1
* New upstream release
  - Add support to install Third Party Drivers. In order for this to be
    used the user will have to go to the Settings page to enable the
    installation of these drivers. (LP: #1305839)
  - Use release images instead of daily. (LP: #1306701)
  - Quote interface name in dhcpd.template, otherwise DHCP server fails
    to start. (LP: #1306335)
  - Fix IntegrityError, when multiple processes are trying to register
    the same component. (LP: #1307415)
  - Add missing armhf commissioning template (LP: #1307780)
* debian/maas-region-controller-min.install: Install drivers.yaml.
* debian/maas-region-controller.postinst: No longer show the
  installation note by default. (LP: #1284652)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
  {{for line in str(curtin_preseed).splitlines()}}
5
5
  {{line}}
6
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}}
7
16
late_commands:
8
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
{{endif}}
9
27
 
10
28
power_state:
11
29
  mode: reboot