Skip to content

Commit

Permalink
Support fetching debian packages over http
Browse files Browse the repository at this point in the history
  • Loading branch information
deric committed Mar 6, 2024
1 parent 32f96e5 commit bbf1988
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
3 changes: 1 addition & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Class: beegfs
# ===========================
# @summary Manages beegfs installations
#
# @param manage_repo
# @param mgmtd_host
Expand Down
27 changes: 22 additions & 5 deletions manifests/repo/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
#
# @param manage_repo
# @param package_source
# Either `beegfs` or `beegfs-http` for unsecure transport
# @param release
# @param gpg_key_id
# @param dist

class beegfs::repo::debian (
Boolean $manage_repo = true,
Enum['beegfs'] $package_source = $beegfs::package_source,
Beegfs::Release $release = $beegfs::repo::release,
Optional[String] $gpg_key_id = undef,
Optional[String] $dist = undef,
Boolean $manage_repo = true,
Beegfs::PackageSource $package_source = $beegfs::package_source,
Beegfs::Release $release = $beegfs::repo::release,
Optional[String] $gpg_key_id = undef,
Optional[String] $dist = undef,
) {
include apt

Expand Down Expand Up @@ -103,6 +104,22 @@
},
}
}
'beegfs-http': {
apt::source { 'beegfs':
location => "http://www.beegfs.io/release/beegfs_${_release}",
repos => 'non-free',
architecture => 'amd64',
release => $_os_release,
key => {
'id' => $_gpg_key_id,
'source' => "https://www.beegfs.com/release/beegfs_${_release}/gpg/${_gpg_key}",
},
include => {
'src' => false,
'deb' => true,
},
}
}
default: {
fail("Unknown package source '${package_source}'")
}
Expand Down
2 changes: 1 addition & 1 deletion types/packagesource.pp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
type Beegfs::PackageSource = Enum['beegfs']
type Beegfs::PackageSource = Enum['beegfs','beegfs-http']

0 comments on commit bbf1988

Please sign in to comment.