Use variable for timezone

This commit is contained in:
Khue Doan 2021-06-13 13:19:02 +07:00
parent 812de88d03
commit ef7e613aee
3 changed files with 4 additions and 1 deletions

View File

@ -3,5 +3,6 @@
- [(feature) Add lint checks for everything](../Makefile#L29)
- [(feature) Simple script to backup everything](../scripts/backup.sh#L3)
- [(feature) Simple script to restore everything](../scripts/restore.sh#L3)
- [(optimize) Get timezone automatically from the controller](../metal/roles/pxe-boot/defaults/main.yml#L7)
- [(optimize) Use metal values for MetalLB values](../apps/resources/metallb.yaml#L23)
- [(optimize) Use reflector to generate mirrorlist dynamically](../tools/Dockerfile#L3)

View File

@ -4,3 +4,5 @@ iso_file_name: "fedora-coreos-34.20210518.3.0-live.x86_64.iso"
os_username: admin
os_name: CoreOS
# TODO (optimize) Get timezone automatically from the controller
timezone: Asia/Ho_Chi_Minh

View File

@ -17,4 +17,4 @@ storage:
# Set timezone
links:
- path: /etc/localtime
target: ../usr/share/zoneinfo/Asia/Ho_Chi_Minh # TODO template
target: ../usr/share/zoneinfo/{{ timezone }}