-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "Ensure Fully Qualified Class Names (FQCN) in Playbooks and Roles"
- Loading branch information
Showing
31 changed files
with
61 additions
and
61 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
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,5 @@ | ||
- hosts: all | ||
tasks: | ||
- include_role: | ||
- ansible.builtin.include_role: | ||
name: dstat-graph | ||
when: ansible_distribution == "CentOS" |
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,39 +1,39 @@ | ||
- hosts: "{{ hostname | default('controller') }}" | ||
tasks: | ||
# Fetch zuul jobs artifacts stored in the logserver during the sf-operator functional test | ||
- include_role: | ||
- ansible.builtin.include_role: | ||
name: post/get-logserver-content | ||
|
||
# Fetch nodepool-builder build image logs | ||
- include_role: | ||
- ansible.builtin.include_role: | ||
name: post/get-nodepool-builds-logs | ||
|
||
# Fetch k8s cluster wide resources | ||
- include_role: | ||
- ansible.builtin.include_role: | ||
name: post/get-k8s-cluster-resources | ||
|
||
# Fetch k8s resources for the sf namespace | ||
- include_role: | ||
- ansible.builtin.include_role: | ||
name: post/get-k8s-resources | ||
vars: | ||
namespace: sf | ||
|
||
# Fetch k8s resources for the sf-operator namespace | ||
- include_role: | ||
- ansible.builtin.include_role: | ||
name: post/get-k8s-resources | ||
vars: | ||
namespace: operators | ||
|
||
# Fetch system-config repo | ||
- include_role: | ||
- ansible.builtin.include_role: | ||
name: post/get-system-config | ||
|
||
# Fetch repos stored on code review service | ||
- include_role: | ||
- ansible.builtin.include_role: | ||
name: post/get-repos | ||
|
||
- include_role: | ||
- ansible.builtin.include_role: | ||
name: post/get-system-logs | ||
|
||
- include_role: | ||
- ansible.builtin.include_role: | ||
name: post/get-loki-logs |
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
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
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
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
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,42 +1,42 @@ | ||
- name: Is registry container exists | ||
command: podman container exists registry | ||
ansible.builtin.command: podman container exists registry | ||
register: is_registry_container_exists | ||
failed_when: is_registry_container_exists.rc >= 2 | ||
|
||
- name: Clean registry | ||
when: is_registry_container_exists.rc == 0 | ||
block: | ||
- name: Stop registry | ||
command: podman stop registry | ||
ansible.builtin.command: podman stop registry | ||
|
||
- name: Delete registry contrainer | ||
command: podman rm registry | ||
ansible.builtin.command: podman rm registry | ||
|
||
- name: Does registry volume exist | ||
command: podman volume exists registry | ||
ansible.builtin.command: podman volume exists registry | ||
register: is_registry_volume_exists | ||
failed_when: is_registry_volume_exists.rc >= 2 | ||
|
||
- name: Clean registry volume | ||
when: is_registry_volume_exists.rc == 0 | ||
command: podman volume rm registry | ||
ansible.builtin.command: podman volume rm registry | ||
|
||
# quay.io/software-factory/registry:2 is a copy of https://hub.docker.com/_/registry | ||
- name: Fetch the podman registry container image | ||
command: podman pull quay.io/software-factory/registry:2 | ||
ansible.builtin.command: podman pull quay.io/software-factory/registry:2 | ||
register: podman_fetch | ||
retries: 12 | ||
delay: 10 | ||
until: | ||
- podman_fetch.rc == 0 | ||
|
||
- name: Start the podman registry container | ||
command: | | ||
ansible.builtin.command: | | ||
podman container run -dt -p 5000:5000 --name registry \ | ||
--volume registry:/var/lib/registry:Z quay.io/software-factory/registry:2 | ||
- name: Wait for the registry to be up | ||
command: podman image search localhost:5000/ --tls-verify=false | ||
ansible.builtin.command: podman image search localhost:5000/ --tls-verify=false | ||
register: is_registry_running | ||
until: is_registry_running.rc == 0 | ||
delay: 1 |
Oops, something went wrong.