1 heat_template_version: pike
4 OpenStack containerized etcd services
10 DockerEtcdConfigImage:
11 description: The container image to use for the etcd config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Mapping of service_name -> network name. Typically set
21 via parameter_defaults in the resource registry. This
22 mapping overrides those in ServiceNetMapDefaults.
29 description: Role name on which the service is applied
33 description: Parameters specific to the role
35 EtcdInitialClusterToken:
36 description: Initial cluster token for the etcd cluster during bootstrap.
43 type: ../../puppet/services/etcd.yaml
45 EndpointMap: {get_param: EndpointMap}
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
48 EtcdInitialClusterToken: {get_param: EtcdInitialClusterToken}
52 description: Role data for the etcd role.
54 service_name: {get_attr: [EtcdPuppetBase, role_data, service_name]}
55 step_config: &step_config
58 - - "['Etcd_key'].each |String $val| { noop_resource($val) }"
59 - get_attr: [EtcdPuppetBase, role_data, step_config]
62 - {get_attr: [EtcdPuppetBase, role_data, config_settings]}
63 - etcd::manage_service: false
64 # BEGIN DOCKER SETTINGS
67 step_config: *step_config
68 config_image: &etcd_config_image {get_param: DockerEtcdConfigImage}
70 /var/lib/kolla/config_files/etcd.json:
71 command: /usr/bin/etcd --config-file /etc/etcd/etcd.yml
73 - source: "/var/lib/kolla/config_files/src/*"
76 preserve_properties: true
84 image: {get_param: DockerEtcdImage}
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/puppet-generated/etcd/:/var/lib/kolla/config_files/src: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_config_image
103 - /var/lib/config-data/etcd/etc/etcd/:/etc/etcd:ro
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