Puppet Class: mongodb::repo::zypper
- Inherits:
- mongodb::repo
- Defined in:
- manifests/repo/zypper.pp
Summary
This is a repo class for zypperOverview
PRIVATE CLASS: do not use directly
This is a private class and cannot be used from outside this module.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/repo/zypper.pp', line 11
class mongodb::repo::zypper inherits mongodb::repo {
# We try to follow/reproduce the instruction
# http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/
assert_private()
if $mongodb::repo::ensure == 'present' or $mongodb::repo::ensure == true {
zypprepo { 'mongodb':
descr => $mongodb::repo::description,
baseurl => $mongodb::repo::location,
gpgcheck => '0',
enabled => '1',
}
Zypprepo['mongodb'] -> Package<| tag == 'mongodb_package' |>
}
else {
zypprepo { 'mongodb':
ensure => absent,
}
}
}
|