Merge "Add new cloud-init element"
This commit is contained in:
commit
66184b7b40
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