Milestone 7.2 Ansibilizing Ubuntu Servers - absentee-neptune/SYS-480 GitHub Wiki
Basically, this is the same process as 7.1, though configuring the network for an ubuntu system is completely different than centOS, so a different configuration method is needed
Before moving on, download the ubuntu-server iso from the foster-synology share and create a base VM of the system using the same methods we have done for the other base VMs
Deploying Ubuntu 1-2
- Using
cloner.ps1
andcloner.json
from Milestone 6, deploy two linked clones of ubuntu.20.04.base on the BLUE8_LAN network - links to files:
Getting the IP Addresses
- Using the
getIP()
function created inutility.ps1
, get the IPs of the deployed Ubuntu systems, and put them in an Ansible file under[ubuntu_server]
. This is so that, using ansible, we can check the connection by pinging the systems.- command to ping systems using Ansible:
ansible ubuntu_server -m ping -i ansible_provision_7.txt -u deployer --ask-pass
- command to ping systems using Ansible:
- links to files:
Checking the DHCP Leases
- ssh into fw-blue8 to review the DHCP service:
show dhcp server statistics
show dhcp server leases
Ansible Scripts
Make sure the appropriate IP addresses are added to the Ansible Provisioning files for the appropriate connection
- Two Ansible Scripts are to be created:
- One to push the public key of xubuntu-wan to the deployed Ubuntu machines to allow password-less log-ins
- push-public-key.yml
- ansible_provision_7.txt
- command to use the script:
ansible-playbook -i ./ansible_provision_7.txt -u deployer -K --ask-pass push-public-key.yml
- Another to change the network settings of the deployed Ubuntu machines to static IP addresses using the proper configurations
- ifcg-script.j2
- ubuntu-networking.yml
- ansible_provision_7_networking.txt
- command to use the script:
ansible-playbook -i ./ansible_provision_7_networking.txt -u deployer -K --ask-pass ubuntu-networking.yml
- One to push the public key of xubuntu-wan to the deployed Ubuntu machines to allow password-less log-ins