Bug 876582

Summary: [RFE] Allow default timezone to be set at each lab.
Product: [Retired] Beaker Reporter: Bill Peck <bpeck>
Component: schedulerAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: Qixiang Wan <qwan>
Severity: high Docs Contact:
Priority: high    
Version: 0.9CC: asaha, dcallagh, jburke, mishin, prarit, qwan, rglasz, rmancy
Target Milestone: 0.11Keywords: FutureFeature, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Kickstart
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-17 04:34:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bill Peck 2012-11-14 14:10:07 UTC
Description of problem:
Currently the timezone is set in the kickstart file like so:

# System timezone
timezone {{ timezone|default('America/New_York') }}

It can be overridden via the system install options or via a job xml, but the default is currently the same for all labs.

If this could be moved to a snippet then we could have a different default value for each lab while still allowing it be overridden if need be.

Version-Release number of selected component (if applicable):
0.9.4

Comment 1 Bill Peck 2012-11-14 14:18:09 UTC
Patch:  http://gerrit.beaker-project.org/#/c/1499/

Comment 2 Bill Peck 2012-11-14 14:19:23 UTC
This is in response to https://bugzilla.redhat.com/show_bug.cgi?id=868859

Comment 5 Qixiang Wan 2012-12-24 10:35:38 UTC
Verified by adding a per-lab snippet:
$ cat /etc/beaker/snippets/per_lab/timezone/$LAB_CONTROLLER_FQDN
timezone {{ timezone|default('Asia/Shanghai') }}

After provision, the snippet take effect successfully on the systems which are related to that lab controller:

$ cat /etc/sysconfig/clock
ZONE="Asia/Shanghai"

Comment 6 Dan Callaghan 2013-01-17 04:34:43 UTC
Beaker 0.11.0 has been released.