]> gitweb.fluxo.info Git - puppet-ferm.git/commitdiff
add official ubuntu support
authorTim Meusel <tim@bastelfreak.de>
Wed, 11 Jul 2018 08:43:41 +0000 (10:43 +0200)
committerTim Meusel <tim@bastelfreak.de>
Wed, 11 Jul 2018 08:43:41 +0000 (10:43 +0200)
metadata.json
spec/classes/ferm_spec.rb

index 5eb2532443b81163ae54d574db773aace8973be9..00f81416edfcc7738ffd533e754272d7b4b0ba77 100644 (file)
         "11"
       ]
     },
+    {
+      "operatingsystem": "Ubuntu",
+      "operatingsystemrelease": [
+        "14.04",
+        "16.04",
+        "18.04"
+      ]
+    },
     {
       "operatingsystem": "Fedora",
       "operatingsystemrelease": [
index e039c149a4ac9d3852065fe57b111de7f23b64d8..dbf9cbd8cded5b46e7aeb27da7789bc802ef0005 100644 (file)
@@ -31,14 +31,21 @@ describe 'ferm' do
 
         it { is_expected.to compile.with_all_deps }
         it { is_expected.to contain_service('ferm') }
+        if facts[:os]['name'] == "Ubuntu"
+          it { is_expected.to contain_file_line('enable_ferm') }
+        end
       end
       context 'with managed configfile' do
         let :params do
           { manage_configfile: true }
         end
 
+        if facts[:os]['name'] == 'Ubuntu'
+          it { is_expected.to contain_concat('/etc/ferm/ferm.conf') }
+        else
+          it { is_expected.to contain_concat('/etc/ferm.conf') }
+        end
         it { is_expected.to compile.with_all_deps }
-        it { is_expected.to contain_concat('/etc/ferm.conf') }
         it { is_expected.to contain_concat__fragment('ferm_header.conf') }
         it { is_expected.to contain_concat__fragment('ferm.conf') }
       end