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: Dictionary packing service data
30 description: Mapping of service_name -> network name. Typically set
31 via parameter_defaults in the resource registry. This
32 mapping overrides those in ServiceNetMapDefaults.
39 description: Role name on which the service is applied
43 description: Parameters specific to the role
45 EtcdInitialClusterToken:
46 description: Initial cluster token for the etcd cluster during bootstrap.
53 type: ../../puppet/services/etcd.yaml
55 EndpointMap: {get_param: EndpointMap}
56 ServiceData: {get_param: ServiceData}
57 ServiceNetMap: {get_param: ServiceNetMap}
58 DefaultPasswords: {get_param: DefaultPasswords}
59 EtcdInitialClusterToken: {get_param: EtcdInitialClusterToken}
63 description: Role data for the etcd role.
65 service_name: {get_attr: [EtcdPuppetBase, role_data, service_name]}
66 step_config: &step_config
69 - - "['Etcd_key'].each |String $val| { noop_resource($val) }"
70 - get_attr: [EtcdPuppetBase, role_data, step_config]
73 - {get_attr: [EtcdPuppetBase, role_data, config_settings]}
74 - etcd::manage_service: false
75 # BEGIN DOCKER SETTINGS
78 step_config: *step_config
79 config_image: &etcd_config_image
82 - [ {get_param: DockerNamespace}, {get_param: DockerEtcdConfigImage} ]
84 /var/lib/kolla/config_files/etcd.json:
85 command: /usr/bin/etcd --config-file /etc/etcd/etcd.yml
87 - source: "/var/lib/kolla/config_files/src/*"
90 preserve_properties: true
101 - [ {get_param: DockerNamespace}, {get_param: DockerEtcdImage} ]
106 - /var/lib/etcd:/var/lib/etcd
107 - /etc/localtime:/etc/localtime:ro
108 - /var/lib/kolla/config_files/etcd.json:/var/lib/kolla/config_files/config.json:ro
109 - /var/lib/config-data/puppet-generated/etcd/:/var/lib/kolla/config_files/src:ro
111 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
113 # Etcd keys initialization occurs only on single node
115 config_volume: 'etcd_init_tasks'
116 puppet_tags: 'etcd_key'
117 step_config: 'include ::tripleo::profile::base::etcd'
118 config_image: *etcd_config_image
120 - /var/lib/config-data/etcd/etc/etcd/:/etc/etcd:ro
121 - /var/lib/etcd:/var/lib/etcd:ro
123 - name: create /var/lib/etcd
128 - name: Stop and disable etcd service
130 service: name=etcd state=stopped enabled=no