]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
timezone: add eastern, pacific, random timezone snippets
authorSage Weil <sage@redhat.com>
Fri, 18 Sep 2015 21:29:31 +0000 (17:29 -0400)
committerSage Weil <sage@redhat.com>
Fri, 18 Sep 2015 21:29:31 +0000 (17:29 -0400)
These need to be early tasks, probably. Random will pick either
eastern or pacific tz randomly.

Signed-off-by: Sage Weil <sage@redhat.com>
timezone/eastern.yaml [new file with mode: 0644]
timezone/pacific.yaml [new file with mode: 0644]
timezone/random.yaml [new file with mode: 0644]

diff --git a/timezone/eastern.yaml b/timezone/eastern.yaml
new file mode 100644 (file)
index 0000000..019c761
--- /dev/null
@@ -0,0 +1,4 @@
+tasks:
+- exec:
+    all:
+      - echo America/New_York | sudo tee /etc/timezone
diff --git a/timezone/pacific.yaml b/timezone/pacific.yaml
new file mode 100644 (file)
index 0000000..6944aa6
--- /dev/null
@@ -0,0 +1,4 @@
+tasks:
+- exec:
+    all:
+      - echo America/Los_Angeles | sudo tee /etc/timezone
diff --git a/timezone/random.yaml b/timezone/random.yaml
new file mode 100644 (file)
index 0000000..1d48ce9
--- /dev/null
@@ -0,0 +1,5 @@
+tasks:
+- exec:
+    all:
+      - echo America/Los_Angeles | sudo tee /etc/timezone
+      - [ $RANDOM -gt 32000 ] && echo America/New_York | sudo tee /etc/timezone