Merge "Do not use DatasourceNone for precise cloud-init"
This commit is contained in:
commit
45d5bf45e9
1 changed files with 9 additions and 1 deletions
|
@ -11,6 +11,14 @@ if [ -z "$DIB_CLOUD_INIT_DATASOURCES" ] ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat > /etc/cloud/cloud.cfg.d/91-dib-cloud-init-datasources.cfg <<EOF
|
# DatasourceNone doesn't exist in Ubuntu 12.04 (Precise)
|
||||||
|
# which uses cloud-init version 0.6.3
|
||||||
|
if [ "$(lsb_release -cs)" = 'precise' ] ; then
|
||||||
|
cat > /etc/cloud/cloud.cfg.d/91-dib-cloud-init-datasources.cfg <<EOF
|
||||||
|
datasource_list: [ $DIB_CLOUD_INIT_DATASOURCES ]
|
||||||
|
EOF
|
||||||
|
else
|
||||||
|
cat > /etc/cloud/cloud.cfg.d/91-dib-cloud-init-datasources.cfg <<EOF
|
||||||
datasource_list: [ $DIB_CLOUD_INIT_DATASOURCES, None ]
|
datasource_list: [ $DIB_CLOUD_INIT_DATASOURCES, None ]
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue