Skip to content

Commit afa1888

Browse files
committed
Restructure as a collection
Move the role into a peering_manager.peering_manager collection so it can be published via the modern Galaxy NG API instead of the legacy role import endpoint, which has been refusing imports for this namespace.
1 parent 9fa4302 commit afa1888

26 files changed

Lines changed: 37 additions & 9 deletions

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
defaults:
1212
run:
13-
working-directory: "gmazoyer.peering_manager"
13+
working-directory: "ansible_collections/peering_manager/peering_manager"
1414

1515
jobs:
1616
lint:
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v6
2121
with:
22-
path: "gmazoyer.peering_manager"
22+
path: "ansible_collections/peering_manager/peering_manager"
2323
- name: Setup Python
2424
uses: actions/setup-python@v6
2525
with:
@@ -44,7 +44,7 @@ jobs:
4444
steps:
4545
- uses: actions/checkout@v6
4646
with:
47-
path: "gmazoyer.peering_manager"
47+
path: "ansible_collections/peering_manager/peering_manager"
4848
- name: Setup Python
4949
uses: actions/setup-python@v6
5050
with:
@@ -61,13 +61,13 @@ jobs:
6161
MOLECULE_DISTRO: ${{ matrix.distro }}
6262

6363
galaxy:
64-
name: galaxy import
64+
name: galaxy publish
6565
runs-on: ubuntu-latest
6666
needs: [lint, molecule]
6767
steps:
6868
- uses: actions/checkout@v6
6969
with:
70-
path: "gmazoyer.peering_manager"
70+
path: "ansible_collections/peering_manager/peering_manager"
7171
- name: Setup Python
7272
uses: actions/setup-python@v6
7373
with:
@@ -76,8 +76,10 @@ jobs:
7676
run: |
7777
python -m pip install --upgrade pip wheel
7878
pip3 install ansible
79-
- name: Trigger Galaxy import
79+
- name: Build collection
80+
run: ansible-galaxy collection build
81+
- name: Publish collection
8082
run: >-
81-
ansible-galaxy role import
83+
ansible-galaxy collection publish
8284
--token ${{ secrets.GALAXY_API_KEY }}
83-
peering-manager ansible-role-peering-manager
85+
peering_manager-peering_manager-*.tar.gz

galaxy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
namespace: peering_manager
3+
name: peering_manager
4+
version: 1.10.0
5+
readme: README.md
6+
authors:
7+
- Guillaume Mazoyer <guillaume@mazoyer.eu>
8+
description: Install and update Peering Manager
9+
license:
10+
- GPL-3.0-or-later
11+
tags:
12+
- networking
13+
- routing
14+
- peering
15+
- bgp
16+
- django
17+
repository: https://github.com/peering-manager/ansible-role-peering-manager
18+
documentation: https://github.com/peering-manager/ansible-role-peering-manager
19+
homepage: https://peering-manager.net/
20+
issues: https://github.com/peering-manager/ansible-role-peering-manager/issues
21+
build_ignore:
22+
- .github
23+
- .vscode
24+
- .cache
25+
- .venv
26+
- molecule

molecule/default/playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
when: ansible_os_family == 'Debian'
1717

1818
roles:
19-
- role: gmazoyer.peering_manager
19+
- role: peering_manager.peering_manager.peering_manager

tasks/include_vars.yml renamed to roles/peering_manager/tasks/include_vars.yml

File renamed without changes.

tasks/install_packages.yml renamed to roles/peering_manager/tasks/install_packages.yml

File renamed without changes.

tasks/setup_database.yml renamed to roles/peering_manager/tasks/setup_database.yml

File renamed without changes.

0 commit comments

Comments
 (0)