1 heat_template_version: ocata
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.
29 EtcdInitialClusterToken:
30 description: Initial cluster token for the etcd cluster during bootstrap.
37 type: ../../puppet/services/etcd.yaml
39 EndpointMap: {get_param: EndpointMap}
40 ServiceNetMap: {get_param: ServiceNetMap}
41 DefaultPasswords: {get_param: DefaultPasswords}
42 EtcdInitialClusterToken: {get_param: EtcdInitialClusterToken}
46 description: Role data for the etcd role.
48 service_name: {get_attr: [EtcdPuppetBase, role_data, service_name]}
49 step_config: &step_config
52 - - "['Etcd_key'].each |String $val| { noop_resource($val) }"
53 - get_attr: [EtcdPuppetBase, role_data, step_config]
56 - {get_attr: [EtcdPuppetBase, role_data, config_settings]}
57 - etcd::manage_service: false
58 # BEGIN DOCKER SETTINGS
61 step_config: *step_config
62 config_image: &etcd_image
65 - [ {get_param: DockerNamespace}, {get_param: DockerEtcdImage} ]
67 /var/lib/kolla/config_files/etcd.json:
68 command: /usr/bin/etcd --config-file /etc/etcd/etcd.yml
81 - /var/lib/etcd:/var/lib/etcd
82 - /etc/localtime:/etc/localtime:ro
83 - /var/lib/kolla/config_files/etcd.json:/var/lib/kolla/config_files/config.json:ro
84 - /var/lib/config-data/etcd/etc/etcd/etcd.yml:/etc/etcd/etcd.yml:ro
86 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
88 # Etcd keys initialization occurs only on single node
90 config_volume: 'etcd_init_tasks'
91 puppet_tags: 'etcd_key'
92 step_config: 'include ::tripleo::profile::base::etcd'
93 config_image: *etcd_image
95 - /var/lib/config-data/etcd/etc/:/etc
96 - /var/lib/etcd:/var/lib/etcd:ro
98 - name: create /var/lib/etcd
103 - name: Stop and disable etcd service
105 service: name=etcd state=stopped enabled=no