From 0b5f1ebeafa5331df752477c1b45812475f47697 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Mon, 19 Dec 2016 10:52:09 +1100 Subject: [PATCH] Fedora: pre-install iptables to work-around dependency issue As described in the comment, we need to pre-install the iptables package before the iptables-service package to avoid dependency issues. This was causing F25 build failures. Change-Id: I9541a1c8f11566198b6fa622e36c4be59d6670d2 --- manifests/init.pp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 6ffb172..b280a06 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -20,6 +20,21 @@ class iptables( include ::iptables::params + # This is to work-around rhbz#1327786 ; the iptables-service package + # incorrectly "provides" an old iptables version and confuses rpm, + # making it uninstallable (this was apparently done as part of a + # package-split). Pre-installing the iptables instead of leaving it + # up to the dependency resolver works-around this. + # 2016-12-20 : fixed in iptables-1.6.0-3.fc26 so we can remove this + # when we've moved past F25 + if $::operatingsystem == 'Fedora' { + package { 'iptables-actual': + ensure => present, + name => 'iptables', + before => Package['iptables'] + } + } + package { 'iptables': ensure => present, name => $::iptables::params::package_name,