X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fppa.pp;h=6352352c8d54711baeffecb0871c0dfa17bfc4eb;hb=a531b2b4245f2df86ddf8a11e53568f43b6e1ffb;hp=cf98fdd5e1a153da357f58afb7888399ea113814;hpb=93f40ca8928109956f3ecebbe8077414c5b52a29;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/ppa.pp b/manifests/ppa.pp index cf98fdd..6352352 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -2,17 +2,15 @@ define apt::ppa( $ensure = 'present', $options = $::apt::ppa_options, - $release = $::apt::params::xfacts['lsbdistcodename'], + $release = $::apt::xfacts['lsbdistcodename'], $package_name = $::apt::ppa_package, $package_manage = false, ) { - include 'apt::params' - unless $release { fail('lsbdistcodename fact not available: release parameter required') } - if $::apt::params::xfacts['lsbdistid'] == 'Debian' { + if $::apt::xfacts['lsbdistid'] == 'Debian' { fail('apt::ppa is not currently supported on Debian.') } @@ -47,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, } @@ -59,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'], } } }