Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker-galaxy template and artifact #215

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
skip when vars are empty
sebastian-luna-valero committed Dec 3, 2024
commit 23f9cdaf3c24603d679f785aeacf6fd649747861
8 changes: 4 additions & 4 deletions artifacts/docker-galaxy-01.yml
Original file line number Diff line number Diff line change
@@ -39,28 +39,28 @@
path: /opt/docker_compose/.env
regexp: '^GALAXY_CONFIG_BRAND='
line: GALAXY_CONFIG_BRAND='{{ galaxy_config_brand }}'
when: galaxy_config_brand is defined
when: galaxy_config_brand is defined and galaxy_config_brand != ""

- name: Configure PROXY_PREFIX
ansible.builtin.lineinfile:
path: /opt/docker_compose/.env
regexp: '^PROXY_PREFIX='
line: PROXY_PREFIX='{{ proxy_prefix }}'
when: proxy_prefix is defined
when: proxy_prefix is defined and proxy_prefix != ""

- name: Configure NONUSE
ansible.builtin.lineinfile:
path: /opt/docker_compose/.env
regexp: '^NONUSE='
line: NONUSE='{{ nonuse }}'
when: nonuse is defined
when: nonuse is defined and nonuse != ""

- name: Configure GALAXY_CONFIG_ENABLE_MULLED_CONTAINERS
ansible.builtin.lineinfile:
path: /opt/docker_compose/.env
regexp: '^GALAXY_CONFIG_ENABLE_MULLED_CONTAINERS='
line: GALAXY_CONFIG_ENABLE_MULLED_CONTAINERS='{{ galaxy_config_enable_mulled_containers }}'
when: galaxy_config_enable_mulled_containers is defined
when: galaxy_config_enable_mulled_containers is defined and galaxy_config_enable_mulled_containers != ""

- name: docker-compose up
community.docker.docker_compose_v2:

Unchanged files with check annotations Beta

- name: Set facts
set_fact:
consul_servers_ip: "{{ consul_servers_ip + [ consul_join ] }}"
when: consul_join != ''

Check warning on line 169 in artifacts/lrms/nomad_ai4eosc_fe_install.yml

GitHub Actions / test-artifacts

jinja[spacing]

Jinja2 spacing could be improved: {{ consul_servers_ip + [ consul_join ] }} -> {{ consul_servers_ip + \[consul_join] }}
- name: Set facts
set_fact:
set_fact:
consul_public_ip: "{{ server_list[0] }}"
consul_servers_ip: "{{ [ consul_join ] }}"
my_ip: "{{ client_private_ip }}"

Check warning on line 167 in artifacts/lrms/nomad_ai4eosc_wn_install.yml

GitHub Actions / test-artifacts

jinja[spacing]

Jinja2 spacing could be improved: {{ [ consul_join ] }} -> {{ \[consul_join] }}
username: cloudadm
path: /opt/cloudadm/
nomad_dc: "{{ nomad_input_dc | default('ifca-ai4eosc') }}"