diff --git a/Servers/Virtualization/OpenStack/Ansible Openstack.md b/Servers/Virtualization/OpenStack/Ansible Openstack.md index 15e4c98..32c2eb8 100644 --- a/Servers/Virtualization/OpenStack/Ansible Openstack.md +++ b/Servers/Virtualization/OpenStack/Ansible Openstack.md @@ -8,9 +8,11 @@ We want to ensure everything works even if the nodes have no internet access. B Run the following script to add the DNS entries. ```sh -# Add the OpenStack node entries to /etc/hosts +# Make yourself root sudo su -echo "192.168.3.43 OPENSTACK-NODE-01.bunny-lab.io OPENSTACK-NODE-01" | sudo tee -a /etc/hosts -echo "192.168.3.44 OPENSTACK-NODE-02.bunny-lab.io OPENSTACK-NODE-02" | sudo tee -a /etc/hosts -echo "192.168.3.45 OPENSTACK-NODE-03.bunny-lab.io OPENSTACK-NODE-03" | sudo tee -a /etc/hosts + +# Add the OpenStack node entries to /etc/hosts +echo "192.168.3.43 OPENSTACK-NODE-01.bunny-lab.io OPENSTACK-NODE-01" >> /etc/hosts +echo "192.168.3.44 OPENSTACK-NODE-02.bunny-lab.io OPENSTACK-NODE-02" >> /etc/hosts +echo "192.168.3.45 OPENSTACK-NODE-03.bunny-lab.io OPENSTACK-NODE-03" >> /etc/hosts ``` \ No newline at end of file