# Get EPEL installed before we continue:
if adjust_repos:
distro.packager.install('epel-release')
- distro.packager.install_priorities_plugin()
+ distro.packager.install('yum-plugin-priorities')
distro.conn.remote_module.enable_yum_priority_obsoletes()
logger.warning('check_obsoletes has been enabled for Yum priorities plugin')
if version_kind in ['stable', 'testing']:
distro.conn.remote_module.write_yum_repo(ceph_repo_content)
# set the right priority
- distro.packager.install_priorities_plugin()
+ if distro.packager.name == 'yum':
+ distro.packager.install('yum-plugin-priorities')
distro.conn.remote_module.set_repo_priority(['Ceph', 'Ceph-noarch', 'ceph-source'])
- distro.conn.logger.warning('alter.d ceph.repo priorities to contain: priority=1')
+ distro.conn.logger.warning('altered ceph.repo priorities to contain: priority=1')
if extra_installs and packages:
# set the right priority
if kw.get('priority'):
- distro.packager.install_priorities_plugin()
- logger.warning(
- 'ensuring that {repo_path} contains a high priority'.format(
- repo_path=repo_path)
- )
+ if distro.packager.name == 'yum':
+ distro.packager.install('yum-plugin-priorities')
distro.conn.remote_module.set_repo_priority([reponame], repo_path)
logger.warning('altered {reponame}.repo priorities to contain: priority=1'.format(