/terraform-docker-bootstrap

Terraform module to Installing docker engine on cloud or self-hosted on-premise infrastructures such as Bare Metal or Virtual Machine in various Hypervisors.

Primary LanguageHCLMIT LicenseMIT

Platforms License Code Of Conduct Support Contributing


Terraform Docker

Contributor Covenant

Docker provisioner using terraform. Installing docker engine on cloud or self-hosted on-premise infrastructure such as Bare Metal or Virtual Machine in various Hypervisor.

Requirements

Name Version
Terraform >= 1.0.11

Getting Started

There are instructions under demo directory will get you a copy of the project up and running on your local machine for development and testing purposes.

Usage

Deploy on self-hosted VM

module "docker" {
  source          = "bayudwiyansatria/bootstrap/docker"
  server_ips      = var.server_ips
  ssh_private_key = var.cluster_admin_ssh_access
}
module "docker" {
  source          = "bayudwiyansatria/bootstrap/docker"
  server_ips      = [
		192.168.1.2,
		192.168.1.3,
		192.168.1.4
	]
  ssh_private_key = var.cluster_admin_ssh_access
}

Variables

Name Default Description Required
server_ips [] List String of Server IP addresses true
ssh_private_key ~/.ssh/id_rsa SSH Private Key true
docker_version 20.10.11 Docker Version true

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Looking to contribute to our code but need some help? There's a few ways to get information:

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Copyright © 2021. All Rights Reserved.

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration