diff options
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'], } |