Added support for deploying APT sources.list
This commit is contained in:
parent
44808208b4
commit
492044ea42
2 changed files with 86 additions and 0 deletions
|
@ -16,6 +16,40 @@ class apt {
|
|||
}
|
||||
|
||||
|
||||
# Configure /etc/apt/sources.list
|
||||
#
|
||||
# === Global variables
|
||||
#
|
||||
# $apt_archive_url:
|
||||
# Base URL of archive repository. Defaults to http://archive.ubuntu.com/ubuntu/.
|
||||
# $apt_security_url:
|
||||
# Base URL of security repository. Defaults to http://security.ubuntu.com/ubuntu/.
|
||||
#
|
||||
class apt::sources {
|
||||
|
||||
tag("bootstrap")
|
||||
|
||||
include apt
|
||||
|
||||
if !$apt_archive_url {
|
||||
$apt_archive_url = "http://archive.ubuntu.com/ubuntu/"
|
||||
}
|
||||
if !$apt_security_url {
|
||||
$apt_security_url = "http://security.ubuntu.com/ubuntu/"
|
||||
}
|
||||
|
||||
file { "/etc/apt/sources.list":
|
||||
ensure => present,
|
||||
mode => 0644,
|
||||
owner => root,
|
||||
group => root,
|
||||
content => template("apt/sources.list.erb"),
|
||||
notify => Exec["apt-get-update"],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Install apt-cacher server
|
||||
#
|
||||
class apt::cacher {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue