aboutsummaryrefslogtreecommitdiff
path: root/manifests/ppa.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/ppa.pp')
-rw-r--r--manifests/ppa.pp14
1 files changed, 12 insertions, 2 deletions
diff --git a/manifests/ppa.pp b/manifests/ppa.pp
index 2367bf9..07b96fa 100644
--- a/manifests/ppa.pp
+++ b/manifests/ppa.pp
@@ -11,6 +11,7 @@ class php::ppa inherits php::repository {
# require => Package['python-software-properties'],
#}
+ # Old location
file { '/etc/apt/trusted.gpg.d/ondrej_ubuntu_php.gpg':
ensure => present,
owner => "root",
@@ -20,8 +21,17 @@ class php::ppa inherits php::repository {
notify => Exec['php-apt-auto-update'],
}
+ file { '/etc/apt/keyrings/ondrej_ubuntu_php.gpg':
+ ensure => present,
+ owner => "root",
+ group => "root",
+ mode => "0644",
+ source => 'puppet:///modules/php/ondrej_ubuntu_php.gpg',
+ notify => Exec['php-apt-auto-update'],
+ }
+
File['/etc/apt/sources.list.d/php.list'] {
- content => "deb http://ppa.launchpad.net/ondrej/php/ubuntu ${::lsbdistcodename} main\n",
- require => File['/etc/apt/trusted.gpg.d/ondrej_ubuntu_php.gpg'],
+ content => "deb [signed-by=/etc/apt/keyrings/ondrej_ubuntu_php.gpg] http://ppa.launchpad.net/ondrej/php/ubuntu ${::lsbdistcodename} main\n",
+ require => File['/etc/apt/keyrings/ondrej_ubuntu_php.gpg'],
}
}