1 heat_template_version: pike
4 Etcd service configured with Puppet
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
33 EtcdInitialClusterToken:
34 description: Initial cluster token for the etcd cluster during bootstrap.
37 MonitoringSubscriptionEtcd:
38 default: 'overcloud-etcd'
46 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
50 description: Role data for the Etcd role.
53 monitoring_subscription: {get_param: MonitoringSubscriptionEtcd}
60 "%{hiera('fqdn_$NETWORK')}"
62 $NETWORK: {get_param: [ServiceNetMap, EtcdNetwork]}
63 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
64 # for the given network; replacement examples (eg. for internal_api):
66 # internal_api_uri -> [IP]
67 # internal_api_subnet - > IP/CIDR
68 tripleo::profile::base::etcd::bind_ip: {get_param: [ServiceNetMap, EtcdNetwork]}
69 tripleo::profile::base::etcd::client_port: '2379'
70 tripleo::profile::base::etcd::peer_port: '2380'
71 etcd::initial_cluster_token: {get_param: EtcdInitialClusterToken}
72 etcd::manage_package: false
73 tripleo.etcd.firewall_rules:
80 - internal_tls_enabled
81 - generate_service_certificates: true
82 tripleo::profile::base::etcd::certificate_specs:
83 service_certificate: '/etc/pki/tls/certs/etcd.crt'
84 service_key: '/etc/pki/tls/private/etcd.key'
87 template: "%{hiera('fqdn_NETWORK')}"
89 NETWORK: {get_param: [ServiceNetMap, EtcdNetwork]}
92 template: "etcd/%{hiera('fqdn_NETWORK')}"
94 NETWORK: {get_param: [ServiceNetMap, EtcdNetwork]}
97 include ::tripleo::profile::base::etcd
99 - name: Check if etcd is deployed
100 command: systemctl is-enabled etcd
101 tags: step0,validation
103 register: etcd_enabled
104 - name: "PreUpgrade step0,validation: Check if etcd is running"
106 /usr/bin/systemctl show 'etcd' --property ActiveState |
108 when: etcd_enabled.rc == 0
109 tags: step0,validation
110 - name: Stop etcd service
112 service: name=etcd state=stopped
115 - internal_tls_enabled
118 network: {get_param: [ServiceNetMap, EtcdNetwork]}