Skip to content

Scripts for provisioning a Docker container chrony NTP server cluster with nginx as a loadbalancer on CentOS

License

Notifications You must be signed in to change notification settings

cwadley/ntp-cluster

Repository files navigation

chrony NTP server cluster on CentOS

These scripts assume a fresh CentOS 7 install

Usage

  1. 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)
  2. To install dependencies and set up config files, run configure_machine.sh as sudo: sudo ./configure_machine.sh

Single node

  1. To run a single chrony node, run run_single_node.sh as sudo: sudo ./run_single_node.sh
  2. To tear down the single node, run teardown_single_node.sh as sudo: sudo ./teardown_single_node.sh

Cluster (currently not working)

  1. To run the cluster, run run_cluster.sh as sudo: sudo ./run_cluster.sh
  2. To tear down the cluster, run teardown_cluster.sh as sudo: sudo ./teardown_cluster.sh

About

Scripts for provisioning a Docker container chrony NTP server cluster with nginx as a loadbalancer on CentOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages