aboutsummaryrefslogtreecommitdiff
path: root/manifests/repository.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-12-31 18:22:12 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-12-31 18:22:12 -0300
commit74d515930abbf2278ac4387cb16f5f2ce5f08807 (patch)
treefcdbcc4e91991225ef06c144602c81f37839313e /manifests/repository.pp
parenta344dbf14ca118ea4862f171d2111713607e54c6 (diff)
downloadpuppet-php-74d515930abbf2278ac4387cb16f5f2ce5f08807.tar.gz
puppet-php-74d515930abbf2278ac4387cb16f5f2ce5f08807.tar.bz2
Fix: disable deb.sury repo by defaultHEADmaster
Diffstat (limited to 'manifests/repository.pp')
-rw-r--r--manifests/repository.pp10
1 files changed, 8 insertions, 2 deletions
diff --git a/manifests/repository.pp b/manifests/repository.pp
index 01b4dbf..2c5ffd4 100644
--- a/manifests/repository.pp
+++ b/manifests/repository.pp
@@ -1,9 +1,15 @@
-class php::repository {
+class php::repository(
+ $ensure = 'present',
+ $content = undef,
+ $dependencies = undef,
+) {
file { '/etc/apt/sources.list.d/php.list':
- ensure => present,
+ ensure => $ensure,
owner => "root",
group => "root",
mode => "0644",
+ content => $content,
+ require => $dependencies,
notify => Exec['php-apt-auto-update'],
}