- Public Cloud
- Private Cloud
- Hybrid Cloud
$ ping -c3 google.com#pastikan internet berjalan
$ sudo dnf install python3-devel libffi-devel gcc openssl-devel python3-libselinux
Install dependencies
$ sudo dnf install epel-release
$ sudo dnf install python3-pip
$ sudo pip3 install -U pip
$ sudo dnf install ansible
Install Kolla
$ sudo pip3 install kolla-ansible --ignore-installed PyYAML
$ sudo mkdir -p /etc/kolla
$ sudo chown $USER:$USER /etc/kolla
$ cp -r /usr/local/share/kolla-ansible/etc_examples/kolla/* /etc/kolla
$ cp /usr/local/share/kolla-ansible/ansible/inventory/* .
Tuning ansible
$ sudo mkdir -p /etc/ansible
$ sudo nano /etc/ansible/ansible.cfg
[defaults] host_key_checking=False pipelining=True forks=100
$ sudo nano /etc/hosts
127.0.0.1 localhost ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
{{ ip-server1 }} server1
Check ping to server
$ ansible -i all-in-one all -m ping
Generate password untuk setiap service openstack
$ kolla-genpwd #otomatis generate ke file /etc/kolla/passwords.yml
Edit deployment configuration
$ nano /etc/kolla/globals.yml
....
kolla_base_distro: "centos"
kolla_install_type: "source"
network_interface: "eth0" #interface management
neutron_external_interface: "eth1" #interface external
kolla_internal_vip_address: "10.33.102.245" # IP di subnet int management yang tidak terpakai
nova_compute_virt_type: "qemu"
....
Run kolla-ansible
$ kolla-ansible -i ./all-in-one bootstrap-servers
$ kolla-ansible -i ./all-in-one prechecks
$ kolla-ansible -i ./all-in-one deploy
Using Openstack
$ kolla-ansible post-deploy $ . /etc/kolla/admin-openrc.sh
$ sudo pip3 install python-openstackclient
Check openstack cli commmand
$ openstack hypervisor list
$ openstack endpoint list
$ openstack service list
Screen
$ screen -R deploy
for detach:
$ ctrl+a lalu tekan d
back to session
$ screen-r deploy
Terimakasih telah berkomentar
EmoticonEmoticon