cloud-config
4ops/cloud-config/null
Cloud config generator
Cloud config generator Simple template tool for creating cloud-config with Terraform Usage example Terraform code: ``terraform module cloud_config { source = "4ops/cloud-config/null" version = "1.0.2" groups = ["mygroup1", "mygroup2"] users = [{ name = "test", group = ["mygroup1", "mygroup2"] }] packages = ["nano", "sudo", "python3-pip"] package_upgrade = true final_message = "All done :)" } ` Result: `yaml #cloud-config groups: - mygroup1 - mygroup2 users: - name: test shell: /bin/bash groups: [ mygroup1, mygroup2 ] packages: - nano - sudo - python3-pip package_upgrade: true final_message: All done :) `` Also, see examples directory.
| Name | Type | Description | Default |
|---|---|---|---|
| package_update | bool | Update packages cache in Ubuntu | required |
| package_reboot_if_required | bool | If a package installation or upgrade requires a reboot, then a reboot can be per | required |
| package_upgrade | bool | If any packages are to be installed or an upgrade is to be performed then the pa | required |
| runcmd | list(string) | Runcmd contains a list of either lists or a string each item will be executed in | [] |
| yum_repos | any | Add yum repository configuration to the system | {} |
| template_file | string | Overrides default path to cloud-config template file if non-empty | "" |
| default_user | any | Setup default user settings | {} |
| keep_default_user | bool | Add 'default' item before users list | true |
| ntp | any | Setup ntp client settings | {} |
| packages | list(string) | A list of packages to install can be provided | [] |
| final_message | string | Cloud init completion message | "Cloud-init boot finished at $TIMESTAMP. |
| groups | any | Add groups to the system | [] |
| users | any | Add users to the system | [] |
| bootcmd | list(string) | Boot commands: This is very similar to runcmd, but commands run very early in th | [] |
| write_files | any | The content will be decoded accordingly and then written to the path that is pro | [] |
sha512sum — Hash sum of the contenttemplate — Content of the template, used for renderingcontent — Raw content of the cloud config in YAML formatbase64 — Base64 encoded content of the cloud configbase64gzip — Base64 encoded + Gzipped content of the cloud configmd5sum — Hash sum of the contentsha1sum — Hash sum of the contentsha256sum — Hash sum of the contentAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,