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

Use osism.pulp.regio.digital as ansible galaxy source #405

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
19 changes: 19 additions & 0 deletions files/ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,22 @@ gathering = smart

[ssh_connection]
pipelining = true

# Mirrored content on Pulp can be viewed and extended in the following
# repository: https://github.com/osism/sbom/tree/main/mirrors/pulp
#
# The used account is only assigned viewer rights and we use this to
# provide access not completely public.

[galaxy]
server_list = ansible_collections,ansible_roles

[galaxy_server.ansible_collections]
url = http://osism.pulp.regio.digital:8080/pulp_ansible/galaxy/ansible_collections/
username = ansible_viewer
password = oegei7Ohcem8aej6

[galaxy_server.ansible_roles]
url = http://osism.pulp.regio.digital:8080/pulp_ansible/galaxy/ansible_roles/
username = ansible_viewer
password = oegei7Ohcem8aej6
13 changes: 7 additions & 6 deletions files/src/templates/requirements.yml.j2
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
---
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

#
# Mirrored content on Pulp can be viewed and extended in the following
# repository: https://github.com/osism/sbom/tree/main/mirrors/pulp
#
# The used account is only assigned viewer rights and we use this to
# provide access not completely public.
---
roles:
{% for name in ansible_roles.keys() %}
- name: {{ name }}
version: {{ ansible_roles[name] }}
{% if ansible_role_names[name] %}
type: git
src: git+https://github.com/{{ ansible_role_names[name] }}.git
{% else %}
source: https://galaxy.ansible.com
{% endif %}
{% endfor %}

Expand All @@ -18,7 +21,6 @@ collections:
{% if ansible_collection_names[name] %}
{% if is_release == "true" and "osism" in name %}
- name: {{ name }}
source: https://galaxy.ansible.com
version: {{ ansible_collections[name] }}
{% else %}
- name: https://github.com/{{ ansible_collection_names[name] }}.git
Expand All @@ -27,7 +29,6 @@ collections:
{% endif %}
{% else %}
- name: {{ name }}
source: https://galaxy.ansible.com
version: {{ ansible_collections[name] }}
{% endif %}
{% endfor %}