bevry-labs / terraform-scaleway-hashistack Goto Github PK
View Code? Open in Web Editor NEWTerraform module to deploy Consul, Nomad, Vault onto Scaleway
Home Page: https://registry.terraform.io/modules/bevry/hashistack/scaleway
Terraform module to deploy Consul, Nomad, Vault onto Scaleway
Home Page: https://registry.terraform.io/modules/bevry/hashistack/scaleway
https://www.hashicorp.com/blog/announcing-terraform-0-12
for finding out what providers are compatible with 0.12
hashicorp/terraform#21235 (comment)
https://github.com/terraform-providers/terraform-provider-scaleway/issues/125
currently certs are created with cert authority as a local ip
module.cluster_master.scaleway_server.server (remote-exec): removed directory: ‘/tmp/tmp.66tWeni7GL’
module.cluster_master.scaleway_server.server (remote-exec): shred -u ../data/local/files/consul.zip
module.cluster_master.scaleway_server.server (remote-exec): ● consul.service - consul agent
module.cluster_master.scaleway_server.server (remote-exec): Loaded: loaded (/etc/systemd/system/consul.service; enabled; vendor preset: disabled)
module.cluster_master.scaleway_server.server (remote-exec): Active: active (running) since Fri 2018-04-27 16:27:11 UTC; 710ms ago
module.cluster_master.scaleway_server.server (remote-exec): Main PID: 2624 (consul)
module.cluster_master.scaleway_server.server (remote-exec): CGroup: /system.slice/consul.service
module.cluster_master.scaleway_server.server (remote-exec): └─2624 /usr/local/bin/consul agent -config-dir=/etc/systemd/system/consul.d
module.cluster_master.scaleway_server.server (remote-exec): Apr 27 16:27:11 par1_master_0 consul[2624]: 2018/04/27 16:27:11 [INFO] consul: Adding LAN server par1_master_0 (Addr: tcp/10.10.36.185:8300) (DC: global)
module.cluster_master.scaleway_server.server (remote-exec): Apr 27 16:27:11 par1_master_0 consul[2624]: 2018/04/27 16:27:11 [INFO] agent: Started DNS server 127.0.0.1:53 (tcp)
module.cluster_master.scaleway_server.server (remote-exec): Apr 27 16:27:11 par1_master_0 consul[2624]: 2018/04/27 16:27:11 [INFO] agent: Started HTTPS server on 127.0.0.1:8500 (tcp)
module.cluster_master.scaleway_server.server (remote-exec): Apr 27 16:27:11 par1_master_0 consul[2624]: 2018/04/27 16:27:11 [INFO] agent: started state syncer
module.cluster_master.scaleway_server.server (remote-exec): Apr 27 16:27:11 par1_master_0 consul[2624]: 2018/04/27 16:27:11 [INFO] agent: Retry join LAN is supported for: aliyun aws azure digitalocean gce os scaleway softlayer
module.cluster_master.scaleway_server.server (remote-exec): Apr 27 16:27:11 par1_master_0 consul[2624]: 2018/04/27 16:27:11 [INFO] agent: Joining LAN cluster...
module.cluster_master.scaleway_server.server (remote-exec): Apr 27 16:27:11 par1_master_0 consul[2624]: 2018/04/27 16:27:11 [INFO] agent: (LAN) joining: [10.10.36.189]
module.cluster_master.scaleway_server.server (remote-exec): Apr 27 16:27:11 par1_master_0 consul[2624]: 2018/04/27 16:27:11 [INFO] agent: (LAN) joined: 0 Err: 1 error(s) occurred:
module.cluster_master.scaleway_server.server (remote-exec): Apr 27 16:27:11 par1_master_0 consul[2624]: * Failed to join 10.10.36.189: dial tcp 10.10.36.189:8301: connect: no route to host
module.cluster_master.scaleway_server.server (remote-exec): Apr 27 16:27:11 par1_master_0 consul[2624]: 2018/04/27 16:27:11 [WARN] agent: Join LAN failed: <nil>, retrying in 30s
unfortunately, it is not available for arm64/aarch64 yet
https://community.cloudflare.com/t/request-for-arm64-architecture-binary/16687?u=balupton
perhaps installing it via go get
instead of rpm would be an option
vault is failing according to consul, however vault is running fine, with the exception of this error message:
check unable to talk with Consul backend: error="Unexpected response code: 500 (CheckID "vault:10.10.36.185:8200:vault-sealed-check" does not have associated TTL)
Generating the nomad certs on origin did not work as the nomad machines would then have certs which did not include their private_ips in the certs ip_sans, which would cause the cert to be rejected from the local instance.
I then tried to generate the nomad certs on the nomad machines. That fixes the ip_sans issue, but then prevents nomad to nomad communication as each nomad instance then has different certs.
Solving this seems to require a certificate issuer and update service.
Local polling + local issuance:
Developer issuance in pre:
Developer issuance in post:
Abandon local TLS entirely for Cloudflare Argo Tunnel:
Local polling allows short TTL on local TLS. Accomplishes #4
Local polling AND dev issuance in pre, would involve reloading for all existing servers, when each new server added.
Dev issuance in post, would involve reloading for all servers, but only once in post.
Reloading may induce downtime if not timed to be simultaneous.
Argo Tunnel should be explored. It could turn out to be easiest and most secure. And may turn out to be able to be used with service TLS.
At a later point, implement service TLS. It would require 1-3 weeks by estimate to get the options for it going.
HCL2 solves a lot of the issues we were having.
Terraform Cloud also solves the encrypted/secure env var issues.
HashiCorp now has full starter kits for a secure environment on AWS. If only they did this when this project was started, it would have saved me months of figuring out how to do it securely and integrated myself.
The new versions support federation and automatic TLS, which was the most difficult part of this entire setup back when this project was being authored. Upgrading to them should save a lot of time.
Boundary is a new project that simplifies ssh and access into the machines.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.