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

Rename ansible-galaxy to ansible-polkadot #73

Merged
merged 5 commits into from
Jul 18, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/branch-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
echo "Tag version: ${CURRENT_GALAXY_VERSION}"
- name: Create Tag
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const {CURRENT_GALAXY_VERSION} = process.env
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/reusable-check-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
echo "MAIN_GALAXY_VERSION=${MAIN_GALAXY_VERSION}" >> "${GITHUB_ENV}"
- name: Validate the current version
if: ${{ ! env.CURRENT_GALAXY_VERSION }}
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
core.setFailed('Your Galaxy version is absent or empty!')
- name: Compare versions
if: ${{ inputs.compare-versions && env.MAIN_GALAXY_VERSION >= env.CURRENT_GALAXY_VERSION }}
uses: actions/github-script@v6
uses: jackbilestech/semver-compare@1.0.4
with:
script: |
core.setFailed('Your Galaxy version is lower than the version in the main branch or equal. Please bump your version!')
base: ${{env.MAIN_GALAXY_VERSION}}
head: ${{env.CURRENT_GALAXY_VERSION}}
operator: '>='
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# Ansible Collection - paritytech.chain
# Ansible Polkadot Collection - paritytech.chain

## Install Ansible collections

Create `requirements.yml` file in your playbook repository (or add to the existing file):
```yaml
collections:
- name: https://github.com/paritytech/ansible-galaxy.git
- name: https://github.com/paritytech/ansible-polkadot.git
type: git
version: 1.8.0
version: 1.10.0
```

or

```yaml
collections:
- name: paritytech.chain
version: 1.8.0
version: 1.10.0
```

If you want to install collections in the project space, you have to run:
```commandline
mkdir collections
ansible-galaxy collection install -f -r requirements.yml -p ./collections
ansible-polkadot collection install -f -r requirements.yml -p ./collections
```

If you want to install collections in the global space (`~/.ansible/collections`),
you have to run:
```commandline
ansible-galaxy collection install -f -r requirements.yml
ansible-polkadot collection install -f -r requirements.yml
```

## Roles
Expand Down
8 changes: 4 additions & 4 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace: paritytech
name: chain

# The version of the collection. Must be compatible with semantic versioning
version: 1.9.1
version: 1.10.0

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down Expand Up @@ -42,16 +42,16 @@ tags: []
dependencies: {}

# The URL of the originating SCM repository
repository: https://github.com/paritytech/ansible-galaxy.git
repository: https://github.com/paritytech/ansible-polkadot.git

# The URL to any online docs
documentation: https://github.com/paritytech/ansible-galaxy
documentation: https://github.com/paritytech/ansible-polkadot

# The URL to the homepage of the collection/project
homepage: https://parity.io

# The URL to the collection issue tracker
issues: https://github.com/paritytech/ansible-galaxy/issues
issues: https://github.com/paritytech/ansible-polkadot/issues

# A list of file glob-like patterns used to filter any files or directories that should not be included in the build
# artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This
Expand Down
2 changes: 1 addition & 1 deletion roles/node_backup/molecule/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Molecula should install collection automatically, If id did not happened run:
```commandline
mkdir molecule/default/collections
ansible-galaxy collection install -f -r molecule/default/collections.yml -p ./molecule/default/collections
ansible-polkadot collection install -f -r molecule/default/collections.yml -p ./molecule/default/collections
```

### Molecule
Expand Down
2 changes: 1 addition & 1 deletion roles/node_backup/molecule/default/collections.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
collections:
- name: https://github.com/paritytech/ansible-galaxy.git
- name: https://github.com/paritytech/ansible-polkadot.git
type: git
version: main
2 changes: 1 addition & 1 deletion roles/ws_health_exporter/molecule/default/collections.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
collections:
- name: https://github.com/paritytech/ansible-galaxy.git
- name: https://github.com/paritytech/ansible-polkadot.git
type: git
version: main
Loading