运行Ansible playbooks之前,需要配置taget host
Prerequisites
1. cp -r /opt/openstack-ansible/etc/openstack_deploy /etc/ 2. cd /etc/openstack_deploy cp openstack_user_config.yml.example openstack_user_config.yml
Configuring target host networking
Configuring target hosts
Configure a list containing at least three infrastructure target hosts in the infra_hosts section:
infra_hosts:
603975-infra01:
ip: 10.240.0.80
IP is the address of the br-mgmt container management bridge on target host.
至少一个网络节点:
network_hosts:
602117-network01:
ip: NETWORK01_IP_ADDRESS
至少一个计算节点:
compute_hosts:
900089-compute001:
ip: COMPUTE001_IP_ADDRESS
log_hosts:
900088-logging01:
ip: LOGGER1_IP_ADDRESS
repo-infra_hosts:
903939-repo01:
ip: REPO1_IP_ADDRESS
storage_hosts:
100338-storage01:
ip: STORAGE01_IP_ADDRESS
Configuring the Image service (optional)
glance_default_store: file