Skip to content

Commit

Permalink
Make required system rpms customizable
Browse files Browse the repository at this point in the history
(rpm_requirements) new class parameter
  • Loading branch information
glennmorris committed Mar 20, 2024
1 parent 51776d4 commit 43c1f7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
# Boolean; if false do not prefix systemctl services with the instrument.
# @param rpm_repo
# String giving repo url for rpm download
# @param rpm_requirements
# Array of system rpm requirements to install
# @param rpms_private
# Optional hash of rpms to download from private repo.
# @param rpm_repo_private
Expand All @@ -57,6 +59,7 @@
Boolean $prefix_service = true,
## Old: http://www.slac.stanford.edu/~gmorris/lsst/pkgarchive
String $rpm_repo = 'https://repo-nexus.lsst.org/nexus/repository/ts_yum/releases',
Array[String] $rpm_requirements = ['linuxptp'],
## If specified, rpms to fetch from _private repo using _user and _pass.
Hash[String,String] $rpms_private = {},
## Defaults to _repo with yum -> yum_private.
Expand Down
5 changes: 3 additions & 2 deletions manifests/rpms.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# Install rpms needed by CCS/SAL
#
class ccs_sal::rpms {
## Needed by ts_sal_utils.
ensure_packages(['linuxptp'])
$reqs = $ccs_sal::rpm_requirements

ensure_packages($reqs)

## Public rpms.
$repo = $ccs_sal::rpm_repo
Expand Down

0 comments on commit 43c1f7f

Please sign in to comment.