Skip to content

Commit ec27599

Browse files
authored
Merge pull request #9 from dmurphy18/rmphoton_cleanup
Remove testing on Photon 5 and final cleanup
2 parents 1244c80 + 4f545d5 commit ec27599

File tree

3 files changed

+3
-75
lines changed

3 files changed

+3
-75
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -132,21 +132,6 @@ jobs:
132132

133133

134134

135-
photon-5:
136-
name: Photon OS 5
137-
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
138-
uses: ./.github/workflows/test-linux.yml
139-
needs:
140-
- lint
141-
- generate-actions-workflow
142-
with:
143-
distro-slug: photon-5
144-
display-name: Photon OS 5
145-
container-slug: systemd-photon-5
146-
timeout: 20
147-
instances: '["3006", "3006-8", "3007", "3007-1"]'
148-
149-
150135
rockylinux-9:
151136
name: Rocky Linux 9
152137
if: github.event_name == 'push' || needs.collect-changed-files.outputs.run-tests == 'true'
@@ -171,7 +156,6 @@ jobs:
171156
- lint
172157
- generate-actions-workflow
173158
- windows-2022
174-
- photon-5
175159
- rockylinux-9
176160
if: always()
177161
steps:

.github/workflows/templates/generate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
os.chdir(os.path.abspath(os.path.dirname(__file__)))
88

99
## "ubuntu-2204",
10+
## "photon-5",
1011
LINUX_DISTROS = [
11-
"photon-5",
1212
"rockylinux-9",
1313
]
1414

@@ -44,15 +44,15 @@
4444
LATEST_PKG_BLACKLIST = []
4545

4646
## "ubuntu-2204": "Ubuntu 22.04",
47+
## "photon-5": "Photon OS 5",
4748
DISTRO_DISPLAY_NAMES = {
48-
"photon-5": "Photon OS 5",
4949
"rockylinux-9": "Rocky Linux 9",
5050
"windows-2022": "Windows 2022",
5151
}
5252

5353
## "ubuntu-2204": "systemd-ubuntu-22.04",
54+
## "photon-5": "systemd-photon-5",
5455
CONTAINER_SLUG_NAMES = {
55-
"photon-5": "systemd-photon-5",
5656
"rockylinux-9": "systemd-rockylinux-9",
5757
"windows-2022": "windows-2022",
5858
}

linux/svtminion.sh

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ readonly SCRIPT_VERSION='SCRIPT_VERSION_REPLACE'
2323

2424
# definitions
2525

26-
## DGM CURL_DOWNLOAD_RETRY_COUNT=5
27-
2826
## Repository locations and naming
2927
readonly default_salt_url_version="latest"
3028
salt_url_version="${default_salt_url_version}"
@@ -427,9 +425,6 @@ _set_log_level() {
427425
# Returns with exit code
428426
#
429427
_get_desired_salt_version_fn() {
430-
# DGM debug output
431-
set -x
432-
set -v
433428

434429
if [[ "$#" -ne 1 ]]; then
435430
_error_log "$0:${FUNCNAME[0]} error expected one parameter "\
@@ -848,50 +843,6 @@ _fetch_vmtools_salt_minion_conf() {
848843
}
849844

850845

851-
## DGM TBD to be removed
852-
## DGM # _curl_download
853-
## DGM #
854-
## DGM # Retrieve file from specified url to specific file
855-
## DGM #
856-
## DGM # Results:
857-
## DGM # Exits with 0 or error code
858-
## DGM #
859-
## DGM
860-
## DGM _curl_download() {
861-
## DGM local file_name="$1"
862-
## DGM local file_url="$2"
863-
## DGM local download_retry_failed=1 # assume issues
864-
## DGM local _retn=0
865-
## DGM
866-
## DGM _info_log "$0:${FUNCNAME[0]} attempting download of file '${file_name}'"
867-
## DGM
868-
## DGM for ((i=0; i<CURL_DOWNLOAD_RETRY_COUNT; i++))
869-
## DGM do
870-
## DGM # ensure minimum version of TLS used is v1.2
871-
## DGM curl -o "${file_name}" --tlsv1.2 -fsSL "${file_url}"
872-
## DGM _retn=$?
873-
## DGM if [[ ${_retn} -ne 0 ]]; then
874-
## DGM _warning_log "$0:${FUNCNAME[0]} failed to download file "\
875-
## DGM "'${file_name}' from '${file_url}' on '${i}' attempt, "\
876-
## DGM "retcode '${_retn}'"
877-
## DGM else
878-
## DGM download_retry_failed=0
879-
## DGM _debug_log "$0:${FUNCNAME[0]} successfully downloaded file "\
880-
## DGM "'${file_name}' from '${file_url}' after '${i}' attempts"
881-
## DGM break
882-
## DGM fi
883-
## DGM done
884-
## DGM if [[ ${download_retry_failed} -ne 0 ]]; then
885-
## DGM _error_log "$0:${FUNCNAME[0]} failed to download file '${file_name}' "\
886-
## DGM "from '${file_url}' after '${CURL_DOWNLOAD_RETRY_COUNT}' attempts"
887-
## DGM fi
888-
## DGM
889-
## DGM _info_log "$0:${FUNCNAME[0]} successfully downloaded file "\
890-
## DGM "'${file_name}' from '${file_url}'"
891-
## DGM return 0
892-
## DGM }
893-
894-
895846
#
896847
# _fetch_salt_minion
897848
#
@@ -909,15 +860,11 @@ _fetch_vmtools_salt_minion_conf() {
909860
#
910861

911862
_fetch_salt_minion() {
912-
# DGM debug output
913-
set -x
914-
set -v
915863

916864
# fetch the current salt-minion into specified location
917865
# could check if already there but by always getting it
918866
# ensure we are not using stale versions
919867
local _retn=0
920-
## DGM local download_retry_failed=1 # assume issues
921868

922869
local salt_pkg_name=""
923870
local salt_url=""
@@ -1775,9 +1722,6 @@ _reconfig_fn () {
17751722
#
17761723

17771724
_install_fn () {
1778-
# DGM debug output
1779-
set -x
1780-
set -v
17811725

17821726
# execute install of Salt minion
17831727
local _retn=0

0 commit comments

Comments
 (0)