summaryrefslogtreecommitdiffstats
path: root/ansible_collections/purestorage/fusion/.github
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 16:18:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 16:18:41 +0000
commitb643c52cf29ce5bbab738b43290af3556efa1ca9 (patch)
tree21d5c53d7a9b696627a255777cefdf6f78968824 /ansible_collections/purestorage/fusion/.github
parentReleasing progress-linux version 9.5.1+dfsg-1~progress7.99u1. (diff)
downloadansible-b643c52cf29ce5bbab738b43290af3556efa1ca9.tar.xz
ansible-b643c52cf29ce5bbab738b43290af3556efa1ca9.zip
Merging upstream version 10.0.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/purestorage/fusion/.github')
-rw-r--r--ansible_collections/purestorage/fusion/.github/CONTRIBUTING.md19
-rw-r--r--ansible_collections/purestorage/fusion/.github/ISSUE_TEMPLATE/bug_report.md38
-rw-r--r--ansible_collections/purestorage/fusion/.github/ISSUE_TEMPLATE/feature_request.md20
-rw-r--r--ansible_collections/purestorage/fusion/.github/pull_request_template.md25
-rw-r--r--ansible_collections/purestorage/fusion/.github/workflows/ansible-lint.yaml10
-rw-r--r--ansible_collections/purestorage/fusion/.github/workflows/black.yaml11
-rw-r--r--ansible_collections/purestorage/fusion/.github/workflows/create-release.yaml117
-rw-r--r--ansible_collections/purestorage/fusion/.github/workflows/main.yml53
-rw-r--r--ansible_collections/purestorage/fusion/.github/workflows/rh_automation_hub_token_keep_alive.yml19
-rw-r--r--ansible_collections/purestorage/fusion/.github/workflows/stale.yml19
10 files changed, 0 insertions, 331 deletions
diff --git a/ansible_collections/purestorage/fusion/.github/CONTRIBUTING.md b/ansible_collections/purestorage/fusion/.github/CONTRIBUTING.md
deleted file mode 100644
index a9054d18c..000000000
--- a/ansible_collections/purestorage/fusion/.github/CONTRIBUTING.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# WELCOME TO PURE STORAGE FUSION ANSIBLE COLLECTION GITHUB
-
-Hi! Nice to see you here!
-
-## QUESTIONS ?
-
-The GitHub issue tracker is not the best place for questions for various reasons, but the [mailing list](mailto:pure-ansible-team@purestorage.com) is a very helpful places for those things.
-
-## CONTRIBUTING ?
-
-By contributing you agree that these contributions are your own (or approved by your employer) and you grant a full, complete, irrevocable copyright license to all users and developers of the project, present and future, pursuant to the license of the project.
-
-## BUG TO REPORT ?
-
-You can report bugs or make enhancement requests at the [Ansible GitHub issue page](http://github.com/Pure-Storage-Ansible/Fusion-Collection/issues/new/choose) by filling out the issue template that will be presented.
-
-Also please make sure you are testing on the latest released version of Ansible or the development branch; see the [Installation Guide](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) for details.
-
-Thanks!
diff --git a/ansible_collections/purestorage/fusion/.github/ISSUE_TEMPLATE/bug_report.md b/ansible_collections/purestorage/fusion/.github/ISSUE_TEMPLATE/bug_report.md
deleted file mode 100644
index dd84ea782..000000000
--- a/ansible_collections/purestorage/fusion/.github/ISSUE_TEMPLATE/bug_report.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-name: Bug report
-about: Create a report to help us improve
-title: ''
-labels: ''
-assignees: ''
-
----
-
-**Describe the bug**
-A clear and concise description of what the bug is.
-
-**To Reproduce**
-Steps to reproduce the behavior:
-1. Go to '...'
-2. Click on '....'
-3. Scroll down to '....'
-4. See error
-
-**Expected behavior**
-A clear and concise description of what you expected to happen.
-
-**Screenshots**
-If applicable, add screenshots to help explain your problem.
-
-**Desktop (please complete the following information):**
- - OS: [e.g. iOS]
- - Browser [e.g. chrome, safari]
- - Version [e.g. 22]
-
-**Smartphone (please complete the following information):**
- - Device: [e.g. iPhone6]
- - OS: [e.g. iOS8.1]
- - Browser [e.g. stock browser, safari]
- - Version [e.g. 22]
-
-**Additional context**
-Add any other context about the problem here.
diff --git a/ansible_collections/purestorage/fusion/.github/ISSUE_TEMPLATE/feature_request.md b/ansible_collections/purestorage/fusion/.github/ISSUE_TEMPLATE/feature_request.md
deleted file mode 100644
index bbcbbe7d6..000000000
--- a/ansible_collections/purestorage/fusion/.github/ISSUE_TEMPLATE/feature_request.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-name: Feature request
-about: Suggest an idea for this project
-title: ''
-labels: ''
-assignees: ''
-
----
-
-**Is your feature request related to a problem? Please describe.**
-A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
-
-**Describe the solution you'd like**
-A clear and concise description of what you want to happen.
-
-**Describe alternatives you've considered**
-A clear and concise description of any alternative solutions or features you've considered.
-
-**Additional context**
-Add any other context or screenshots about the feature request here.
diff --git a/ansible_collections/purestorage/fusion/.github/pull_request_template.md b/ansible_collections/purestorage/fusion/.github/pull_request_template.md
deleted file mode 100644
index 27079cb18..000000000
--- a/ansible_collections/purestorage/fusion/.github/pull_request_template.md
+++ /dev/null
@@ -1,25 +0,0 @@
-##### SUMMARY
-<!--- Describe the change below, including rationale and design decisions -->
-
-<!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
-
-##### ISSUE TYPE
-<!--- Pick one below and delete the rest -->
-- Bugfix Pull Request
-- Docs Pull Request
-- Feature Pull Request
-- New Module Pull Request
-- New Role Pull Request
-
-##### COMPONENT NAME
-<!--- Write the short name of the module, plugin, task or feature below -->
-
-##### ADDITIONAL INFORMATION
-<!--- Include additional information to help people understand the change here -->
-<!--- A step-by-step reproduction of the problem is helpful if there is no related issue -->
-- All new PRs must include a changelog fragment
-- Details of naming convention and format can be found [here](https://docs.ansible.com/ansible/latest/community/development_process.html#creating-a-changelog-fragment)
-<!--- Paste verbatim command output below, e.g. before and after your change -->
-```paste below
-
-```
diff --git a/ansible_collections/purestorage/fusion/.github/workflows/ansible-lint.yaml b/ansible_collections/purestorage/fusion/.github/workflows/ansible-lint.yaml
deleted file mode 100644
index 384c5ac93..000000000
--- a/ansible_collections/purestorage/fusion/.github/workflows/ansible-lint.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-name: Ansible Lint # feel free to pick your own name
-"on": [push, pull_request]
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - name: Run ansible-lint
- uses: ansible-community/ansible-lint-action@main
diff --git a/ansible_collections/purestorage/fusion/.github/workflows/black.yaml b/ansible_collections/purestorage/fusion/.github/workflows/black.yaml
deleted file mode 100644
index 10b16296c..000000000
--- a/ansible_collections/purestorage/fusion/.github/workflows/black.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-name: Black
-
-"on": [push, pull_request]
-
-jobs:
- lint:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-python@v3
- - uses: psf/black@stable
diff --git a/ansible_collections/purestorage/fusion/.github/workflows/create-release.yaml b/ansible_collections/purestorage/fusion/.github/workflows/create-release.yaml
deleted file mode 100644
index 68da05e4d..000000000
--- a/ansible_collections/purestorage/fusion/.github/workflows/create-release.yaml
+++ /dev/null
@@ -1,117 +0,0 @@
-name: Release Collection
-
-"on": workflow_dispatch
-jobs:
- create_github_release:
- runs-on: ubuntu-latest
- environment: fusion-env
- steps:
- - name: Checkout repository
- uses: actions/checkout@v2
-
- - name: Get version from galaxy.yml
- run: |
- RELEASE_VERSION=$(grep 'version:' galaxy.yml | awk '{print $2}')
- echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
-
- - name: Check if tag exists
- env:
- GITHUB_TOKEN: ${{ github.TOKEN }}
- run: |
- trap "exit 0" EXIT
- response=$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository }}/git/ref/tags/$RELEASE_VERSION)
- if [[ "$response" == *"$RELEASE_VERSION"* ]]; then
- trap "exit 1" EXIT
- echo "Error: Tag $RELEASE_VERSION already exists"
- exit 1
- fi
-
- - name: Extract changelog
- run: |
- awk -v version="$RELEASE_VERSION" '
- BEGIN { targetVersionFound = 0; previousVersionFound = 0 }
- {
- if (match($0, "^v"version) > 0) {
- targetVersionFound = 1;
- } else if (targetVersionFound && match($0, "^v") > 0) {
- previousVersionFound = 1;
- }
-
- if (targetVersionFound && !previousVersionFound) {
- print $0;
- }
- }
- ' CHANGELOG.rst > changelog
-
- - name: Create a release
- env:
- GITHUB_TOKEN: ${{ github.TOKEN }}
- run: gh release create "${{ env.RELEASE_VERSION }}" --title "Fusion Collection v${{ env.RELEASE_VERSION }}" --notes-file changelog
-
- publish_collection_to_galaxy:
- runs-on: ubuntu-latest
- environment: fusion-env
- needs: create_github_release
- steps:
- - name: Checkout repository
- uses: actions/checkout@v2
-
- - name: Get version from galaxy.yml
- run: |
- RELEASE_VERSION=$(grep 'version:' galaxy.yml | awk '{print $2}')
- echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
-
- - name: Set up Python
- uses: actions/setup-python@v2
- with:
- python-version: "3.x"
-
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install ansible ansible-lint yamllint
-
- - name: Build Ansible Collection
- run: ansible-galaxy collection build
-
- - name: Release to Ansible Galaxy
- run: ansible-galaxy collection publish --api-key=${{ secrets.ANSIBLE_GALAXY_API_KEY }} ./purestorage-fusion-${{ env.RELEASE_VERSION }}.tar.gz
-
- publish_collection_to_automation_hub:
- runs-on: ubuntu-latest
- environment: fusion-env
- needs: create_github_release
- steps:
- - name: Checkout repository
- uses: actions/checkout@v2
-
- - name: Get version from galaxy.yml
- run: |
- RELEASE_VERSION=$(grep 'version:' galaxy.yml | awk '{print $2}')
- echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
-
- - name: Set up Python
- uses: actions/setup-python@v2
- with:
- python-version: "3.x"
-
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install ansible ansible-lint yamllint
-
- - name: Build Ansible Collection
- run: ansible-galaxy collection build
- - name: Create config for Automation Hub
- run: |
- cat << EOF > ansible.cfg
- [galaxy]
- server_list = rh_automation_hub
- [galaxy_server.rh_automation_hub]
- url=${{ secrets.RH_AUTOMATION_HUB_URL }}
- auth_url=${{ secrets.RH_SSO_URL }}
- token=${{ secrets.RH_AUTOMATION_HUB_TOKEN }}
- EOF
-
- - name: Release to Automation Hub
- run: ansible-galaxy collection publish ./purestorage-fusion-${{ env.RELEASE_VERSION }}.tar.gz
diff --git a/ansible_collections/purestorage/fusion/.github/workflows/main.yml b/ansible_collections/purestorage/fusion/.github/workflows/main.yml
deleted file mode 100644
index 5c9a3914b..000000000
--- a/ansible_collections/purestorage/fusion/.github/workflows/main.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-name: Pure Storage Ansible CI
-
-"on":
- pull_request:
- push:
- schedule:
- - cron: '25 10 * * *'
-
-jobs:
- build:
- name: Build purefusion on Ansible ${{ matrix.ansible }} (Python ${{ matrix.python-version }})
- runs-on: ubuntu-20.04
- strategy:
- matrix:
- ansible:
- - stable-2.14
- - stable-2.15
- - stable-2.16
- - devel
- python-version:
- - 3.9
- - "3.10"
- - "3.11"
- exclude:
- - python-version: 3.9
- ansible: stable-2.16
- - python-version: 3.9
- ansible: devel
- steps:
- - name: Check out code
- uses: actions/checkout@v3
-
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v3
- with:
- python-version: ${{ matrix.python-version }}
-
- - name: Install dependencies
- run: |
- python${{ matrix.python }} -m pip install --upgrade pip
- python${{ matrix.python }} -m pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
- python${{ matrix.python }} -m pip install purefusion pytest
-
- - name: Run sanity tests
- run: |
- pwd
- mkdir -p ansible_collections/purestorage/fusion
- rsync -av . ansible_collections/purestorage/fusion --exclude ansible_collection/purestorage/fusion
- cd ansible_collections/purestorage/fusion
- ansible-test sanity -v --color --python ${{ matrix.python-version }} --docker
-
- - name: Run unit tests
- run: python -m pytest --import-mode=append tests
diff --git a/ansible_collections/purestorage/fusion/.github/workflows/rh_automation_hub_token_keep_alive.yml b/ansible_collections/purestorage/fusion/.github/workflows/rh_automation_hub_token_keep_alive.yml
deleted file mode 100644
index f4e0a667b..000000000
--- a/ansible_collections/purestorage/fusion/.github/workflows/rh_automation_hub_token_keep_alive.yml
+++ /dev/null
@@ -1,19 +0,0 @@
----
-name: "Red Hat Automation Hub - Keep token alive"
-# The SSO token to upload content to Automation Hub must be accessed once every 30 days or it will be turned off
-
-"on":
- schedule:
- - cron: '0 12 1,15 * *' # run 12pm on the 1st and 15th of the month
-
-jobs:
- keep_rh_sso_token_alive:
- runs-on: "ubuntu-latest"
- steps:
- - name: "Run curl command"
- run: |
- curl ${{ secrets.RH_AUTOMATION_HUB_URL }} \
- -d grant_type=refresh_token \
- -d client_id="cloud-services" \
- -d refresh_token="${{ secrets.RH_AUTOMATION_HUB_TOKEN }}" \
- --fail --silent --show-error --output /dev/null
diff --git a/ansible_collections/purestorage/fusion/.github/workflows/stale.yml b/ansible_collections/purestorage/fusion/.github/workflows/stale.yml
deleted file mode 100644
index ee7c9796e..000000000
--- a/ansible_collections/purestorage/fusion/.github/workflows/stale.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Mark stale issues and pull requests
-
-"on":
- schedule:
- - cron: "0 0 * * *"
-
-jobs:
- stale:
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/stale@v1
- with:
- repo-token: ${{ secrets.GITHUB_TOKEN }}
- stale-issue-message: 'Stale issue message'
- stale-pr-message: 'Stale pull request message'
- stale-issue-label: 'no-issue-activity'
- stale-pr-label: 'no-pr-activity'