Ative o php5-mcrypt com o fantoche no Ubuntu 13.10 ou 14.04
case $lsbdistid {
'Ubuntu': {
case $lsbdistrelease {
'13.10': {
file { '/etc/php5/apache2/conf.d/20-mcrypt.ini':
ensure => link,
target => '/etc/php5/conf.d/mcrypt.ini',
notify => Service['apache2'],
require => [
Package['libapache2-mod-php5'],
Package['php5-mcrypt'],
],
}
file { '/etc/php5/cli/conf.d/20-mcrypt.ini':
ensure => link,
target => '/etc/php5/conf.d/mcrypt.ini',
require => [
Package['php5-mcrypt'],
Package['php5-cli'],
],
}
}
'14.04': {
file { '/etc/php5/apache2/conf.d/20-mcrypt.ini':
ensure => link,
target => '../../mods-available/mcrypt.ini',
notify => Service['apache2'],
require => [
Package['libapache2-mod-php5'],
Package['php5-mcrypt'],
],
}
file { '/etc/php5/cli/conf.d/20-mcrypt.ini':
ensure => link,
target => '../../mods-available/mcrypt.ini',
require => [
Package['php5-mcrypt'],
Package['php5-cli'],
],
}
}
}
}
}