scripts

garyellis/scripts/cloudinit

Terraform Module HCL CLOUDINIT

A terraform module to store cloud-init scripts

Install
module "scripts" {
source = "garyellis/scripts/cloudinit"
version = "0.2.6"
}
plain text: /constructs/tfmod-garyellis-scripts-cloudinit/install.txt
⭐ Source on GitHub 📦 Registry page
README

tf_module_cloud_init Centrally manage cloud-init scripts. This module supports the following usages: Create multi-part cloud-init configs Toggle switch to control which shell scripts are used. Use the cloud-init config output as input to aws_instance, aws_launch_template and aws_launch_configuration resources. Why centralize cloud-init scripting? Loose coupling infrastructure resources to "user_data" scripts promotes terraform modules reusability and extensibility. Bootstrapping different CM tools should be a trivial task. A common module for bootstrap outputs makes it easy. A collection of cloud-init scripts can be used as light weight os configuration management strategy. Note > When adding scripts, do not embed secrets configuration into cloud-init. In cloud environments like AWS, aws a

Inputs (15)
NameTypeDescriptionDefault
base64_encodeboolbase64 encode the cloud-init configfalse
docker_compose_versionstringthe docker compose version"1.24.1"
docker_yum_repo_urlstringoverride the docker yum repo url as needed"https://download.docker.com/linux/cento
https_proxystringthe https proxy""
gzipboolgzip the cloud-init configfalse
extra_user_data_yamlstringadd cloud-config userdata configuration""
install_dockerboolinstall dockerfalse
no_proxystringthe no proxy list""
install_ansibleboolinstal ansiblefalse
docker_versionstringthe docker version to install"19.03.8"
install_http_proxy_envboolSetup http proxy environmentfalse
http_proxystringthe http proxy""
extra_user_data_scriptstringappend an extra userdata shell script to cloud-init""
install_docker_composeboolinstall docker composefalse
docker_yum_repo_gpgkey_urlstringoverride the docker yum repo gpg key as needed"https://download.docker.com/linux/cento
Outputs (3)
cloudinit_yamls
cloudinit_shellscripts
cloudinit_userdata
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.6
Cloud CLOUDINIT
★ Stars3
Forks2
Total downloads856
Inputs15
Outputs3
LicenseMIT
Namespacegaryellis
Updated