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
82 - source: "/var/lib/kolla/config_files/src/*"
85 preserve_properties: true
96 - [ {get_param: DockerNamespace}, {get_param: DockerEtcdImage} ]
101 - /var/lib/etcd:/var/lib/etcd
102 - /etc/localtime:/etc/localtime:ro
103 - /var/lib/kolla/config_files/etcd.json:/var/lib/kolla/config_files/config.json:ro
104 - /var/lib/config-data/puppet-generated/etcd/:/var/lib/kolla/config_files/src:ro
106 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
108 # Etcd keys initialization occurs only on single node
110 config_volume: 'etcd_init_tasks'
111 puppet_tags: 'etcd_key'
112 step_config: 'include ::tripleo::profile::base::etcd'
113 config_image: *etcd_config_image
115 - /var/lib/config-data/etcd/etc/etcd/:/etc/etcd:ro
116 - /var/lib/etcd:/var/lib/etcd:ro
118 - name: create /var/lib/etcd
123 - name: Stop and disable etcd service
125 service: name=etcd state=stopped enabled=no