Add group vars and invenctory for d4research

This commit is contained in:
Antonio Calanducci 2024-01-26 11:56:22 +01:00
parent 54f61703b5
commit 92940d6be1
7 changed files with 51 additions and 2 deletions

View File

@ -74,7 +74,7 @@ host_key_checking = False
# change the default callback, you can only have one 'stdout' type enabled at a time.
#stdout_callback = skippy
stdout_callback = debug
## Ansible ships with some plugins that require whitelisting,
## this is done to avoid running all of a type by default.

View File

@ -0,0 +1,9 @@
start_scopes: D4Research
complete_start_scope: /d4science.research-infrastructures.eu/D4Research
gcore_host: registry-d4research.d4science.org
collector_host: collector-d4research.d4science.org
collector_url: http://collector-d4research.d4science.org:8080
is_registry_docker_stack_name: gcore-d4research
is_registry_docker_service_server_name: is-registry
infrastructure: d4science.research-infrastructures.eu
infra: prod

View File

@ -0,0 +1,8 @@
start_scopes: D4Research
complete_start_scope: /d4science.research-infrastructures.eu/D4Research
gcore_host: resourcemanager-d4research.cloud.d4science.org
resource_manager_docker_stack_name: gcore-d4research
resource_manager_docker_service_server_name: resource-manager
infrastructure: d4science.research-infrastructures.eu
infra: prod
nfs_server_ip: 192.168.4.10

View File

@ -0,0 +1,2 @@
[is_registry_d4research]
10.1.40.31

View File

@ -0,0 +1,2 @@
[resource_manager_d4research]
10.1.40.31

View File

@ -0,0 +1,28 @@
---
- name: Ripristino Stato Resource Manager
#hosts: is_registry_devsec:is_registry_devnext
#hosts: resource_manager_devsec
gather_facts: false
hosts: all
tasks:
- name: Get info on stack state
community.docker.docker_stack_info:
register: result
- name: Show results
ansible.builtin.debug:
var: result.results
- name: Shows stack info
community.docker.docker_stack_task_info:
name: '{{ resource_manager_docker_stack_name }}'
register: stack_info
- name: Message
ansible.builtin.debug:
msg: "Retrieving info about {{ resource_manager_docker_stack_name }}"
- name: Show results
ansible.builtin.debug:
var: stack_info.results

View File

@ -73,7 +73,7 @@ services:
placement:
constraints: [node.role == worker]
restart_policy:
condition: on-failure
condition: none
delay: 5s
max_attempts: 5
window: 120s