-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor microk8s playbook to follow "new" structure (#1264)
* Refactor microk8s playbook to follow structure with shared roles - Integrates with btrix/deploy role for deploying - Seperated RedHat and Debian into seperate roles - Created Common role - allow running remotely by default - use 'browsertrix_cloud_home' for charts path - add additional customizable options to btrix_values.j2 (todo: unify all the templates) - docs: update to new playbook path --------- Co-authored-by: Ilya Kreymer <[email protected]>
- Loading branch information
1 parent
41c054d
commit 834fa72
Showing
16 changed files
with
492 additions
and
514 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
--- | ||
- hosts: all | ||
gather_facts: yes | ||
become: yes | ||
vars_files: | ||
- inventory/microk8s/group_vars/main.yml | ||
roles: | ||
- microk8s/debian # Change to redhat if using a redhat distro | ||
- microk8s/common | ||
- btrix/deploy | ||
|
||
handlers: | ||
- name: Reboot System | ||
ansible.builtin.reboot: | ||
when: | ||
- skip_handlers | default("false") == "false" | ||
|
||
- name: microk8s ready | ||
ansible.builtin.command: | ||
cmd: microk8s.status --wait-ready | ||
changed_when: false | ||
when: | ||
- skip_handlers | default("false") == "false" |
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,23 @@ | ||
--- | ||
all: | ||
children: | ||
"deploy microk8s": | ||
vars: | ||
browsertrix_mongo_password: "CHANGE ME" | ||
browsertrix_superuser_password: "CHANGE ME" | ||
|
||
host_ip: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}" | ||
domain_name: "{{inventory_hostname }}" | ||
signing_subdomain: "{{ signing_subdomain }}" | ||
signing_authtoken: "{{ 99999999 }}" | ||
enable_signing: true | ||
your_user: sysadmin | ||
ansible_user: sysadmin | ||
cert_email: [email protected] | ||
# crawler_session_size_limit_bytes: 50000000000 | ||
|
||
crawler_extra_args: "--screenshot view,thumbnail,fullPage" | ||
|
||
microk8s_dns_servers: | ||
- 1.1.1.1 | ||
- 1.0.0.1 |
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,3 @@ | ||
[microk8s] | ||
127.0.0.1 | ||
# Add more hosts here if you want to deploy to multiple nodes |
Oops, something went wrong.