Skip to content

Instantly share code, notes, and snippets.

@leowmjw
Last active May 25, 2017 06:37
Show Gist options
  • Save leowmjw/fe8344b5b8e7c0d000f18335774e7ef3 to your computer and use it in GitHub Desktop.
Save leowmjw/fe8344b5b8e7c0d000f18335774e7ef3 to your computer and use it in GitHub Desktop.
Binaries for Retry Join for Azure; based on Consul 8.1

Latest binaries for PR hashicorp/consul#2978

Binaries cross compiled with the standard gox; and will be used for Nomad-Box (https://github.com/leowmjw/nomad-box) until it gets reviewed and incorporated into master branch.

Config (config.json inside consul.d) looks like below:

{
    "addresses": {
        "http": "10.0.51.4"
    },

    "retry_join_azure": {
                "tag_name": "type",
                "tag_value": "Foundation",
                "subscription_id": "a-b-c-d",
                "tenant_id": "e-f-g-h",
                "client_id": "i-j-k-l",
                "secret_access_key": "mnop-123456"
        }
    }
}

Running it is now simplified (all nodes of Tag-Name: "type" with Tag-Value: "Foundation") for launching cluster:

./consul agent -bind=10.0.51.4 -data-dir=/tmp/consul -config-dir=./consul.d

After running it, check that the new consul agent client is running:

testadmin@acme-nomad-dev-director-node-1:/opt/consul-ng$ CONSUL_HTTP_ADDR=http://10.0.51.4:8500 ./consul members
Node                              Address         Status  Type    Build     Protocol  DC
acme-nomad-dev-director-node-1    10.0.51.4:8301  alive   client  0.8.2dev  2         dc1
acme-nomad-dev-foundation-node-1  10.0.1.4:8301   alive   server  0.8.1     2         dc1
acme-nomad-dev-foundation-node-2  10.0.2.4:8301   alive   server  0.8.1     2         dc1
acme-nomad-dev-foundation-node-3  10.0.3.4:8301   alive   server  0.8.1     2         dc1
This file has been truncated, but you can view the full file.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment