diff --git a/data/os/Suse/11.yaml b/data/os/Suse/11.yaml new file mode 100644 index 0000000..1634e47 --- /dev/null +++ b/data/os/Suse/11.yaml @@ -0,0 +1,3 @@ +--- +timezone::timezone_file: /etc/sysconfig/clock +timezone::timezone_file_template: timezone/clock_sles11.erb diff --git a/data/os/Suse/12.yaml b/data/os/Suse/12.yaml new file mode 100644 index 0000000..24f9b3f --- /dev/null +++ b/data/os/Suse/12.yaml @@ -0,0 +1,3 @@ +--- +timezone::timezone_update: 'timedatectl set-timezone %s' +timezone::timezone_update_check_cmd: 'timedatectl status | grep "Timezone:\|Time zone:" | grep -q %s' diff --git a/templates/clock_sles11.erb b/templates/clock_sles11.erb new file mode 100644 index 0000000..1481cf6 --- /dev/null +++ b/templates/clock_sles11.erb @@ -0,0 +1,34 @@ +# Managed by puppet - do not modify + +## Path: System/Environment/Clock +## Description: Information about your timezone and time +## Type: string(-u,--utc,--localtime) +## ServiceRestart: boot.clock +## Command: /sbin/refresh_initrd +# +# Set to "-u" if your system clock is set to UTC, and to "--localtime" +# if your clock runs that way. +# +HWCLOCK="-u" +## Description: Write back system time to the hardware clock +## Type: yesno +## Default: yes +# +# Is set to "yes" write back the system time to the hardware +# clock at reboot or shutdown. Usefull if hardware clock is +# much more inaccurate than system clock. Set to "no" if +# system time does it wrong due e.g. missed timer interrupts. +# If set to "no" the hardware clock adjust feature is also +# skipped because it is rather useless without writing back +# the system time to the hardware clock. +# +SYSTOHC="yes" + +## Type: string(Europe/Berlin,Europe/London,Europe/Paris) +## ServiceRestart: boot.clock +# +# Timezone (e.g. CET) +# (this will set /usr/lib/zoneinfo/localtime) +# +TIMEZONE="<%= @timezone %>" +DEFAULT_TIMEZONE="<%= @timezone %>"