Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Abs paths for all commands
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
init.pp
1
# apt.pp
2
3
class apt {
4
$root = '/etc/apt'
5
$provider = '/usr/bin/apt-get'
6
7
file { "sources.list":
8
name => "${root}/sources.list",
9
ensure => present,
10
owner => root,
11
group => root,
12
mode => 644,
13
}
14
15
file { "sources.list.d":
16
name => "${root}/sources.list.d",
17
ensure => directory,
18
owner => root,
19
group => root,
20
}
21
22
exec { "apt_update":
23
command => "${provider} update",
24
subscribe => [ File["sources.list"], File["sources.list.d"] ],
25
refreshonly => true,
26
}
27
}