-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcommon.sh
26 lines (20 loc) · 1001 Bytes
/
common.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! /bin/bash
#
# Provisioning script common for all servers
#------------------------------------------------------------------------------
# Bash settings
#------------------------------------------------------------------------------
# Enable "Bash strict mode"
set -o errexit # abort on nonzero exitstatus
set -o nounset # abort on unbound variable
set -o pipefail # don't mask errors in piped commands
#------------------------------------------------------------------------------
# Variables
#------------------------------------------------------------------------------
# TODO: put all variable definitions here. Tip: make them readonly if possible.
#------------------------------------------------------------------------------
# Provisioning tasks
#------------------------------------------------------------------------------
log 'Starting common provisioning tasks'
# TODO: insert common provisioning code here, e.g. install EPEL repository, add
# users, enable SELinux, etc.