Changeset 410


Ignore:
Timestamp:
Oct 13, 2009, 8:49:28 PM (12 years ago)
Author:
sebas
Message:

agregamos los repos para virtualbox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/ubuntu_sources_list/manifests/init.pp

    r389 r410  
    1111        group => "root",
    1212        mode => 0644,
    13         content => template("ubuntu/sources.list.erb"),
     13        content => template("ubuntu_sources_list/sources.list.erb"),
    1414    }
    1515    exec{"/usr/bin/apt-get update":
     
    1818        require => File["/etc/apt/sources.list"],
    1919    }
     20}
    2021
     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    }
    2142}
Note: See TracChangeset for help on using the changeset viewer.