Add new cloud-init element
Allows for composable builds from a minimal source. Change-Id: I16f560ca4b1737c0928f3f3b15ea2580df820e97 Closes-Bug: 1539272
This commit is contained in:
parent
1733c5fb92
commit
a2d4af9541
8
elements/cloud-init/README.rst
Normal file
8
elements/cloud-init/README.rst
Normal 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.
|
1
elements/cloud-init/element-deps
Normal file
1
elements/cloud-init/element-deps
Normal file
@ -0,0 +1 @@
|
||||
package-installs
|
1
elements/cloud-init/package-installs.yaml
Normal file
1
elements/cloud-init/package-installs.yaml
Normal file
@ -0,0 +1 @@
|
||||
cloud-init:
|
7
elements/cloud-init/pkg-map
Normal file
7
elements/cloud-init/pkg-map
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"family": {
|
||||
"gentoo": {
|
||||
"cloud-init": "app-emulation/cloud-init"
|
||||
}
|
||||
}
|
||||
}
|
15
elements/cloud-init/post-install.d/20-enable-cloud-init
Executable file
15
elements/cloud-init/post-install.d/20-enable-cloud-init
Executable 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
|
Loading…
Reference in New Issue
Block a user