Puppet Class: profile::wmcs::services::toolsdb_apt_pinning
- Defined in:
- modules/profile/manifests/wmcs/services/toolsdb_apt_pinning.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'modules/profile/manifests/wmcs/services/toolsdb_apt_pinning.pp', line 2
class profile::wmcs::services::toolsdb_apt_pinning (
) {
apt::pin { 'toolsdb_no_debian_package':
package => 'mariadb-server',
pin => 'version *',
priority => -1,
}
if debian::codename::eq('bullseye') {
# A pin with priority between 0 and 100 will allow the package to be installed
# but will not allow upgrading it (unless manually asked to do so).
apt::pin { 'toolsdb_mariadb_104_no_auto_updates':
package => 'wmf-mariadb104',
pin => 'version *',
priority => 90,
}
apt::pin { 'toolsdb_no_mariadb_106':
package => 'wmf-mariadb106',
pin => 'version *',
priority => -1,
}
} else {
fail("${debian::codename()}: not supported by profile::wmcs::services::toolsdb_apt_pinning")
}
}
|