[389] | 1 | # copyright <sebas @ koumbit.org> |
---|
| 2 | # Licence: GPL |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | class 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, |
---|
[410] | 13 | content => template("ubuntu_sources_list/sources.list.erb"), |
---|
[389] | 14 | } |
---|
[421] | 15 | exec{"apt-get update ubuntu": |
---|
| 16 | command => "/usr/bin/apt-get update", |
---|
[389] | 17 | refreshonly => true, |
---|
| 18 | subscribe => File["/etc/apt/sources.list"], |
---|
| 19 | require => File["/etc/apt/sources.list"], |
---|
| 20 | } |
---|
[410] | 21 | } |
---|
[389] | 22 | |
---|
[410] | 23 | class ubuntu_sources_list::virtualbox { |
---|
| 24 | |
---|
[421] | 25 | # package { [ "apt" ]: ensure => installed } |
---|
[410] | 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 | } |
---|
[421] | 33 | exec{"apt-get update vb": |
---|
| 34 | command => "/usr/bin/apt-get update", |
---|
[410] | 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 | } |
---|
[389] | 44 | } |
---|
[421] | 45 | |
---|
| 46 | class 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 | |
---|