1 heat_template_version: pike
4 OpenStack containerized etcd services
9 default: 'tripleoupstream'
13 default: 'centos-binary-etcd:latest'
15 DockerEtcdConfigImage:
16 description: The container image to use for the etcd config_volume
17 default: 'centos-binary-etcd:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
41 EtcdInitialClusterToken:
42 description: Initial cluster token for the etcd cluster during bootstrap.
49 type: ../../puppet/services/etcd.yaml
51 EndpointMap: {get_param: EndpointMap}
52 ServiceNetMap: {get_param: ServiceNetMap}
53 DefaultPasswords: {get_param: DefaultPasswords}
54 EtcdInitialClusterToken: {get_param: EtcdInitialClusterToken}
58 description: Role data for the etcd role.
60 service_name: {get_attr: [EtcdPuppetBase, role_data, service_name]}
61 step_config: &step_config
64 - - "['Etcd_key'].each |String $val| { noop_resource($val) }"
65 - get_attr: [EtcdPuppetBase, role_data, step_config]
68 - {get_attr: [EtcdPuppetBase, role_data, config_settings]}
69 - etcd::manage_service: false
70 # BEGIN DOCKER SETTINGS
73 step_config: *step_config
74 config_image: &etcd_config_image
77 - [ {get_param: DockerNamespace}, {get_param: DockerEtcdConfigImage} ]
79 /var/lib/kolla/config_files/etcd.json:
80 command: /usr/bin/etcd --config-file /etc/etcd/etcd.yml
91 - [ {get_param: DockerNamespace}, {get_param: DockerEtcdImage} ]
96 - /var/lib/etcd:/var/lib/etcd
97 - /etc/localtime:/etc/localtime:ro
98 - /var/lib/kolla/config_files/etcd.json:/var/lib/kolla/config_files/config.json:ro
99 - /var/lib/config-data/etcd/etc/etcd/etcd.yml:/etc/etcd/etcd.yml:ro
101 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
103 # Etcd keys initialization occurs only on single node
105 config_volume: 'etcd_init_tasks'
106 puppet_tags: 'etcd_key'
107 step_config: 'include ::tripleo::profile::base::etcd'
108 config_image: *etcd_config_image
110 - /var/lib/config-data/etcd/etc/etcd/:/etc/etcd:ro
111 - /var/lib/etcd:/var/lib/etcd:ro
113 - name: create /var/lib/etcd
118 - name: Stop and disable etcd service
120 service: name=etcd state=stopped enabled=no