Puppet Class: php::apt
- Defined in:
- manifests/apt.pp
Overview
Class: php::apt
Configure dotdeb package repository
Parameters
No parameters
Variables
No variables
Examples
include php::apt
Authors
Christian “Jippi” Winther <jippignu@gmail.com>
Copyright
Copyright 2012-2013 Christian “Jippi” Winther, unless otherwise noted.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'manifests/apt.pp', line 25
class php::apt(
$location = 'http://packages.dotdeb.org',
$release = 'wheezy-php55',
$repos = 'all',
$include_src = false,
$dotdeb = true
) {
apt::source { "source_php_${release}":
location => $location,
release => $release,
repos => $repos,
include_src => $include_src
}
if ($dotdeb) {
# wheezy-php55 requires both repositories to work correctly
# See: http://www.dotdeb.org/instructions/
if $release == 'wheezy-php55' {
apt::source { 'dotdeb-wheezy':
location => $location,
release => 'wheezy',
repos => $repos,
include_src => $include_src
}
}
exec { 'add_dotdeb_key':
command =>
'curl -L --silent "http://www.dotdeb.org/dotdeb.gpg" | apt-key add -',
unless => 'apt-key list | grep -q dotdeb',
path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ];
}
Exec['add_dotdeb_key'] -> Apt::Source["source_php_${release}"]
}
}
|