source: trunk/puppet/modules/ubuntu_sources_list/manifests/init.pp @ 410

Last change on this file since 410 was 410, checked in by sebas, 15 years ago

agregamos los repos para virtualbox

File size: 1.3 KB
Line 
1# copyright <sebas @ koumbit.org>
2# Licence: GPL
3#
4
5class ubuntu_sources_list {
6
7   package { [ "apt" ]: ensure => installed }
8
9    file { "/etc/apt/sources.list":
10        owner => "root",
11        group => "root",
12        mode => 0644,
13        content => template("ubuntu_sources_list/sources.list.erb"),
14    }
15    exec{"/usr/bin/apt-get update":
16        refreshonly => true,
17        subscribe => File["/etc/apt/sources.list"],
18        require => File["/etc/apt/sources.list"],
19    }
20}
21
22class ubuntu_sources_list::virtualbox {
23
24   package { [ "apt" ]: ensure => installed }
25
26    file { "/etc/apt/sources.list.d/virtualbox.list":
27        owner => "root",
28        group => "root",
29        mode => 0644,
30        content => template("ubuntu_sources_list/sources.list.d/virtualbox.erb"),
31    }
32    exec{"/usr/bin/apt-get update":
33        refreshonly => true,
34        subscribe => File["/etc/apt/sources.list.d/virtualbox.list"],
35        require => File["/etc/apt/sources.list.d/virtualbox.list"],
36    }
37    exec{"/usr/bin/wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | /usr/bin/sudo /usr/bin/apt-key add -":
38        refreshonly => true,
39        subscribe => File["/etc/apt/sources.list.d/virtualbox.list"],
40        require => File["/etc/apt/sources.list.d/virtualbox.list"],
41    }
42}
Note: See TracBrowser for help on using the repository browser.