Fixes #16. Ubuntu caches rules. This doesn't allow us to reload the
daemon and to apply new rules. Also this is a ubuntu only feature, it
works well on all other platforms without cache.
line => 'ENABLED="yes"',
match => 'ENABLED=',
}
+ file_line{'disable_ferm_cache':
+ path => '/etc/default/ferm',
+ line => 'CACHE="no"',
+ match => 'CACHE=',
+ }
}
}
}
it { is_expected.to contain_service('ferm') }
if facts[:os]['name'] == "Ubuntu"
it { is_expected.to contain_file_line('enable_ferm') }
+ it { is_expected.to contain_file_line('disable_ferm_cache') }
end
end
context 'with managed configfile' do