1 |
|
---|
2 | A set of Ansible playbooks for:
|
---|
3 |
|
---|
4 | o installing a base Greenstone3 system where the tomcat server
|
---|
5 | is accessed directly over http
|
---|
6 |
|
---|
7 | o hardening the installation to run over https through an Apache2
|
---|
8 | web server using a certificate issued by Let's Encrypt.
|
---|
9 |
|
---|
10 |
|
---|
11 | If the necessary repo for Ansible is already present, then
|
---|
12 | installation is as straightforward as:
|
---|
13 |
|
---|
14 | sudo apt-get install ansible
|
---|
15 | Or
|
---|
16 | sudo yum install ansible
|
---|
17 |
|
---|
18 | To add the repo on Debian systems:
|
---|
19 |
|
---|
20 | sudo apt update
|
---|
21 | sudo apt install software-properties-common
|
---|
22 | sudo add-apt-repository --yes --update ppa:ansible/ansible
|
---|
23 | sudo apt install ansible
|
---|
24 |
|
---|
25 | To add on Redhat:
|
---|
26 |
|
---|
27 | sudo subscription-manager repos --enable ansible-2.9-for-rhel-8-x86_64-rpms
|
---|
28 | sudo yum install ansible
|
---|
29 | Or
|
---|
30 | sudo subscription-manager repos --enable rhel-7-server-ansible-2.9-rpms
|
---|
31 | sudo yum install ansible
|
---|
32 |
|
---|
33 | depending on whether RHEL7 or RHEL8.
|
---|
34 |
|
---|
35 | NEXT, review and edit as needed the variables in:
|
---|
36 |
|
---|
37 | vars/default-core.xml
|
---|
38 |
|
---|
39 | Then run the Ansible playbooks in the following order:
|
---|
40 |
|
---|
41 | ./01-RUN-ANSIBLE-BASE-INSTALL.sh
|
---|
42 |
|
---|
43 | ./02-RUN-ANSIBLE-REVPROXY.sh
|
---|
44 |
|
---|
45 | ====
|
---|
46 |
|
---|
47 | Misc extra notes:
|
---|
48 |
|
---|
49 | This Ansible playbook installs an Apache2 web server and Let's
|
---|
50 | Encrypt's certbot command-line tool (if not already present), and then
|
---|
51 | proceeds to configure Apache2 so it acts as a reverse-proxy web server
|
---|
52 | for a Greenston3 Tomcat installation.
|
---|
53 |
|
---|
54 |
|
---|
55 | In developing these playbooks, the following resources were consulted:
|
---|
56 |
|
---|
57 | https://github.com/do-community/ansible-playbooks/tree/master
|
---|
58 | https://github.com/mvarian/certbot-apache/tree/master
|
---|