1 heat_template_version: pike
4 OpenStack containerized etcd services
9 default: 'tripleoupstream'
13 default: 'centos-binary-etcd:latest'
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
37 EtcdInitialClusterToken:
38 description: Initial cluster token for the etcd cluster during bootstrap.
45 type: ../../puppet/services/etcd.yaml
47 EndpointMap: {get_param: EndpointMap}
48 ServiceNetMap: {get_param: ServiceNetMap}
49 DefaultPasswords: {get_param: DefaultPasswords}
50 EtcdInitialClusterToken: {get_param: EtcdInitialClusterToken}
54 description: Role data for the etcd role.
56 service_name: {get_attr: [EtcdPuppetBase, role_data, service_name]}
57 step_config: &step_config
60 - - "['Etcd_key'].each |String $val| { noop_resource($val) }"
61 - get_attr: [EtcdPuppetBase, role_data, step_config]
64 - {get_attr: [EtcdPuppetBase, role_data, config_settings]}
65 - etcd::manage_service: false
66 # BEGIN DOCKER SETTINGS
69 step_config: *step_config
70 config_image: &etcd_image
73 - [ {get_param: DockerNamespace}, {get_param: DockerEtcdImage} ]
75 /var/lib/kolla/config_files/etcd.json:
76 command: /usr/bin/etcd --config-file /etc/etcd/etcd.yml
89 - /var/lib/etcd:/var/lib/etcd
90 - /etc/localtime:/etc/localtime:ro
91 - /var/lib/kolla/config_files/etcd.json:/var/lib/kolla/config_files/config.json:ro
92 - /var/lib/config-data/etcd/etc/etcd/etcd.yml:/etc/etcd/etcd.yml:ro
94 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
96 # Etcd keys initialization occurs only on single node
98 config_volume: 'etcd_init_tasks'
99 puppet_tags: 'etcd_key'
100 step_config: 'include ::tripleo::profile::base::etcd'
101 config_image: *etcd_image
103 - /var/lib/config-data/etcd/etc/:/etc
104 - /var/lib/etcd:/var/lib/etcd:ro
106 - name: create /var/lib/etcd
111 - name: Stop and disable etcd service
113 service: name=etcd state=stopped enabled=no