Skip to content

Official upstream for the cloud-init: cloud instance initialization

License

Notifications You must be signed in to change notification settings

MappingSystem/lexer

 
 

Repository files navigation

Simple template tool for creating cloud-config with Terraform

Usage example

Terraform code:

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:

#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.

About

Official upstream for the cloud-init: cloud instance initialization

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 55.2%
  • Smarty 42.4%
  • Dockerfile 2.4%