diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-09-08 09:30:00 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-09-08 09:30:00 +0000 |
commit | 6480942f4b2fbe49a9ea1a73bcbdb0878271e84e (patch) | |
tree | 81bef7ead0b3361041bb418123aed50682f2e62e /puppet/services | |
parent | 90c852e3fba30bd57fe6547d1da5fed71b855ba4 (diff) | |
parent | 8073fff378ba84a17790deed1e13272c6b9d3314 (diff) |
Merge "Create entries for overcloud VIPs in /etc/hosts"
Diffstat (limited to 'puppet/services')
-rw-r--r-- | puppet/services/vip-hosts.yaml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/puppet/services/vip-hosts.yaml b/puppet/services/vip-hosts.yaml new file mode 100644 index 00000000..445a276c --- /dev/null +++ b/puppet/services/vip-hosts.yaml @@ -0,0 +1,56 @@ +heat_template_version: 2016-04-08 + +description: > + If the deployer doesn't have a DNS server for the overcloud nodes. This will + populate the node-names and IPs for the VIPs of the overcloud. + +parameters: + ServiceNetMap: + default: {} + description: Mapping of service_name -> network name. Typically set + via parameter_defaults in the resource registry. This + mapping overrides those in ServiceNetMapDefaults. + type: json + DefaultPasswords: + default: {} + type: json + EndpointMap: + default: {} + description: Mapping of service endpoint -> protocol. Typically set + via parameter_defaults in the resource registry. + type: json + +outputs: + role_data: + description: role data for the VIP hosts role + value: + service_name: vip_hosts + config_settings: + tripleo::vip_hosts::hosts_spec: + external: + name: "%{hiera('cloud_name_external')}" + ip: "%{hiera('public_virtual_ip')}" + ensure: present + comment: FQDN of the external VIP + internal_api: + name: "%{hiera('cloud_name_internal_api')}" + ip: "%{hiera('internal_api_virtual_ip')}" + ensure: present + comment: FQDN of the internal api VIP + storage: + name: "%{hiera('cloud_name_storage')}" + ip: "%{hiera('storage_virtual_ip')}" + ensure: present + comment: FQDN of the storage VIP + storage_mgmt: + name: "%{hiera('cloud_name_storage_mgmt')}" + ip: "%{hiera('storage_mgmt_virtual_ip')}" + ensure: present + comment: FQDN of the storage mgmt VIP + management: + name: "%{hiera('cloud_name_management')}" + ip: "%{hiera('controller_virtual_ip')}" + ensure: present + comment: FQDN of the management VIP + step_config: | + include ::tripleo::vip_hosts |