Perform the tasks below as user ansible. The Ansible playbooks create resources that might already be configured and running in your data center, such as DNS, DHCP, and PXE. If you are not sure, consult with your network administrator before running the playbooks. You can modify the sample YAML file ocp.yml to remove individual roles if needed. Dell EMC recommends implementing into your existing DNS, DHCP and PXE services whenever possible. For this deployment, all required services are configured automatically to run on the CSAH node.
Follow these steps:
A sample YAML file is provided as a hosts file in the Ansible directory.
ansible-playbook -i <hosts file> ocp.yml
After a successful Ansible playbook execution, the CSAH node is installed and configured with http, dhcp, dns, haproxy, and pxe services. In addition, the install-config.yaml file is generated and the ignition config files are created and made available over HTTP.
$ nmcli con mod ens2f0 ipv4.dns 100.82.46.20 ipv4.dns-search ocp.example.com
$ systemctl restart NetworkManager
This example uses ocp as the cluster name, example.com as the base domain, and 100.82.46.20 as the CSAH node IP.