mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Update etcd-backed Docker Swarm environment with Ubuntu and Photon. Switch from shell provisioning to Ansible. Update Vagrantfile to use new techniques pioneered in other environments. Switch away from meta-data/user-data for Photon customization, use Ansible instead. 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'] %>"
|