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" }