These scripts assume a fresh CentOS 7 install
- Edit chrony_vars.sh, changing the following variables:
- sync_servers - Array of the domains or IP addresses of the external NTP servers that will be used to sync each chrony node
- ntp_network - Friendly name of the Docker network the cluster will share
- ntp_network_CIDR - CIDR of the address range covered by the Docker network (ex. 192.168.0.0/24)
- ntp_loadbalancer - Docker network IP address of the nginx loadbalancer container (must be within the network CIDR range)
- ntp_cluster - Array of the IP addresses of the chrony nodes in the cluster (must be within the network CIDR range. Node count is inferred from the array length)
- To install dependencies and set up config files, run configure_machine.sh as sudo:
sudo ./configure_machine.sh
- To run a single chrony node, run run_single_node.sh as sudo:
sudo ./run_single_node.sh
- To tear down the single node, run teardown_single_node.sh as sudo:
sudo ./teardown_single_node.sh
- To run the cluster, run run_cluster.sh as sudo:
sudo ./run_cluster.sh
- To tear down the cluster, run teardown_cluster.sh as sudo:
sudo ./teardown_cluster.sh