X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fppa.pp;h=6352352c8d54711baeffecb0871c0dfa17bfc4eb;hb=6698cbe94bffec8469fe82b8dfafffe2ee3e6089;hp=5d4c8903d5c6d9968c64e255f63cc61466554326;hpb=dc746734f17faa996e8441d176143945e8347330;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/ppa.pp b/manifests/ppa.pp index 5d4c890..6352352 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -10,8 +10,8 @@ define apt::ppa( fail('lsbdistcodename fact not available: release parameter required') } - if $::apt::distid != 'ubuntu' { - fail('apt::ppa is currently supported on Ubuntu and LinuxMint only.') + if $::apt::xfacts['lsbdistid'] == 'Debian' { + fail('apt::ppa is not currently supported on Debian.') } $filename_without_slashes = regsubst($name, '/', '-', 'G') @@ -31,9 +31,9 @@ define apt::ppa( $_proxy = $::apt::_proxy if $_proxy['host'] { if $_proxy['https'] { - $_proxy_env = ["http_proxy=http://${_proxy['host']}:${_proxy['port']}", "https_proxy=https://${_proxy['host']}:${_proxy['port']}"] + $_proxy_env = ["http_proxy=http://${$_proxy['host']}:${$_proxy['port']}", "https_proxy=https://${$_proxy['host']}:${$_proxy['port']}"] } else { - $_proxy_env = ["http_proxy=http://${_proxy['host']}:${_proxy['port']}"] + $_proxy_env = ["http_proxy=http://${$_proxy['host']}:${$_proxy['port']}"] } } else { $_proxy_env = [] @@ -45,7 +45,7 @@ define apt::ppa( unless => "/usr/bin/test -s ${::apt::sources_list_d}/${sources_list_d_filename}", user => 'root', logoutput => 'on_failure', - notify => Exec['apt_update'], + notify => Class['apt::update'], require => $_require, } @@ -57,7 +57,7 @@ define apt::ppa( else { file { "${::apt::sources_list_d}/${sources_list_d_filename}": ensure => 'absent', - notify => Exec['apt_update'], + notify => Class['apt::update'], } } }