mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Update the etcd-backed Docker Swarm environment with new methods/techniques learned in building the Vagrant environment. This involves changes to the external YAML file (renamed to "machines.yml") and the Vagrantfile. Only minor changes were made to the ERB template and the provisioning script (to eliminate a dependency on shared folders). Signed-off-by: Scott S. Lowe <scott.lowe@scottlowe.org>
13 lines
662 B
Text
13 lines
662 B
Text
# Override file for etcd Upstart script
|
|
# Generated from etcd.override.erb by Vagrant
|
|
|
|
# Environment variables
|
|
export ETCD_INITIAL_CLUSTER="<%= etcd_initial_cluster.join(',') %>"
|
|
export ETCD_INITIAL_CLUSTER_STATE="new"
|
|
export ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
|
|
export ETCD_INITIAL_ADVERTISE_PEER_URLS="http://<%= machine['ip_addr'] %>:2380"
|
|
export ETCD_DATA_DIR="/var/etcd"
|
|
export ETCD_LISTEN_PEER_URLS="http://<%= machine['ip_addr'] %>:2380"
|
|
export ETCD_LISTEN_CLIENT_URLS="http://<%= machine['ip_addr'] %>:2379,http://127.0.0.1:2379"
|
|
export ETCD_ADVERTISE_CLIENT_URLS="http://<%= machine['ip_addr'] %>:2379"
|
|
export ETCD_NAME="<%= machine['name'] %>"
|