diff options
author | Spencer Krum <krum.spencer@gmail.com> | 2015-08-17 01:32:19 -0700 |
---|---|---|
committer | Spencer Krum <krum.spencer@gmail.com> | 2015-08-17 01:32:19 -0700 |
commit | 886df1d1f0fd7e4c274be8da05df016de9f7b65d (patch) | |
tree | d8d584652b3bdd045134be5bdb56cd38c3ea12e3 | |
parent | 7c837caa9be810a5821ebf4c52fe8aa7c5783719 (diff) | |
parent | facbd07d35ee9527ac950c804889f2ffece96809 (diff) |
Merge pull request #19 from lbdr/master
Support for Raspbian
-rw-r--r-- | manifests/params.pp | 2 | ||||
-rw-r--r-- | spec/classes/unattended_upgrades_spec.rb | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/manifests/params.pp b/manifests/params.pp index 22c3052..27beac7 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -32,7 +32,7 @@ class unattended_upgrades::params { } case $xfacts['lsbdistid'] { - 'debian': { + 'debian', 'raspbian': { case $xfacts['lsbdistcodename'] { 'squeeze': { $legacy_origin = true diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb index fa8d1b1..f78eaa9 100644 --- a/spec/classes/unattended_upgrades_spec.rb +++ b/spec/classes/unattended_upgrades_spec.rb @@ -110,6 +110,22 @@ describe 'unattended_upgrades' do )} end + context 'with defaults on Raspbian' do + let(:facts) { { + :osfamily => 'Debian', + :lsbdistid => 'Raspbian', + :lsbistcodename => 'jessie', + :lsbrelease => '8.0', + } } + it { + should create_file(file_unattended).with({ + 'owner' => 'root', + 'group' => 'root', + 'mode' => '0644', + }) + } + end + context 'set all the things' do let :params do { |