Changeset 410
- Timestamp:
- Oct 13, 2009, 8:49:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/puppet/modules/ubuntu_sources_list/manifests/init.pp
r389 r410 11 11 group => "root", 12 12 mode => 0644, 13 content => template("ubuntu /sources.list.erb"),13 content => template("ubuntu_sources_list/sources.list.erb"), 14 14 } 15 15 exec{"/usr/bin/apt-get update": … … 18 18 require => File["/etc/apt/sources.list"], 19 19 } 20 } 20 21 22 class 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 } 21 42 }
Note: See TracChangeset
for help on using the changeset viewer.