Skip to content

Commit

Permalink
Merge pull request #111 from hpc-unibe-ch/bugfix/metadata-wrong-type
Browse files Browse the repository at this point in the history
Fix datatype of attribute metadata
  • Loading branch information
alexjfisher authored Dec 12, 2019
2 parents 27b8db0 + 7670032 commit fd630ef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
36 changes: 18 additions & 18 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# The metadata type for the repository. More than one value can be used in
# an array.
# Default: repomd
# Values: yum,apt,repomd
# Values: yum,apt,repomd,repoview
#
# [*update*]
# The schedule for updating.The 'now' will update the repo on every run of
Expand Down Expand Up @@ -118,23 +118,23 @@
Enum['present', 'absent'] $ensure,
String[1] $release,
Mrepo::Arch $arch,
Hash[String, String] $urls = {},
String[1] $metadata = 'repomd',
Mrepo::Update $update = 'nightly',
Variant[String[1], Integer] $hour = '0',
Variant[String[1], Integer] $minute = '0',
Optional[String[1]] $iso = undef,
String[1] $repotitle = $name,
Variant[String[1], Integer] $gen_timeout = '1200',
Variant[String[1], Integer] $sync_timeout = '1200',
Enum['std', 'ncc', 'rhn'] $type = 'std',
Optional[String[1]] $typerelease = undef,
Optional[String[1]] $mrepo_env = undef,
Stdlib::Absolutepath $mrepo_command = '/usr/bin/mrepo',
String $mrepo_options = '-qgu',
Optional[String[1]] $mrepo_logging = undef,
Optional[String[1]] $ncc_username = undef,
Optional[String[1]] $ncc_password = undef,
Hash[String, String] $urls = {},
Variant[Mrepo::Metadata,Array[Mrepo::Metadata]] $metadata = 'repomd',
Mrepo::Update $update = 'nightly',
Variant[String[1], Integer] $hour = '0',
Variant[String[1], Integer] $minute = '0',
Optional[String[1]] $iso = undef,
String[1] $repotitle = $name,
Variant[String[1], Integer] $gen_timeout = '1200',
Variant[String[1], Integer] $sync_timeout = '1200',
Enum['std', 'ncc', 'rhn'] $type = 'std',
Optional[String[1]] $typerelease = undef,
Optional[String[1]] $mrepo_env = undef,
Stdlib::Absolutepath $mrepo_command = '/usr/bin/mrepo',
String $mrepo_options = '-qgu',
Optional[String[1]] $mrepo_logging = undef,
Optional[String[1]] $ncc_username = undef,
Optional[String[1]] $ncc_password = undef,
) {
include mrepo

Expand Down
1 change: 1 addition & 0 deletions types/metadata.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type Mrepo::Metadata = Enum['yum','apt','repomd','repoview']

0 comments on commit fd630ef

Please sign in to comment.