Merge "Add new cloud-init element"

This commit is contained in:
Jenkins 2016-02-02 20:49:03 +00:00 committed by Gerrit Code Review
commit 66184b7b40
5 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,8 @@
========
cloud-init
========
Install's and enables cloud-init for systems that don't come with it
pre-installed
Currently only supports Gentoo.

View File

@ -0,0 +1 @@
package-installs

View File

@ -0,0 +1 @@
cloud-init:

View File

@ -0,0 +1,7 @@
{
"family": {
"gentoo": {
"cloud-init": "app-emulation/cloud-init"
}
}
}

View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# gentoo
if [[ "${DISTRO_NAME}" == "gentoo" ]]; then
rc-update add cloud-config default
rc-update add cloud-final default
rc-update add cloud-init-local default
rc-update add cloud-init default
fi