~ubuntu-on-ec2/vmbuilder/jenkins_kvm-disable-datasource-fix

« back to all changes in this revision

Viewing changes to templates/img-azure.tmpl

  • Committer: Francis Ginther
  • Date: 2018-10-11 21:07:12 UTC
  • mfrom: (810.1.3 azure-kvp)
  • Revision ID: francis.ginther@canonical.com-20181011210712-85g1cw8q72cd30qj
Enable Hyper-V KVP cloud-init Telemetry in Azure Images via /etc/cloud/cloud.cfg.d/10_kvp.cfg (SF Case #00199159) [a=fginther] [r=daniel-thewatkins,rcj]

MP: https://code.launchpad.net/~cloudware/vmbuilder/jenkins_kvm-azure-kvp/+merge/356593

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
EOF
339
339
 
340
340
fi
 
341
 
 
342
# Add the configuration for cloud-init KVP telemetry (18.10 and newer)
 
343
# See Salesforce Case #00199159
 
344
case "${suite}" in
 
345
    trusty|xenial|bionic)
 
346
        ;;
 
347
    *)
 
348
        cat << EOF > "${mp}/etc/cloud/cloud.cfg.d/10-azure-kvp.cfg"
 
349
${CLOUD_IMG_STR}
 
350
reporting:
 
351
  logging:
 
352
    type: log
 
353
  telemetry:
 
354
    type: hyperv 
 
355
EOF
 
356
        ;;
 
357
esac
 
358
 
341
359
xchroot dpkg-reconfigure --frontend=noninteractive cloud-init
342
360
 
343
361
# This call sources functions from livecd-rootfs, so call it as late as