Skip to content

Commit

Permalink
Merge pull request #313 from bengland2/local_time_server
Browse files Browse the repository at this point in the history
use local time server when possible
  • Loading branch information
masco authored Dec 10, 2020
2 parents 038599d + b994fa2 commit bfd6606
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,20 @@
vars:
lab_vars: "{{ (lab_name == 'scale') | ternary(scale, alias) }}"
when: lab_name in ['scale', 'alias'] and virtual_uc != true

# use of a local time server is essential or at least a good idea for Ceph, Kerberos, Redis,
# maybe Kubernetes, and other components sensitive to server time skew

- name: default to corporate time server if lab not recognized
set_fact:
time_servers: ["clock.redhat.com", "clock2.redhat.com"]

- name: use bos.redhat.com time servers for Alias lab in Westford
set_fact:
time_servers: ["clock1.bos.redhat.com", "clock2.bos.redhat.com"]
when: lab_name == "alias"

- name: use rdu2.redhat.com time servers for Scale Lab in Raleigh NC USA
set_fact:
time_servers: ["clock1.rdu2.redhat.com"]
when: lab_name == "scale"
2 changes: 1 addition & 1 deletion templates/undercloud.conf.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[DEFAULT]
local_interface = {{ undercloud_local_interface }}
local_ip = {{ gateway }}/{{ subnet_mask }}
undercloud_ntp_servers = clock.redhat.com,clock2.redhat.com
undercloud_ntp_servers = {{ time_servers | join(",") }}
{% if clean_nodes %}
clean_nodes = True
{% endif %}
Expand Down

0 comments on commit bfd6606

Please sign in to comment.