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

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

manejo de los sources.list con un modulo puppet

File size: 474 bytes
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.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}
Note: See TracBrowser for help on using the repository browser.