File tree 7 files changed +36
-11
lines changed
inventory/genestack/group_vars/all
7 files changed +36
-11
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ kube_webhook_token_auth_url_skip_tls_verify: false
124
124
125
125
# # NTP Settings
126
126
# Start the ntpd or chrony service and enable it at system boot.
127
- ntp_enabled : true
128
- ntp_manage_config : true
127
+ ntp_enabled : false
128
+ ntp_manage_config : false
129
129
ntp_servers :
130
130
- " 0.pool.ntp.org iburst"
131
131
- " 1.pool.ntp.org iburst"
Original file line number Diff line number Diff line change @@ -128,3 +128,8 @@ host_specific_kernel_modules: []
128
128
# Optional user defined list of sysctl options in the same dict item format as
129
129
# above.
130
130
user_kernel_options : []
131
+
132
+ # Limited to two servers, the first one is the primary and the second one is the backup.
133
+ host_ntp_server :
134
+ - 0.pool.ntp.org
135
+ - 1.pool.ntp.org
Original file line number Diff line number Diff line change 38
38
name : " queue_max.service"
39
39
state : " restarted"
40
40
enabled : true
41
+
42
+ - name : Reload systemd-timesyncd
43
+ ansible.builtin.systemd :
44
+ name : systemd-timesyncd.service
45
+ state : restarted
46
+ enabled : true
Original file line number Diff line number Diff line change 122
122
retries : 5
123
123
delay : 2
124
124
125
- # this is added to remove conflicts with systemd-timesyncd and ntpsec with kubespray installation
126
- - name : Ensure conflicting time synchronization packages are removed
127
- package :
128
- name :
129
- - ntpsec
130
- - systemd-timesyncd
131
- state : absent
132
- purge : yes
125
+ - name : Ensure timesyncd is running
126
+ ansible.builtin.service :
127
+ name : systemd-timesyncd
128
+ state : started
129
+ enabled : true
130
+ notify : Reload systemd-timesyncd
131
+
132
+ - name : Create systemd-timesyncd configuration file
133
+ ansible.builtin.template :
134
+ src : timesyncd.conf.j2
135
+ dest : /etc/systemd/timesyncd.conf
136
+ mode : " 0644"
137
+ notify : Reload systemd-timesyncd
Original file line number Diff line number Diff line change
1
+ [Time]
2
+ NTP={{ host_ntp_server | first }}
3
+ FallbackNTP={{ host_ntp_server | last }}
4
+ #RootDistanceMaxSec=5
5
+ #PollIntervalMinSec=32
6
+ #PollIntervalMaxSec=2048
7
+ #ConnectionRetrySec=30
8
+ #SaveIntervalSec=60
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ _host_distro_packages:
55
55
- rsync
56
56
- software-properties-common
57
57
- sysstat
58
+ - systemd-timesyncd
58
59
- time
59
60
- vlan
60
61
- wget
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ modprobe nbd max_part=8
38
38
### Connect qemu-nbd to the Disk File
39
39
40
40
``` shell
41
- qemu-nbd --connect=/dev/nbd0 /var/lib/nova/instances/00000000-0000-0000-0000-000000000000
41
+ qemu-nbd --connect=/dev/nbd0 /var/lib/nova/instances/00000000-0000-0000-0000-000000000000/disk
42
42
```
43
43
44
44
- This command associates the instance disk file with the ` /dev/nbd0 ` block device.
You can’t perform that action at this time.
0 commit comments