summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Krum <krum.spencer@gmail.com>2015-08-17 01:32:19 -0700
committerSpencer Krum <krum.spencer@gmail.com>2015-08-17 01:32:19 -0700
commit886df1d1f0fd7e4c274be8da05df016de9f7b65d (patch)
treed8d584652b3bdd045134be5bdb56cd38c3ea12e3
parent7c837caa9be810a5821ebf4c52fe8aa7c5783719 (diff)
parentfacbd07d35ee9527ac950c804889f2ffece96809 (diff)
Merge pull request #19 from lbdr/master
Support for Raspbian
-rw-r--r--manifests/params.pp2
-rw-r--r--spec/classes/unattended_upgrades_spec.rb16
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
{