Move ntp to a template. In phx2 non bastion01/02 hosts will use bastion01/02 and those will use the normal rhel pools.
This commit is contained in:
parent
4e49aac830
commit
a5007ba910
2 changed files with 13 additions and 6 deletions
|
@ -301,7 +301,7 @@
|
|||
- config
|
||||
|
||||
- name: install ntp.conf
|
||||
copy: src=ntp/ntp.conf dest=/etc/ntp.conf
|
||||
template: src=ntp/ntp.conf.j2 dest=/etc/ntp.conf
|
||||
tags:
|
||||
- ntp
|
||||
- config
|
||||
|
|
|
@ -7,11 +7,18 @@ restrict -6 ::1
|
|||
# setup a set of servers that we all look at.
|
||||
# use servers from 1/2/3.rhel.pool.ntp.org as they are allowed out of the firewall
|
||||
# However, we need specific ip's to be allowed out from builders.
|
||||
server 69.164.203.231
|
||||
server 129.6.15.29
|
||||
server 129.6.15.28
|
||||
server 64.71.128.26
|
||||
server 216.228.192.52
|
||||
{% if datacenter == 'phx2' and not inventory_hostname.startswith('bastion0')
|
||||
#
|
||||
# in phx2 we want to use bastion01 and bastion02 for ntp service
|
||||
# Unless we are bastion01/02, then we want to use the normal pool
|
||||
#
|
||||
server 10.5.126.12
|
||||
server 10.5.126.11
|
||||
{% else %}
|
||||
server 1.rhel.pool.ntp.org
|
||||
server 2.rhel.pool.ntp.org
|
||||
server 3.rhel.pool.ntp.org
|
||||
{% endif %}
|
||||
|
||||
# [localhost]
|
||||
# Undisciplined Local Clock. This is a fake driver intended for backup
|
Loading…
Add table
Add a link
Reference in a new issue