diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-12-31 18:22:12 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-12-31 18:22:12 -0300 |
commit | 74d515930abbf2278ac4387cb16f5f2ce5f08807 (patch) | |
tree | fcdbcc4e91991225ef06c144602c81f37839313e /manifests/repository.pp | |
parent | a344dbf14ca118ea4862f171d2111713607e54c6 (diff) | |
download | puppet-php-74d515930abbf2278ac4387cb16f5f2ce5f08807.tar.gz puppet-php-74d515930abbf2278ac4387cb16f5f2ce5f08807.tar.bz2 |
Diffstat (limited to 'manifests/repository.pp')
-rw-r--r-- | manifests/repository.pp | 10 |
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'], } |