This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/gocode/src/github.com/hashicorp/consul$ go get -u github.com/hashicorp/consul | |
~/gocode/src/github.com/hashicorp/consul$ go install github.com/hashicorp/consul | |
~/gocode/src/github.com/hashicorp/consul$ cd consul | |
~/gocode/src/github.com/hashicorp/consul/consul$ go test | |
2015/01/07 18:53:31 [INFO] serf: EventMemberJoin: Node 15000 127.0.0.1 | |
2015/01/07 18:53:31 [INFO] raft: Node at 127.0.0.1:15001 [Follower] entering Follower state | |
2015/01/07 18:53:31 [INFO] serf: EventMemberJoin: Node 15000.dc1 127.0.0.1 | |
2015/01/07 18:53:31 [INFO] consul: adding server Node 15000 (Addr: 127.0.0.1:15001) (DC: dc1) | |
2015/01/07 18:53:31 [INFO] consul: adding server Node 15000.dc1 (Addr: 127.0.0.1:15001) (DC: dc1) | |
2015/01/07 18:53:31 [WARN] raft: Heartbeat timeout reached, starting election |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/gocode/src/github.com/hashicorp/consul$ make test | |
--> Installing build dependencies | |
./scripts/verify_no_uuid.sh | |
go list ./... | xargs -n1 go test | |
ok github.com/hashicorp/consul 0.003s | |
ok github.com/hashicorp/consul/acl 0.004s | |
2015/01/07 20:11:55 [DEBUG] http: Request /v1/agent/self (306.432us) | |
2015/01/07 20:11:55 [DEBUG] http: Request /v1/event/fire/cmd (1.239072ms) | |
2015/01/07 20:11:55 [DEBUG] http: Shutting down http server(127.0.0.1:10411) | |
2015/01/07 20:11:55 [ERR] http: Request /v1/catalog/nodes, error: No cluster leader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2015/02/04 17:36:33 terraform-provider-docker: 2015/02/04 17:36:33 Plugin address: unix /tmp/tf-plugin485594628 | |
2015/02/04 17:36:33 [DEBUG] Graph [root] created and valid. 3 nouns. | |
2015/02/04 17:36:33 [DEBUG] Creating graph for path: [root] | |
2015/02/04 17:36:33 [DEBUG] Graph [root] created and valid. 3 nouns. | |
2015/02/04 17:36:33 [INFO] Validating provider: docker | |
2015/02/04 17:36:33 [DEBUG] docker_container.example: expanding to count = 1 | |
2015/02/04 17:36:33 [INFO] Validating resource: docker_container.example | |
2015/02/04 17:36:33 [DEBUG] Creating graph for path: [root] | |
2015/02/04 17:36:33 [DEBUG] Graph [root] created and valid. 3 nouns. | |
2015/02/04 17:36:33 [INFO] Configuring provider: docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#hostname = "example3-host" | |
#dns = ["1.2.3.4"] | |
resource "docker_container" "example" { | |
name = "example3" | |
image = "ubuntu:14.04" | |
domainname = "testing.local" | |
publish_all_ports = true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var envSet *schema.Set = nil | |
if env, ok := d.GetOk("env"); ok { | |
envSet = env.(*schema.Set) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ terraform apply | |
docker_container.example: Creating... | |
active: "" => "0" | |
command.#: "" => "4" | |
command.0: "" => "nc" | |
command.1: "" => "-l" | |
command.2: "" => "-u" | |
command.3: "" => "-p 82" | |
computed_command.#: "" => "<computed>" | |
computed_dns.#: "" => "<computed>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pomluser@thisisit:~/terraformtest$ terraform apply | |
2015/02/17 21:03:11 [INFO] Terraform version: 0.3.7 dev fc07ff5ee1a74553a0709bd98432c030d7fcaa65 | |
2015/02/17 21:03:11 Detected home directory from env var: /home/pomluser | |
2015/02/17 21:03:11 [DEBUG] Discovered plugin: atlas = /home/pomluser/gocode/bin/terraform-provider-atlas | |
2015/02/17 21:03:11 [DEBUG] Discovered plugin: aws = /home/pomluser/gocode/bin/terraform-provider-aws | |
2015/02/17 21:03:11 [DEBUG] Discovered plugin: azure = /home/pomluser/gocode/bin/terraform-provider-azure | |
2015/02/17 21:03:11 [DEBUG] Discovered plugin: cloudflare = /home/pomluser/gocode/bin/terraform-provider-cloudflare | |
2015/02/17 21:03:11 [DEBUG] Discovered plugin: cloudstack = /home/pomluser/gocode/bin/terraform-provider-cloudstack | |
2015/02/17 21:03:11 [DEBUG] Discovered plugin: consul = /home/pomluser/gocode/bin/terraform-provider-consul | |
2015/02/17 21:03:11 [DEBUG] Discovered plugin: digitalocean = /home/pomluser/gocode/bin/terraform-provider-digitalocean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pomluser@thisisit:~/terraformtest$ terraform plan | |
2015/02/17 21:06:03 [INFO] Terraform version: 0.3.7 dev fc07ff5ee1a74553a0709bd98432c030d7fcaa65 | |
2015/02/17 21:06:03 Detected home directory from env var: /home/pomluser | |
2015/02/17 21:06:03 [DEBUG] Discovered plugin: atlas = /home/pomluser/gocode/bin/terraform-provider-atlas | |
2015/02/17 21:06:03 [DEBUG] Discovered plugin: aws = /home/pomluser/gocode/bin/terraform-provider-aws | |
2015/02/17 21:06:03 [DEBUG] Discovered plugin: azure = /home/pomluser/gocode/bin/terraform-provider-azure | |
2015/02/17 21:06:03 [DEBUG] Discovered plugin: cloudflare = /home/pomluser/gocode/bin/terraform-provider-cloudflare | |
2015/02/17 21:06:03 [DEBUG] Discovered plugin: cloudstack = /home/pomluser/gocode/bin/terraform-provider-cloudstack | |
2015/02/17 21:06:03 [DEBUG] Discovered plugin: consul = /home/pomluser/gocode/bin/terraform-provider-consul | |
2015/02/17 21:06:03 [DEBUG] Discovered plugin: digitalocean = /home/pomluser/gocode/bin/terraform-provider-digitalocean |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "docker_container" "example" { | |
name = "example" | |
image = "ubuntu:14.04" | |
command = ["nc", "-l", "-u", "-p 82"] | |
hostname = "example" | |
dns = ["1.2.3.4", "5.6.7.8"] | |
#publish_all_ports = true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pomluser@thisisit:~/terraformtest$ terraform apply | |
2015/02/17 21:21:42 [INFO] Terraform version: 0.3.7 dev 94b24d22fec8aec2aeb06d424b9c95b78b77384f | |
2015/02/17 21:21:42 Detected home directory from env var: /home/pomluser | |
2015/02/17 21:21:42 [DEBUG] Discovered plugin: atlas = /home/pomluser/gocode/bin/terraform-provider-atlas | |
2015/02/17 21:21:42 [DEBUG] Discovered plugin: aws = /home/pomluser/gocode/bin/terraform-provider-aws | |
2015/02/17 21:21:42 [DEBUG] Discovered plugin: azure = /home/pomluser/gocode/bin/terraform-provider-azure | |
2015/02/17 21:21:42 [DEBUG] Discovered plugin: cloudflare = /home/pomluser/gocode/bin/terraform-provider-cloudflare | |
2015/02/17 21:21:42 [DEBUG] Discovered plugin: cloudstack = /home/pomluser/gocode/bin/terraform-provider-cloudstack | |
2015/02/17 21:21:42 [DEBUG] Discovered plugin: consul = /home/pomluser/gocode/bin/terraform-provider-consul | |
2015/02/17 21:21:42 [DEBUG] Discovered plugin: digitalocean = /home/pomluser/gocode/bin/terraform-provider-digitalocean |
OlderNewer