-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Conform to ansible-lint * Enable ansible-lint workflow
- Loading branch information
Showing
11 changed files
with
86 additions
and
40 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
profile: production | ||
exclude_paths: | ||
- docs | ||
- .github | ||
- molecule/ | ||
skip_list: | ||
- role-name | ||
- var-naming |
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,29 @@ | ||
name: ansible-lint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '**/**.yaml' | ||
- '**/**.yml' | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
paths: | ||
- '**/**.yaml' | ||
- '**/**.yml' | ||
jobs: | ||
build: | ||
name: Ansible Lint # Naming the build is important to use it as a status check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Run ansible-lint | ||
uses: ansible/ansible-lint@main | ||
with: | ||
args: "." |
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,21 +1,22 @@ | ||
--- | ||
- name: Add interactive tool proxy conf for nginx | ||
ansible.builtin.template: | ||
src: "templates/nginx/galaxy-gie-proxy.j2" | ||
dest: "/etc/nginx/conf.d/gie-server.conf" | ||
src: templates/nginx/galaxy-gie-proxy.j2 | ||
dest: /etc/nginx/conf.d/gie-server.conf | ||
mode: "0640" | ||
owner: "www-data" | ||
group: "www-data" | ||
owner: www-data | ||
group: www-data | ||
notify: restart nginx | ||
|
||
- name: Remove comment to activate default interactive tools | ||
# match [\d\D\n] to match digits, non-digits, and newlines -- this is because .* does not match newlines in ansible.builtin.replace | ||
ansible.builtin.replace: | ||
path: "{{ galaxy_config_dir }}/tool_conf.xml" | ||
regexp: '\s*<!--\s*\n.*(<section id="interactivetools" name="Interactive tools">[\d\D\n]*</section>)\n\s*-->' | ||
replace: '\n \1' | ||
regexp: \s*<!--\s*\n.*(<section id="interactivetools" name="Interactive tools">[\d\D\n]*</section>)\n\s*--> | ||
replace: \n \1 | ||
|
||
- name: Copy script to dynamically determine if a job should use Docker | ||
ansible.builtin.template: | ||
src: default_dispatch.py.j2 | ||
dest: "{{ galaxy_server_dir }}/lib/galaxy/jobs/rules/{{ _galaxy_default_dispatcher }}.py" | ||
mode: "0755" |
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,5 +1,4 @@ | ||
--- | ||
|
||
- name: Add custom 502 page | ||
ansible.builtin.copy: | ||
src: nginx/error502.html | ||
|
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 |
---|---|---|
@@ -1,34 +1,35 @@ | ||
--- | ||
galaxy_nginx_vhost_config: | ||
- name: galaxy | ||
location: / | ||
error_page: 502 /galaxy502.html | ||
proxy_pass: "http://{{ _galaxy_local_address }}" | ||
proxy_pass: http://{{ _galaxy_local_address }} | ||
auth: "{{ _molecule_active | ternary(omit, 'sram') }}" | ||
proxy_set_header: | ||
GX_SECRET: "{{ _galaxy_remote_user_secret | default(omit) }}" | ||
- name: api | ||
location: /api/ | ||
proxy_pass: "http://{{ _galaxy_local_address }}/api/" | ||
proxy_pass: http://{{ _galaxy_local_address }}/api/ | ||
auth: "{{ _galaxy_api_exposed | ternary('noauth', 'sram') }}" | ||
- name: static | ||
location: /static | ||
alias: "{{ galaxy_server_dir }}/static" | ||
auth: noauth | ||
- name: static_plugins | ||
location: "~ ^/plugins/(?<plug_type>.+?)/(?<vis_name>.+?)/static/(?<static_file>.*?)$" | ||
expires: '24' | ||
location: ~ ^/plugins/(?<plug_type>.+?)/(?<vis_name>.+?)/static/(?<static_file>.*?)$ | ||
expires: "24" | ||
alias: "{{ galaxy_server_dir }}/config/plugins/$plug_type/$vis_name/static/$static_file" | ||
auth: noauth | ||
- name: favicon | ||
location: /favicon.ico | ||
expires: 24h | ||
auth: noauth | ||
- name: interactive_tools | ||
location: "~* ^/(interactivetool/.+)$" | ||
proxy_redirect: 'off' | ||
proxy_http_version: '1.1' | ||
proxy_pass: "http://localhost:{{ gie_proxy_port }}" | ||
location: ~* ^/(interactivetool/.+)$ | ||
proxy_redirect: "off" | ||
proxy_http_version: "1.1" | ||
proxy_pass: http://localhost:{{ gie_proxy_port }} | ||
- name: custom_502 | ||
location: = /galaxy502.html | ||
root: "{{ _galaxy_error_502 | dirname }}" | ||
internal: '' | ||
internal: "" |
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