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

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

agrego medibuntu a la receta de repos

File size: 2.2 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{"apt-get update ubuntu":
16        command => "/usr/bin/apt-get update",
17        refreshonly => true,
18        subscribe => File["/etc/apt/sources.list"],
19        require => File["/etc/apt/sources.list"],
20    }
21}
22
23class ubuntu_sources_list::virtualbox {
24
25#   package { [ "apt" ]: ensure => installed }
26
27    file { "/etc/apt/sources.list.d/virtualbox.list":
28        owner => "root",
29        group => "root",
30        mode => 0644,
31        content => template("ubuntu_sources_list/sources.list.d/virtualbox.erb"),
32    }
33    exec{"apt-get update vb":
34        command => "/usr/bin/apt-get update",
35        refreshonly => true,
36        subscribe => File["/etc/apt/sources.list.d/virtualbox.list"],
37        require => File["/etc/apt/sources.list.d/virtualbox.list"],
38    }
39    exec{"/usr/bin/wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | /usr/bin/sudo /usr/bin/apt-key add -":
40        refreshonly => true,
41        subscribe => File["/etc/apt/sources.list.d/virtualbox.list"],
42        require => File["/etc/apt/sources.list.d/virtualbox.list"],
43    }
44}
45
46class ubuntu_sources_list::medibuntu {
47
48#   package { [ "apt" ]: ensure => installed }
49
50    file { "/etc/apt/sources.list.d/medibuntu.list":
51        owner => "root",
52        group => "root",
53        mode => 0644,
54        content => template("ubuntu_sources_list/sources.list.d/medibuntu.erb"), 
55    }
56    exec{"apt-get update medibuntu":
57        command => "/usr/bin/apt-get update",
58        refreshonly => true,
59        subscribe => File["/etc/apt/sources.list.d/medibuntu.list"],
60        require => File["/etc/apt/sources.list.d/medibuntu.list"],
61    }
62    exec{"/usr/bin/apt-get --yes -q --allow-unauthenticated install medibuntu-keyring":
63        refreshonly => true,
64        subscribe => File["/etc/apt/sources.list.d/medibuntu.list"],
65        require => File["/etc/apt/sources.list.d/medibuntu.list"],
66    }
67}
68
Note: See TracBrowser for help on using the repository browser.