On Tue, Dec 3, 2013 at 12:35 PM, Brian Rzycki <email address hidden> wrote:
> Robie: Yes, changing NTPDATE_USE_NTP_CONF=no makes everything work, at
> least when I change it after the node is deployed. I am not aware of how
> to try this with a preeseed late_command. Do you have instructions for
> me to attempt this?
I think you need to edit /usr/share/maas/preseeds/generic. Find the
preseed/late_command section.
Then, just before the final true, add another command with &&:
in-target sed -i 's/NTPDATE_USE_NTP_CONF=yes/NTPDATE_USE_NTP_CONF=no/'
/etc/default/ntpdate
On Tue, Dec 3, 2013 at 12:35 PM, Brian Rzycki <email address hidden> wrote: USE_NTP_ CONF=no makes everything work, at
> Robie: Yes, changing NTPDATE_
> least when I change it after the node is deployed. I am not aware of how
> to try this with a preeseed late_command. Do you have instructions for
> me to attempt this?
I think you need to edit /usr/share/ maas/preseeds/ generic. Find the late_command section.
preseed/
Then, just before the final true, add another command with &&:
in-target sed -i 's/NTPDATE_ USE_NTP_ CONF=yes/ NTPDATE_ USE_NTP_ CONF=no/ ' ntpdate
/etc/default/
BEFORE: late_command string true && \ disable_ pxe_url| escape. shell}} " disable_ pxe_data| escape. shell}} " -O /dev/null && \
{{def post_scripts}}
# Executes late command and disables PXE.
d-i preseed/
in-target sh -c 'f=$1; shift; echo $0 > $f && chmod 0440 $f $*'
'ubuntu ALL=(ALL) NOPASSWD: ALL' /etc/sudoers.d/maas && \
in-target wget --no-proxy "{{node_
--post-data "{{node_
true
{{enddef}}
AFTER: late_command string true && \ disable_ pxe_url| escape. shell}} " disable_ pxe_data| escape. shell}} " -O /dev/null && \ USE_NTP_ CONF=yes/ NTPDATE_ USE_NTP_ CONF=no/ ' ntpdate && \
{{def post_scripts}}
# Executes late command and disables PXE.
d-i preseed/
in-target sh -c 'f=$1; shift; echo $0 > $f && chmod 0440 $f $*'
'ubuntu ALL=(ALL) NOPASSWD: ALL' /etc/sudoers.d/maas && \
in-target wget --no-proxy "{{node_
--post-data "{{node_
in-target sed -i
's/NTPDATE_
/etc/default/
true
{{enddef}}
> Will this mean all newly-deployed MAAS nodes get
> this change?
Yup.