support NTPSERVERARGS in /etc/sysconfig/network
Bug #1819966 reported by
Brendan Germain
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I'm not sure what's changed but in previous versions of cloud-init, it was not owning/writing contents to /etc/sysconfig/
I DHCP my ntp endpoints and provide ntp options via NTPSERVERARGS. Example:
echo 'NTPSERVERARGS=
$ grep server /etc/ntp.conf
server 10.155.55.1 minpoll 3 maxpoll 4 # added by /sbin/dhclient-
On boot now /etc/sysconfig/
$ cat /etc/sysconfig/
# Created by cloud-init on instance boot automatically, do not edit.
#
NETWORKING=yes
So how can i prevent cloud-init from modifying it, or have it write the additional option (NTPSERVERARGS) that i need?
Related branches
~t0rrant/cloud-init:1819966-sysconfig-options
- cloud-init Commiters: Pending requested
-
Diff: 145 lines (+139/-0)1 file modifiedcloudinit/config/cc_sysconfig.py (+139/-0)
To post a comment you must log in.
Hello,
Thanks for file a bug. Cloud-init has included a sysconfig renderer for quite some time. It does indeed render the contents of /etc/sysconfig/ network.
The sysconfig renderer doesn't currently support adding additional values through the network configuration format.
We should see if we can read/update the contents of the file instead of writing one from scratch. sysconfig_ file, so we should take a look at using that instead.
There is an existing update_