Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 629 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 629 Bytes

terraform-modules/docker

Overview

Install docker.

Limitations

Use module only on ubuntu/debian system. Tested on ubuntu 18.04, 20.04.

Usage

Use this module in your tf file:

data "local_file" "ssh_key_private" {
  filename = pathexpand("~/.ssh/id_rsa")
}

module "docker" {
  source = "git::https://github.com/a-kataev/terraform-modules.git//docker"
  connection_hosts = ["111.122.133.144"]
  connection_private_key = data.local_file.ssh_key_private.content
}

Update provider plugins:

$ terraform init

Apply changes:

$ terraform apply

Requirements

terraform >= 0.12