fmt
This commit is contained in:
parent
5d77766197
commit
5863de84aa
4 changed files with 25 additions and 30 deletions
35
docker.tf
35
docker.tf
|
@ -1,33 +1,28 @@
|
|||
/*provider "ssh" {
|
||||
server = {
|
||||
host = "california.ti"
|
||||
port = 22
|
||||
}
|
||||
user = "techinc"
|
||||
auth = {
|
||||
private_key = {
|
||||
content = file("~/.ssh/keys/exploding_bolts_2_rsa")
|
||||
}
|
||||
}
|
||||
}
|
||||
data "ssh_tunnel" "docker" {
|
||||
connection_name = "docker_socket_tunnel_california"
|
||||
remote = {
|
||||
socket = "/var/run/docker.sock"
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
provider "docker" {
|
||||
host = "ssh://california.ti"
|
||||
registry_auth {
|
||||
address = "docker.io"
|
||||
username = "matthewbaggett"
|
||||
password = "dckr_pat_6ytcZqdfqRXzFYe5GUh79RfH1Hw"
|
||||
}
|
||||
}
|
||||
|
||||
provider "docker" {
|
||||
alias = "printi"
|
||||
host = "ssh://prin.ti"
|
||||
registry_auth {
|
||||
address = "docker.io"
|
||||
username = "matthewbaggett"
|
||||
password = "dckr_pat_6ytcZqdfqRXzFYe5GUh79RfH1Hw"
|
||||
}
|
||||
}
|
||||
|
||||
provider "docker" {
|
||||
alias = "unifi"
|
||||
host = "ssh://unifi.ti"
|
||||
registry_auth {
|
||||
address = "docker.io"
|
||||
username = "matthewbaggett"
|
||||
password = "dckr_pat_6ytcZqdfqRXzFYe5GUh79RfH1Hw"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ resource "docker_service" "video_bucket" {
|
|||
}
|
||||
}
|
||||
}
|
||||
locals{
|
||||
locals {
|
||||
video_bucket_config = <<EOF
|
||||
S3_ENDPOINT=http://s3.california.ti
|
||||
S3_BUCKET=video
|
||||
|
@ -31,7 +31,7 @@ S3_SECRET=E4xMwB44MT4tGLStJnZTwQbuDNHL1KR9M4I8taBT
|
|||
EOF
|
||||
}
|
||||
resource "docker_config" "video_bucket_config" {
|
||||
name = "video_bucket_config_${substr(md5(local.video_bucket_config),0,7)}"
|
||||
name = "video_bucket_config_${substr(md5(local.video_bucket_config), 0, 7)}"
|
||||
data = base64encode(local.video_bucket_config)
|
||||
}
|
||||
module "videobucket_nginx_config" {
|
||||
|
|
Reference in a new issue