-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
42 lines (31 loc) · 1.46 KB
/
start.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
#!/usr/bin/env bash
set -o errexit
# Blacksilver Consulting CentOS 9 QUICKSTART
# (C) Blacksilver Consulting LLC
# See LICENSE file for license information
# Invocation (run as root, soory):
# cd && curl -O https://blacksilverconsulting.github.io/OS9/start.sh && bash start.sh
# Description:
# This script is designed to start the process of setting up a new install of
# CentOS 9 by enabling EPEL, followed by Ansible and its dependencies. Then it
# downloads and runs a basic Ansible playbook to continue configuration.
# Notes:
# - Yes this is full of security holes. PRs welcome!
# - This script assumes that it is running as root, and running in /root
echo 'Enable EPEL'
dnf -y install epel-release epel-next-release
echo 'Install Ansible and dependencies'
dnf -y install python3 python3-rpm python3-pycurl sshpass ansible-core \
ansible-collection-ansible-posix ansible-collection-community-general \
ansible-collection-redhat-rhel_mgmt
echo 'Download the playbooks'
curl -LJO https://github.com/BlacksilverConsulting/OS9/raw/main/base.yaml
curl -LJO https://github.com/BlacksilverConsulting/OS9/raw/main/pg14.yaml
curl -LJO https://github.com/BlacksilverConsulting/OS9/raw/main/dm.yaml
echo 'Run the base playbook'
ansible-playbook ./base.yaml
echo 'Initial configuration complete.'
echo 'To install PostgreSQL 14 Server and Client:'
echo 'ansible-playbook ./pg14.yaml'
echo 'To install other components useful for document management:'
echo 'ansible-playbook ./dm.yaml'