docker-swarm

diogok/docker-swarm/scaleway

Terraform Module HCL SCALEWAY

Terraform module to create a docker swarm cluster on Scaleway.

Install
module "docker-swarm" {
source = "diogok/docker-swarm/scaleway"
version = "0.0.3"
}
plain text: /constructs/tfmod-diogok-docker-swarm-scaleway/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Scaleway Docker Swarm Module This module creates a docker swarm cluster with TLS enabled on Scaleway. It does not create network security groups, docker access is secured using TLS certificates but creating network security groups is up to you. Still to do: - Support choosing a key file for ssh. Right now it trusts you local ssh agent. - Support additional volumes. - Support bastion hosts to provision instances. Dependencies Minimal versions: - Terraform 0.11.7 - Docker engine 17.06.2-ce - A scaleway account Usage Example usage of the module. `` scaleway access variables variable "organization" {} variable "token" {} module "docker-swarm" { source="github.com/diogok/terraform-scaleway-docker-swarm" name="demo" manager_count=1 worker_count=3 label="demo" organization="${var.organi

Inputs (16)
NameTypeDescriptionDefault
tokenstringYou scaleway generated token. required
organizationstringYou scaleway access token. required
regionstringThe region where to create your instances."par1"
worker_countstringNumber of workers to create.3
additional_volume_sizestringSize of an additional volume to attach to the instances."50"
key_filestringKey file to use to access and provision instances. NOT IMPLEMENTED""
labelstringLabel to add to each docker node.""
existing_swarm_managerstringIf setup to join an existing swarm cluster instead of initing a new one, this po""
typestringThe machine type to create the instances."VC1S"
archstringThe machine type archtecture."x86_64"
additional_volumestringIf we should attach additional volume to instancetrue
join_existing_swarmstringJoin an existing swarm cluster instead of initing a new one.false
namestringThe name of your docker swarm, used for identification and to separate different"MyService"
tagslistTags to add to your instances.[]
manager_countstringNumber of managers to create.1
security_groupstringSecurity group to add instances to.""
Outputs (3)
swarm_managers — Public IPs of the swarm managers
swarm_workers — Public IPs of the swarm workers
docker-env — Environment variables setup to control the swarm locally. Just call as $(terraform output docker-env
Resources (3)
null_resourcescaleway_ipscaleway_server
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.3
Cloud SCALEWAY
★ Stars6
Forks3
Total downloads820
Inputs16
Outputs3
Resources3
LicenseMIT
Namespacediogok
Updated