Skip to content

Commit 4bfe275

Browse files
committed
Started on README, still draft
1 parent bce5393 commit 4bfe275

File tree

2 files changed

+83
-1
lines changed

2 files changed

+83
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ venv
22
*.pyc
33
.DS_Store
44
.vagrant
5-
README.adoc
65
archive

README.adoc

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
=== Overview
2+
3+
New monolithic Ansible playbook, `main.yml` and supporting files which is designed for teaching and training in refacoring and
4+
the use of roles, collections etc.
5+
Designed to replace the function of the old link:https://github.com/tonykay/bad-ansible[`bad-ansible`] with a different
6+
approach, i.e. start with a fully functional playbook and teardown and iteratively refactor.
7+
8+
9+
==== Quick Start
10+
11+
Assumes a configuration matching an AgnosticD `three-tier-app` with a `devops` service account.
12+
13+
. Deploy
14+
15+
+
16+
[source,bash]
17+
----
18+
export GUID=<YOUR_GUID>
19+
ansible-playbook main.yml
20+
----
21+
22+
23+
=== Overall architecture is:
24+
25+
Cflask1
26+
lb -> fla postgres
27+
flask2
28+
flaskn...
29+
30+
31+
32+
33+
34+
35+
36+
37+
*Concept change from `bad-ansible`*
38+
39+
n-tier app is designed to be well written *but* monolithic in its construction
40+
to all useful exercises in refactoring, introducing modularity, and a backdrop
41+
to create roles and or collections from sound a sound ansible code base.
42+
43+
=== Outline of main flow
44+
45+
* common
46+
** setup yum repos (via satellite)
47+
** setup firewalld
48+
* setup postgres
49+
** firewalld rule opening 5432
50+
** install postgres 10
51+
** no data load phase - come back to that?
52+
* setup app tier
53+
** firewalld rule opening 443
54+
55+
=== Development Environment
56+
57+
While intended to be deployed on a _real_ cloud or virtualization platform it
58+
comes with a Vagrantfile and associated playbooks
59+
60+
==== Deploying the Database Tier
61+
62+
63+
=== Notes:
64+
65+
Does firewalld need to be configured?
66+
67+
=== Resources
68+
69+
* Jeff Geerling's Ansible Galaxy Role
70+
* Useful articles on Postgres
71+
** Setting it up from scratch
72+
73+
https://opensource.com/article/17/6/ansible-postgresql-operations
74+
75+
76+
77+
== Credits
78+
79+
* Aditya Patawari and Vikas Aggarwal
80+
** I used their phone app during debugging
81+
** Shout out for their Ansible Automation Cookbook
82+
* Jeff Geerlinguy for his Ansible Galaxy Postgres Role
83+

0 commit comments

Comments
 (0)