Skip to content

repo-error-handler

Error for validating connectivity to repo URLs

repo-error-handler

This profile allows the centos-drp-only-repos, ubuntu-drp-only-repos, and debian-drp-only-repos tasks to upon failure attempt to validate connectivity the repo URLs if specified in package-repositories for the installed or updating OS.

Usage

Attach this profile to a stage or machine or global profile that is going to run the repo configuration tasks.

Objects that Reference repo-error-handler

Objects used by repo-error-handler

  • params task-error-handlers in field Params as value map[centos-drp-only-repos:[utility-connectivity-test] debian-drp-only-repos:[utility-connectivity-test] ubuntu-drp-only-repos:[utility-connectivity-test]]
  • params utility/connectivity-urls in field Params as value jsonobject: {{ $mylist := list }} {{ $mylist = append $mylist .SecureProvisionerHostURL }} {{ range .MachineRepos }} {{ $iu := urlParse .InstallURL}} {{ $pu := urlParse .PackageURL}} {{ $ip := cat (get $iu "scheme") "://" (get $iu "host") | nospace }} {{ $up := cat (get $pu "scheme") "://" (get $pu "host") | nospace }} {{ if ne $ip "" }} {{ $mylist = append $mylist $ip }} {{ end }} {{ if ne $up "" }} {{ $mylist = append $mylist $up }} {{ end }} {{ end }} {{ $mylist | uniq | toJson }}