Configure the machines
Your SEAPATH machines are now correctly flashed and wired. The last step is the configuration with Ansible. All this section will be done on the administration machine.
This section assumes you have an administration machine setup. See External support machines | Administration machine for more information.
This step is the same for Yocto and Debian.
Prepare the sources
Clone the SEAPATH Ansible repository.
git clone -b v1.2.0 https://github.com/seapath/ansible.git
cd ansibleCopy the example inventory
For standalone :
cp inventories/examples/seapath-standalone.yaml inventories/my-inventory.yamlFor cluster:
cp inventories/examples/seapath-cluster.yaml inventories/my-inventory.yamlFill the inventory
Open my-inventory.yaml with your favorite text editor.
You should now fill in all the required information (marked “TODO”). For this purpose, you should SSH to your SEAPATH machines and recover the information from there.
For a first SEAPATH installation, some variables can be left with the default value. Here is an overview of the variable you must modify.
ansible_host: The IP address of the hypervisor. Must be set for all SEAPATH machinesnetwork_interface: The name of the hypervisor interface to use as administration. This is the one currently having the IP. Must be set for all SEAPATH machinesptp_interface: The name of the hypervisor interface where PTP frames are received. Must be set for all SEAPATH machinesgateway_addr: The name of the gateway. Put an empty value if you don’t know it””dns_servers: Address of the DNS, if any. Remove it if you don’t have access to a DNS.ntp_servers: Address of the NTP servers, if any. Remove it if you don’t have NTP servers.
Additional variables only used in cluster mode
team0_0: The name of one hypervisor interface used in the triangle cluster. Must be set for all SEAPATH machinesteam0_1: The name of the other hypervisor interface used in the triangle cluster. Must be set for all SEAPATH machinesceph_osd_disk: The name of the disk for CEPH to use. This is the second disk, where SEAPATH is not installed. Must be set for all SEAPATH machines
To avoid errors, the ceph_osd_disk path should be set using the disk by-path link. You can find all your disk links with the command ls -la /dev/disk/by-path
All cluster IPs and networks can be let as default. A default IP subnet 192.168.55.0/24 will be created, but it is only used between the cluster machines. It will not impact your external network.
Launch the configuration
Launch the configuration of your SEAPATH infrastructure using
cqfd run ansible-playbook -i inventories/my-inventory.yaml playbooks/seapath_setup_main.yaml
If you are on a Debian SEAPATH, the hardening must be applied separately with the command :
cqfd run ansible-playbook -i inventories/training-hypervisor.yaml playbooks/seapath_setup_hardened_debian.yamlThis will remove the password access on the machines. Applying the hardening is not necessary on a lab setup. You may want not to activate it to keep easy access to the server.
Hardening must be applied in a production environment.