Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
# Those should be JENKINS vars
NAME=nginx-deployment-3
PODS_COUNT=3
CONTAINER_NAME=nginx
DOCKER_IMAGE='nginx:1.8'
# Template can be copied from deploy.tmp.yaml to update jenkins var
script "time_zone" do
interpreter "bash"
code <<-EOH
mv /etc/localtime /etc/localtime.org
ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
not_if "date | grep PST"
EOH
end