aboutsummaryrefslogtreecommitdiff
path: root/manifests/repository.pp
blob: 2c5ffd48c30ea6fd1fb282dc124ee276f7ea54b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class php::repository(
  $ensure      = 'present',
  $content     = undef,
  $dependencies = undef,
) {
  file { '/etc/apt/sources.list.d/php.list':
    ensure  => $ensure,
    owner   => "root",
    group   => "root",
    mode    => "0644",
    content => $content,
    require => $dependencies,
    notify  => Exec['php-apt-auto-update'],
  }

  exec { 'php-apt-auto-update':
    command     => "/usr/bin/apt-get update",
    user        => "root",
    refreshonly => true,
  }
}