From 2cc4603f5386efec87bd4ac50e706aefcda70a85 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Fri, 14 Aug 2015 16:36:52 +0200 Subject: [PATCH] Fix repository on Ubuntu --- manifests/repository.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/repository.pp b/manifests/repository.pp index 9adbcd0..68cfd44 100644 --- a/manifests/repository.pp +++ b/manifests/repository.pp @@ -19,14 +19,14 @@ if ($bool_manage_repository){ case $::operatingsystem { - redhat,centos,fedora,Scientific,OracleLinux: { + /(?i:redhat|centos|fedora|scientific|oraclelinux)/: { file { 'bareos.repo': path => '/etc/yum.repos.d/bareos.repo', content => template('bareos/bareos.repo.erb'), } } - Debian,Ubuntu: { + /(?i:debian|ubuntu)/: { file { '/etc/apt/sources.list.d/bareos.list': content => "deb http://download.bareos.org/bareos/release/${bareos::repo_flavour}/${bareos::repo_distro} /\n" }