Skip to content

Commit

Permalink
update repository roles (#343)
Browse files Browse the repository at this point in the history
Co-authored-by: David Danielsson <[email protected]>
  • Loading branch information
sean-m-sullivan and djdanielsson authored Nov 29, 2023
1 parent 06fb654 commit 9d2024d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 48 deletions.
21 changes: 10 additions & 11 deletions roles/repository/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Description

An Ansible Role to create Repositories in Automation Hub.
This role has been depreciated and is not supported in AAP 2.4 onwards. It is replaced by collection_remote.

## Variables

Expand Down Expand Up @@ -81,17 +82,15 @@ This also speeds up the overall role.

```yaml
---
ah_repository_certified:
url: 'https://cloud.redhat.com/api/automation-hub/<custom_sync_url_from_cloud>'
token: 'secretToken'

ah_repository_community:
url: https://galaxy.ansible.com/api/
requirements:
- galaxy.galaxy
- infra.controller_configuration
- infra.aap_utilities
- infra.ee_utilities
ah_repositories:
- name: community
url: https://beta-galaxy.ansible.com/
requirements:
- name: infra.ee_utilities
- name: infra.controller_configuration
wait: true
interval: 25
timeout: 1000000
```
## Playbook Examples
Expand Down
24 changes: 5 additions & 19 deletions roles/repository/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,12 @@ argument_specs:
main:
short_description: An Ansible Role to create repositories in Automation Hub.
options:
ah_repository_certified:
ah_repositories:
default: []
required: false
description: Data structure describing the certified repository to manage.
type: dict
ah_repository_community:
required: false
description: Data structure describing the community repository to manage.
type: dict
proxy_url:
required: false
type: str
description: Information regarding the proxy that AH will use to communicate to the Red Hat repositories. Can be left empty if no proxy used.
proxy_username:
required: false
type: str
description: Information regarding the proxy that AH will use to communicate to the Red Hat repositories. Can be left empty if no proxy used.
proxy_password:
required: false
type: str
description: Information regarding the proxy that AH will use to communicate to the Red Hat repositories. Can be left empty if no proxy used.
description: Data structure describing the collection repositories to sync.
type: list
elements: dict

# Async variables
ah_configuration_async_dir:
Expand Down
14 changes: 3 additions & 11 deletions roles/repository_sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Description

An Ansible Role to sync Repositories in Automation Hub.
This role has been depreciated and is not supported in AAP 2.4 onwards. It is replaced by collection_remote_sync.

## Variables

Expand Down Expand Up @@ -64,17 +65,8 @@ This also speeds up the overall role.

```yaml
---
ah_repository_certified:
url: 'https://cloud.redhat.com/api/automation-hub/<custom_sync_url_from_cloud>'
token: 'secretToken'

ah_repository_community:
url: https://galaxy.ansible.com/api/
requirements:
- galaxy.galaxy
- infra.controller_configuration
- infra.aap_utilities
- infra.ee_utilities
ah_repositories:
- name: community
```
## Playbook Examples
Expand Down
12 changes: 5 additions & 7 deletions roles/repository_sync/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ argument_specs:
main:
short_description: An Ansible Role to sync repositories in Automation Hub.
options:
ah_repository_certified:
ah_repositories:
default: []
required: false
description: Data structure describing the certified repository to manage.
type: dict
ah_repository_community:
required: false
description: Data structure describing the community repository to manage.
type: dict
description: Data structure describing the collection repositories to sync.
type: list
elements: dict

# Async variables
ah_configuration_async_dir:
Expand Down

0 comments on commit 9d2024d

Please sign in to comment.