~bladernr/maas-cert-server/lxd-mirror-preseed

« back to all changes in this revision

Viewing changes to preseed/curtin_userdata_ocp

  • Committer: Jeff Lane
  • Author(s): Rod Smith
  • Date: 2016-07-26 16:16:10 UTC
  • mfrom: (61.1.1 020-disable-auto-updates)
  • Revision ID: jeff_lane-20160726161610-je2fxyp4b9ehj87l
Ubuntu 16.04 now automatically installs security-related updates, but there's a slim possibility that such an update could alter certification results. This branch alters the preseed files so that nodes will disable these automatic updates, thus removing a variable in our testing. This branch implements project #239.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
{{endif}}
27
27
 
28
28
anchor_bucket:
 
29
  - &disableupdates |
 
30
      #!/bin/sh
 
31
      if [ -f /etc/apt/apt.conf.d/20auto-upgrades ] ; then
 
32
          echo "Disabling automatic security updates...";
 
33
          /bin/sed -i 's/"1"/"0"/g' /etc/apt/apt.conf.d/20auto-upgrades;
 
34
          echo "Done.";
 
35
      fi;
 
36
 
29
37
  - &sudoers |
30
38
      #!/bin/sh
31
39
      echo "Setting up sudoers...";
106
114
  # inject maas version into /etc/installed-with-maas and install cert tools
107
115
  set_maas_version: ["curtin", "in-target", "--", "sh", "-c", "/bin/echo {{maas_version}} > /etc/installed-by-maas"]
108
116
  # Install certification suite
 
117
  zu_cert_install:  ['curtin', 'in-target', '--', 'sh', '-c', *disableupdates ]
109
118
  zv_cert_install:  ['curtin', 'in-target', '--', 'sh', '-c', *sudoers ]
110
119
  zw_cert_install:  ['curtin', 'in-target', '--', 'sh', '-c', *installcert ]
111
120
  zx_cert_install:  ['curtin', 'in-target', '--', 'sh', '-c', *iperf ]