-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from sidohaakma/fix/move-to-yaml-for-requirements
fix(armadillo): move to requirements.yml instead of .txt
- Loading branch information
Showing
9 changed files
with
58 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,10 @@ Deploy the Armadillo suite. | |
To use Ansible to deploy the stack you need to binaries on your system. You can install Ansible following this [user guide](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html). You need to be sure to run Ansible **>= 2.9**. | ||
|
||
When you installed ansible you need to create 3 files: | ||
|
||
- `inventory.ini` | ||
- `playbook.yml` | ||
- `requirements.txt` | ||
- `requirements.yml` | ||
|
||
### Creating inventory.ini | ||
Your target host needs to be defined here. | ||
|
@@ -29,12 +30,19 @@ Your target host needs to be defined here. | |
x.x.x.x # ip address of the system | ||
``` | ||
|
||
### Creating requirements.txt | ||
### Creating requirements.yml | ||
Your target host needs to be defined here. | ||
|
||
```txt | ||
community.general | ||
ansible.posix | ||
```yaml | ||
--- | ||
collections: | ||
# install collections from Ansible Galaxy | ||
- name: ansible.posix | ||
version: 1.1.1 | ||
source: https://galaxy.ansible.com | ||
- name: community.general | ||
version: 2.0.1 | ||
source: https://galaxy.ansible.com | ||
``` | ||
### Creating playbook.yml | ||
The playbook is the base of the rollout for the Armadillo. The contents of the playbook is shown below. | ||
|
@@ -54,7 +62,7 @@ The playbook is the base of the rollout for the Armadillo. The contents of the p | |
root_password: xxxxxxx | ||
port: 9000 | ||
domain: armadillo-storage.local | ||
host: http://localhost | ||
host: http://minio | ||
console: | ||
enabled: false | ||
port: 9001 | ||
|
@@ -109,9 +117,10 @@ The playbook is the base of the rollout for the Armadillo. The contents of the p | |
# override default DataSHIELD options | ||
- role: molgenis.armadillo.service_minio | ||
vars: | ||
version: 2021-02-19T04-38-02Z | ||
version: 2022-01-25T19-56-04Z | ||
data: /var/lib/minio/data | ||
domain: armadillo-storage.local | ||
protocol: http | ||
domain: "{{ minio.domain }}" | ||
root_user: "{{ minio.root_user }}" | ||
root_password: "{{ minio.root_password }}" | ||
- role: molgenis.armadillo.service_auth | ||
|
@@ -136,7 +145,7 @@ The playbook is the base of the rollout for the Armadillo. The contents of the p | |
enabled: false | ||
acme: | ||
email: [email protected] | ||
- role: molgenis.armadillo.post_upgrade | ||
- role: molgenis.armadillo.tools_upgrade | ||
``` | ||
There are a few prerequisites that we need. | ||
|
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,9 @@ | ||
--- | ||
collections: | ||
# install collections from Ansible Galaxy | ||
- name: ansible.posix | ||
version: 1.1.1 | ||
source: https://galaxy.ansible.com | ||
- name: community.general | ||
version: 2.0.1 | ||
source: https://galaxy.ansible.com |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ namespace: molgenis | |
|
||
name: armadillo | ||
|
||
version: 2.0.0 | ||
version: 2.0.1 | ||
|
||
readme: README.md | ||
|
||
|
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 +1,2 @@ | ||
requires_ansible: ">=2.9,<2.10" | ||
requires_ansible: ">=2.10" | ||
|
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 |
---|---|---|
@@ -1,3 +1,23 @@ | ||
--- | ||
- name: add armadillo group | Configuration | ||
ansible.builtin.group: | ||
name: armadillo | ||
|
||
- name: add armadillo user | Configuration | ||
ansible.builtin.user: | ||
name: armadillo | ||
group: armadillo | ||
|
||
- name: create directories | Configuration | ||
ansible.builtin.file: | ||
path: "{{ item }}" | ||
owner: armadillo | ||
group: armadillo | ||
state: directory | ||
mode: '655' | ||
with_items: | ||
- /usr/share/armadillo | ||
- /usr/share/armadillo/services | ||
|
||
- name: compose | Installation | ||
ansible.builtin.include_tasks: "{{ ansible_os_family|lower }}.yml" |
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