diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-09-14 14:45:46 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-09-14 14:45:46 -0300 |
commit | a393864ac0554b671f6e5d04def839d76c90032c (patch) | |
tree | 1608b1e90614f7480c95dd2e47fbe15830a28808 /manifests/repository.pp | |
parent | 0c815b656e93e18f7fb6b72c0be4e51069799abe (diff) | |
download | puppet-php-a393864ac0554b671f6e5d04def839d76c90032c.tar.gz puppet-php-a393864ac0554b671f6e5d04def839d76c90032c.tar.bz2 |
Avoid dependency lookup error for /etc/apt/sources.list.d/php.list at php::packages (3)
Diffstat (limited to 'manifests/repository.pp')
-rw-r--r-- | manifests/repository.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/repository.pp b/manifests/repository.pp new file mode 100644 index 0000000..01b4dbf --- /dev/null +++ b/manifests/repository.pp @@ -0,0 +1,15 @@ +class php::repository { + file { '/etc/apt/sources.list.d/php.list': + ensure => present, + owner => "root", + group => "root", + mode => "0644", + notify => Exec['php-apt-auto-update'], + } + + exec { 'php-apt-auto-update': + command => "/usr/bin/apt-get update", + user => "root", + refreshonly => true, + } +} |