This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #11: Abstract a few things so we can run this playbook on diffe…
…rent sets of servers.
- Loading branch information
1 parent
8a5ee82
commit 7119e93
Showing
10 changed files
with
67 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
--- | ||
ansible_user: pirate | ||
helm_arch: arm | ||
|
||
# Turing Pi. | ||
# ingress_server_ip: 10.0.100.74 | ||
# load_balancer_server_ip: 10.0.100.99 | ||
|
||
# Dramble. | ||
ingress_server_ip: 10.0.100.83 | ||
load_balancer_server_ip: 10.0.100.131 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
- name: Ensure apt caches are up to date. | ||
apt: | ||
update_cache: true | ||
cache_valid_time: 3600 | ||
|
||
- name: Ensure required dependencies are installed. | ||
package: | ||
name: | ||
- python3-setuptools | ||
- build-essential | ||
- golang | ||
- git | ||
state: present | ||
become: true | ||
|
||
- name: Ensure openshift Python library is installed. | ||
pip: | ||
name: openshift | ||
state: present | ||
become: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
collections: | ||
- community.kubernetes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
- name: Get Ingress records from monitoring namespace. | ||
k8s_info: | ||
api_version: extensions/v1beta1 | ||
kind: Ingress | ||
namespace: monitoring | ||
register: monitoring_ingress | ||
|
||
- name: Print relevant addresses. | ||
debug: | ||
msg: | ||
- "http://{{ monitoring_ingress['resources'][0]['spec']['rules'][0]['host'] }}/" | ||
- "http://{{ monitoring_ingress['resources'][1]['spec']['rules'][0]['host'] }}/" | ||
- "http://{{ monitoring_ingress['resources'][2]['spec']['rules'][0]['host'] }}/" | ||
- "Drupal: http://drupal.{{ ingress_server_ip }}.nip.io/" | ||
- "Wordpress: http://wordpress.{{ ingress_server_ip }}.nip.io/" | ||
- "Minecraft: (`kubectl get service -n minecraft`)" | ||
- "Pi-hole: http://pi.hole/ (add record for {{ load_balancer_server_ip }} to /etc/hosts)" | ||
tags: ['debug'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters