-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added Privileged Remote Access Playbooks (#3)
* feat: Added Privileged Remote Access Playbooks
- Loading branch information
Showing
44 changed files
with
2,652 additions
and
778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: ZPA Test | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
zpa-test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10"] | ||
# environment: | ||
# - ZPA_QA_TENANT01 | ||
# - ZPA_QA_TENANT02 | ||
# environment: ${{ matrix.environment }} | ||
steps: | ||
- name: Check out source | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry | ||
uses: Gr1N/setup-poetry@v9 | ||
with: | ||
poetry-version: 1.8.2 | ||
|
||
- name: Get poetry cache directory | ||
id: poetry-cache | ||
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache poetry dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.poetry-cache.outputs.dir }} | ||
key: | ||
${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ | ||
hashFiles('**/poetry.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-poetry-${{ matrix.python-version }}- | ||
- name: Install Ansible | ||
run: pip install 'ansible>=2.14' | ||
|
||
- name: Install Ansible Lint | ||
run: pip install 'ansible-lint>=24.6.1' | ||
|
||
- name: Install required collections | ||
run: poetry run ansible-galaxy collection install -r collections/requirements.yml --force | ||
|
||
- name: Run ansible-lint | ||
run: poetry run ansible-lint *.yml | ||
|
||
# - name: Run integration tests with retries | ||
# run: | | ||
# max_attempts=3 | ||
# attempt=0 | ||
# until [ "$attempt" -ge "$max_attempts" ] | ||
# do | ||
# attempt=$((attempt+1)) | ||
# poetry run make test:integration:zpa && break | ||
# echo "Attempt $attempt of $max_attempts failed. Retrying..." | ||
# sleep 10 | ||
# done | ||
# if [ "$attempt" -eq "$max_attempts" ]; then | ||
# echo "Test failed after $max_attempts attempts." | ||
# exit 1 | ||
# fi | ||
# env: | ||
# ZPA_CLIENT_ID: ${{ secrets.ZPA_CLIENT_ID }} | ||
# ZPA_CLIENT_SECRET: ${{ secrets.ZPA_CLIENT_SECRET }} | ||
# ZPA_CUSTOMER_ID: ${{ secrets.ZPA_CUSTOMER_ID }} | ||
# ZPA_CLOUD: ${{ secrets.ZPA_CLOUD }} | ||
# OKTA_CLIENT_ORGURL: ${{ secrets.OKTA_CLIENT_ORGURL }} | ||
# OKTA_CLIENT_TOKEN: ${{ secrets.OKTA_CLIENT_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
### [1.0.2](https://github.com/zscaler/zpacloud-playbooks/compare/v1.0.1...v1.0.2) (2024-04-30) | ||
# Zscaler Private Access (ZPA) Ansible Playbooks | ||
|
||
## 1.1.0 (September, 3 2024) | ||
|
||
### Notes | ||
|
||
- Python Versions: **v3.9, v3.10, v3.11** | ||
|
||
### Feature | ||
|
||
* - [PR #3](https://github.com/zscaler/zpacloud-playbooks/pull/3) Added Privileged Remote Access Playbooks | ||
|
||
### Bug Fixes | ||
|
||
* Added ansible-core to pyproject.toml ([181b6ab](https://github.com/zscaler/zpacloud-playbooks/commit/181b6ab5a1be2e9ad35f4e8b1f14e993e63553ca)) | ||
|
||
### [1.0.1](https://github.com/zscaler/zpacloud-playbooks/compare/v1.0.0...v1.0.1) (2024-04-30) | ||
## 1.0.1 (August, 29 2024) | ||
|
||
### Notes | ||
|
||
- Python Versions: **v3.9, v3.10, v3.11** | ||
|
||
### Bug Fixes | ||
|
||
* Fixed README links and instructions ([a23cf4a](https://github.com/zscaler/zpacloud-playbooks/commit/a23cf4ab41325ee055c3af38948f959c01362ec5)) | ||
|
||
## 1.0.0 (2024-04-29) | ||
|
||
|
||
## 1.0.0 (August, 29 2024) | ||
|
||
### Notes | ||
|
||
- Python Versions: **v3.9, v3.10, v3.11** | ||
|
||
### Features | ||
|
||
* Release v0.1.0 ([807b3e6](https://github.com/zscaler/zpacloud-playbooks/commit/807b3e60804d609209fe6e041f60ba6aa10e617c)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.