From 4078d54256b17c8f619e5b948747310dc3feeaee Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 15 Mar 2016 20:40:58 -0400 Subject: [PATCH] cobbler: set testnodes timezone during kickstart Signed-off-by: David Galloway --- roles/cobbler/templates/kickstarts/cephlab_rhel.ks | 2 +- roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/roles/cobbler/templates/kickstarts/cephlab_rhel.ks b/roles/cobbler/templates/kickstarts/cephlab_rhel.ks index b328207..b99ba42 100644 --- a/roles/cobbler/templates/kickstarts/cephlab_rhel.ks +++ b/roles/cobbler/templates/kickstarts/cephlab_rhel.ks @@ -33,7 +33,7 @@ selinux --permissive # Do not configure the X Window System skipx # System timezone -timezone America/New_York +timezone Etc/UTC --utc # Install OS instead of upgrade install diff --git a/roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed b/roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed index dc46aa1..098a290 100644 --- a/roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed +++ b/roles/cobbler/templates/kickstarts/cephlab_ubuntu.preseed @@ -31,12 +31,18 @@ d-i mirror/suite string $os_version # Stop Ubuntu from installing random kernel choice #d-i base-installer/kernel/image select none +# Controls whether or not the hardware clock is set to UTC. +d-i clock-setup/utc boolean true +# +# # You may set this to any valid setting for $TZ; see the contents of +# # /usr/share/zoneinfo/ for valid values. +d-i time/zone string Etc/UTC + # Controls whether to use NTP to set the clock during the install d-i clock-setup/ntp boolean true # NTP server to use. The default is almost always fine here. d-i clock-setup/ntp-server string pool.ntp.org - # This makes partman automatically partition without confirmation. #d-i partman/confirm_write_new_label boolean true #d-i partman/choose_partition select finish -- 2.39.5