Skip to content

Commit

Permalink
add ntp support
Browse files Browse the repository at this point in the history
  • Loading branch information
borball committed Aug 9, 2023
1 parent 55b15ef commit 1d7d70f
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ Prepare config.yaml to fit your lab situation, here is an example:
cluster:
domain: outbound.vz.bos2.lab
name: sno148

#optional: set ntps servers
#ntps:
#- 0.rhel.pool.ntp.org
#- 1.rhel.pool.ntp.org
host:
interface: ens1f0
stack: ipv4
Expand Down
4 changes: 3 additions & 1 deletion samples/config-full.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
cluster:
domain: outbound.vz.bos2.lab
name: sno148

ntps:
- 0.rhel.pool.ntp.org
- 1.rhel.pool.ntp.org
host:
interface: ens1f0
stack: ipv4
Expand Down
2 changes: 1 addition & 1 deletion samples/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Day1

You can turn on/off day1 configurtation in day1 section, following are the fallback values if not presented.
You can turn on/off day1 configuration in day1 section, following are the fallback values if not presented.

```yaml
day1:
Expand Down
6 changes: 6 additions & 0 deletions templates/agent-config-ipv4.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ kind: AgentConfig
metadata:
name: {{ cluster.name }}
rendezvousIP: {{ host.ip }}
{% if cluster.ntps is defined -%}
additionalNTPSources:
{% for ntp in cluster.ntps -%}
- {{ ntp }}
{% endfor -%}
{% endif -%}
hosts:
- hostname: {{ host.hostname }}
interfaces:
Expand Down
6 changes: 6 additions & 0 deletions templates/agent-config-ipv6.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ kind: AgentConfig
metadata:
name: {{ cluster.name }}
rendezvousIP: {{ host.ip }}
{% if cluster.ntps is defined -%}
additionalNTPSources:
{% for ntp in cluster.ntps -%}
- {{ ntp }}
{% endfor -%}
{% endif -%}
hosts:
- hostname: {{ host.hostname }}
interfaces:
Expand Down
12 changes: 12 additions & 0 deletions test-mce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@ oc get node --kubeconfig mce/auth/kubeconfig
oc get clusterversion --kubeconfig mce/auth/kubeconfig

echo "Installation in progress, please check it in 30m."

echo "Installation in progress, take a coffee and come back in 30m."

until oc --kubeconfig mce/auth/kubeconfig get clusterversionn | grep -m 1 "Cluster version is"; do sleep 1; done

echo
oc get nodes -kubeconfig mce/auth/kubeconfig
echo
oc get clusterversion -kubeconfig mce/auth/kubeconfig
echo
oc get co -kubeconfig mce/auth/kubeconfig
echo

0 comments on commit 1d7d70f

Please sign in to comment.