-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathrhel8-workshop.sh
executable file
·55 lines (44 loc) · 1.35 KB
/
rhel8-workshop.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
## This script is intended to be run:
## on the control host (ie: workstation)
## CWD = ~root/RHEL8-Workshop
myInventory="./config/master-config.yml"
myCredentials="./config/credentials.yml"
if [ ! -e "${myInventory}" ] ; then
echo "ERROR: Are you in the right directory? Can not find ${myInventory}" ; exit
exit
fi
if [ -e "${myCredentials}" ] ; then
askVaultPass="--ask-vault-pass"
else
askVaultPass=""
fi
case "$1" in
"all")
time ansible-playbook ${askVaultPass} -i ${myInventory} -f 10 ./playbooks/rhel8-workshop.yml
;;
"prep" | \
"finish" | \
"appstream" | \
"boom" | \
"buildah" | \
"ebpf" | \
"firewalld" | \
"nftables" | \
"osbuild" | \
"podman" | \
"settings" | \
"stratis" | \
"systemd" | \
"tlog" | \
"virt" | \
"vdo" | \
"wayland" | \
"webconsole" | \
"kpatch")
time ansible-playbook ${askVaultPass} -i ${myInventory} -f 10 --tags $1 ./playbooks/rhel8-workshop.yml
;;
*)
echo "USAGE: bastion-setup.sh [ all | prep | finish | appstream | boom | buildah | ebpf | firewalld | nftables | osbuild | podman | settings | stratis | systemd | tlog | virt | vdo | wayland | webconsole | kpatch ]"
;;
esac