From 74d515930abbf2278ac4387cb16f5f2ce5f08807 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 31 Dec 2024 18:22:12 -0300 Subject: Fix: disable deb.sury repo by default --- manifests/series5.pp | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'manifests/series5.pp') diff --git a/manifests/series5.pp b/manifests/series5.pp index 8a9149c..07cbc0d 100644 --- a/manifests/series5.pp +++ b/manifests/series5.pp @@ -1,25 +1,38 @@ class php::series5( $hardened = true, $manage_mod_php = false, + $deb_sury_repo = 'absent', ) { case $::lsbdistcodename { 'xenial': { - include php::ppa + class { 'php::ppa': + ensure => $deb_sury_repo, + } } 'trusty': { - include php::ppa + class { 'php::ppa': + ensure => $deb_sury_repo, + } } 'bookworm': { - include php::dpa + class { 'php::dpa': + ensure => $deb_sury_repo, + } } 'bullseye': { - include php::dpa - } - 'buster': { - include php::dpa + class { 'php::dpa': + ensure => $deb_sury_repo, + } } 'stretch': { - include php::dpa + class { 'php::dpa': + ensure => $deb_sury_repo, + } + } + 'buster': { + class { 'php::dpa': + ensure => $deb_sury_repo, + } } } -- cgit v1.2.3