Skip to content

Commit

Permalink
Github: Use Saltbox Version Manager
Browse files Browse the repository at this point in the history
Replaces Cloudbox Version Manager
  • Loading branch information
saltydk committed Oct 10, 2023
1 parent 957f762 commit 52523b0
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions inventories/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,10 @@ docker_log_options: "{{ docker_log_options_json
else 'default' }}"

################################
# Cloudbox Version Manager
# Saltbox Version Manager
################################

cvm: https://cvm.saltbox.dev/version?url=
svm: https://svm.saltbox.dev/version?url=

################################
# Global Variables
Expand Down
2 changes: 1 addition & 1 deletion roles/btop/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# GNU General Public License v3.0 #
#########################################################################
---
btop_releases_url: "{{ cvm }}https://api.github.com/repos/aristocratos/btop/releases/latest"
btop_releases_url: "{{ svm }}https://api.github.com/repos/aristocratos/btop/releases/latest"

btop_releases_download_url: https://github.com/aristocratos/btop/releases/download

Expand Down
2 changes: 1 addition & 1 deletion roles/docker/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ docker_update_hosts_service_runtime_max: "3600s"

docker_daemon_storage_driver: "{{ ('zfs' in var_lib_file_system.stdout) | ternary('zfs', 'overlay2') }}"

fuse_overlayfs_releases_url: "{{ cvm }}https://api.github.com/repos/containers/fuse-overlayfs/releases/latest"
fuse_overlayfs_releases_url: "{{ svm }}https://api.github.com/repos/containers/fuse-overlayfs/releases/latest"

fuse_overlayfs_release_lookup_command: |
curl -s {{ fuse_overlayfs_releases_url }} \
Expand Down
2 changes: 1 addition & 1 deletion roles/node_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
---
node_exporter_path: "/opt/node_exporter"

node_exporter_latest_releases_url: "{{ cvm }}https://api.github.com/repos/prometheus/node_exporter/releases/latest"
node_exporter_latest_releases_url: "{{ svm }}https://api.github.com/repos/prometheus/node_exporter/releases/latest"

node_exporter_latest_release_lookup_command: |
curl -s {{ node_exporter_latest_releases_url }} \
Expand Down
2 changes: 1 addition & 1 deletion roles/rclone/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# GNU General Public License v3.0 #
#########################################################################
---
rclone_latest_releases_url: "{{ cvm }}https://api.github.com/repos/rclone/rclone/releases/latest"
rclone_latest_releases_url: "{{ svm }}https://api.github.com/repos/rclone/rclone/releases/latest"

rclone_latest_release_lookup_command: |
curl -s {{ rclone_latest_releases_url }} \
Expand Down
2 changes: 1 addition & 1 deletion roles/rclone/tasks/subtasks/01_build_url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
- name: Build URL | Check if version '{{ rclone_version_specified0 }}' is available
ansible.builtin.shell: |
curl -sL {{ cvm }}https://api.github.com/repos/ncw/rclone/git/refs/tags \
curl -sL {{ svm }}https://api.github.com/repos/ncw/rclone/git/refs/tags \
| jq -r '.[] | .ref' | sed 's/\/\?refs\/tags\/v//g' \
| grep '{{ rclone_version_specified0 }}'
register: rclone_version_specified0_check
Expand Down
2 changes: 1 addition & 1 deletion roles/sanity_check/tasks/subtasks/09_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
register: git_version

- name: Repository | Check Git Origin Hash
ansible.builtin.shell: "curl -L --connect-timeout 2.37 -H 'Accept: application/vnd.github+json' -H 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/saltyorg/Saltbox/commits?sha={{ git_branch.stdout }} | jq -r '.[0][\"sha\"]'"
ansible.builtin.shell: "curl -L --connect-timeout 2.37 -H 'Accept: application/vnd.github+json' -H 'X-GitHub-Api-Version: 2022-11-28' {{ svm }}https://api.github.com/repos/saltyorg/Saltbox/commits?sha={{ git_branch.stdout }} | jq -r '.[0][\"sha\"]'"
register: git_origin_version
ignore_errors: true

Expand Down
2 changes: 1 addition & 1 deletion roles/sub_zero/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ plex_plugin_subzero_paths_info_plist_location: "{{ plex_plugin_subzero_paths_loc
# Repository
################################

plex_plugin_subzero_release_url: "{{ cvm }}https://api.github.com/repos/pannal/Sub-Zero.bundle/releases/latest"
plex_plugin_subzero_release_url: "{{ svm }}https://api.github.com/repos/pannal/Sub-Zero.bundle/releases/latest"

plex_plugin_subzero_download_url_backup: https://github.com/pannal/Sub-Zero.bundle/releases/download/2.6.5.3152/Sub-Zero.bundle-2.6.5.3152.zip
2 changes: 1 addition & 1 deletion roles/transfer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
block:
- name: Get latest transfer URL
ansible.builtin.shell: >-
curl -s {{ cvm }}https://api.github.com/repos/l3uddz/transfer/releases/latest |
curl -s {{ svm }}https://api.github.com/repos/l3uddz/transfer/releases/latest |
jq -r ".assets[] | select(.name | test(\"transfer_v[0-9].[0-9].[0-9]_linux_amd64\")) | .browser_download_url"
args:
executable: /bin/bash
Expand Down
2 changes: 1 addition & 1 deletion roles/unionfs/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mergerfs_version: latest

mergerfs_github_endpoint: "{{ 'latest' if (mergerfs_version == 'latest') else 'tags/' + mergerfs_version }}"

mergerfs_releases_url: "{{ cvm }}https://api.github.com/repos/trapexit/mergerfs/releases/{{ mergerfs_github_endpoint }}"
mergerfs_releases_url: "{{ svm }}https://api.github.com/repos/trapexit/mergerfs/releases/{{ mergerfs_github_endpoint }}"

mergerfs_releases_download_url: https://github.com/trapexit/mergerfs/releases/download

Expand Down
2 changes: 1 addition & 1 deletion roles/webtools/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ plex_plugin_webtools_paths_preferences_location: "{{ plex_paths_plugin_support_l
# Repository
################################

plex_plugin_webtools_release_url: "{{ cvm }}https://api.github.com/repos/ukdtom/WebTools.bundle/releases/latest"
plex_plugin_webtools_release_url: "{{ svm }}https://api.github.com/repos/ukdtom/WebTools.bundle/releases/latest"

plex_plugin_webtools_download_url_backup: https://github.com/ukdtom/WebTools.bundle/releases/download/3.0.0/WebTools.bundle.zip

0 comments on commit 52523b0

Please sign in to comment.