If this action is not run, then heat will not be able to do deployments, and get stuck with Authorization failed.
		
			
				
	
	
		
			30 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| juju_status_json=$(juju status --format json)
 | |
| 
 | |
| # ldap
 | |
| for i in `seq 1 3`; do
 | |
|     ldap_ip=$(echo $juju_status_json | jq .applications[\"ldap-domain${i}\"].units[][\"public-address\"] | sed s/\"//g)
 | |
|     juju config keystone-ldap-domain${i} ldap-server=ldap://${ldap_ip}
 | |
| done
 | |
| 
 | |
| # landscape
 | |
| landscape_ip=$(echo $juju_status_json | jq .applications[\"landscape-haproxy\"].units[][\"public-address\"] | sed s/\"//g)
 | |
| 
 | |
| juju run --all "echo ${landsape_ip} landscape.example.com | sudo tee -a /etc/hosts"
 | |
| 
 | |
| # fix ceilometer, so that it can get to keystone
 | |
| juju run --application ceilometer "echo 10.0.1.216 keystone.example.com | sudo tee -a /etc/hosts"
 | |
| juju run-action ceilometer/0 ceilometer-upgrade
 | |
| 
 | |
| # ensure openstack-service-checks can get to keystone
 | |
| juju run --application openstack-service-checks "echo 10.0.1.216 keystone.example.com | sudo tee -a /etc/hosts"
 | |
| juju run --application openstack-service-checks "echo 10.0.1.216 keystone-internal.example.com | sudo tee -a /etc/hosts"
 | |
| 
 | |
| # ensure ceph-osd can get to vault
 | |
| juju run --application ceph-osd "echo 10.0.1.222 vault.example.com | sudo tee -a /etc/hosts"
 | |
| juju run --application ceph-osd "echo 10.0.1.222 vault-internal.example.com | sudo tee -a /etc/hosts"
 | |
| 
 | |
| juju run-action --wait heat/leader domain-setup
 | |
| 
 |