scripts
garyellis/scripts/cloudinit
A terraform module to store cloud-init scripts
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
| Name | Type | Description | Default |
|---|---|---|---|
| base64_encode | bool | base64 encode the cloud-init config | false |
| docker_compose_version | string | the docker compose version | "1.24.1" |
| docker_yum_repo_url | string | override the docker yum repo url as needed | "https://download.docker.com/linux/cento |
| https_proxy | string | the https proxy | "" |
| gzip | bool | gzip the cloud-init config | false |
| extra_user_data_yaml | string | add cloud-config userdata configuration | "" |
| install_docker | bool | install docker | false |
| no_proxy | string | the no proxy list | "" |
| install_ansible | bool | instal ansible | false |
| docker_version | string | the docker version to install | "19.03.8" |
| install_http_proxy_env | bool | Setup http proxy environment | false |
| http_proxy | string | the http proxy | "" |
| extra_user_data_script | string | append an extra userdata shell script to cloud-init | "" |
| install_docker_compose | bool | install docker compose | false |
| docker_yum_repo_gpgkey_url | string | override the docker yum repo gpg key as needed | "https://download.docker.com/linux/cento |
cloudinit_yamlscloudinit_shellscriptscloudinit_userdata