Role Detail

indigo-dc.etcd-bm

Install and run an etcd cluster on bare metal
Downloads
4
Type Ansible
Minimum Ansible Version 2.0
Installation $ ansible-galaxy install indigo-dc.etcd-bm
Tags
etcd
Last Commit
Last Imported
OS Platforms
Platform Version
EL 7
Ubuntu trusty
Last 10 Imports
Completed Status
SUCCESS

etcd role

System wide installation of etcd on bare metal or virtual machine (not containerized).

Supported operating systems: CentoOS 7 and Ubuntu 14.04.

This role has been specifically developed to be used for the deployment of Calico in the framework of INDIGO-DataCloud project.

The software is installed from the Centos extras repository and from the Calico repositories for Ubuntu.

Role Variables

etcd_peers_list: ["hosh1","host2","host3"]
etcd_peers_group: groupname

The two variables above are mutually exclusive. If etcd_peers_list is defined, etcd_peers_group is ignored. If etcd_peers_list is not defined, the list of hosts is taken from the inventory group specified in the etcd_peers_group variable. The hosts making up the etcd cluster can be specified either in terms of hostname or IP. Each host in the inventory is configured using the hostname or the IP defined in the list (group). If none of the list entries corresponds to the host hostname or one of its IPs, the role will fail.

etcd_client_port: 2379 (default)
etcd_peer_port: 2380 (default)
etcd_url_scheme: http (default)

The three variables above are self explanatory.

etcd_initial_cluster_state: "new" (default)

The variable above corresponds to the etcd variable ETCD_INITIAL_CLUSTER_STATE, if this option is set to existing etcd will attempt to join an existing cluster.

etcd_force_new_cluster: true

The corresponding etcd variable ETCD_FORCE_NEW_CLUSTER is considered unsafe, in particular it does not show the expected behaviour in the Ubuntu case. When this variable is set to true, the etcd data dir:

/var/lib/etcd/default.etcd/member

is removed, in order to force the cration of a new cluster. In particular this is needed to create a new one-member cluster. This forces the removal of all the existing members in the cluster and adds the host as unique member.

Dependencies

There is no dependency on other roles.

Example Playbook

Using etcd_peers_list variable:

- hosts: servers
  remote_user: root
  roles:
    - { role: ansible-role-etcd-bm, etcd_peers_list: ["host1","host2,"host3"]  }

the host name localost is allowed for a stndalone cluster. Using etcd_peers_group variable:

- hosts: servers
  remote_user: root
  roles:
    - { role: ansible-role-etcd-bm, etcd_peers_group: servers  }

License

Apache Licence v2 [1]

[1] http://www.apache.org/licenses/LICENSE-2.0

Author Information

Mailto: svallero AT to.infn.it

None