1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# add the pixelated sources needed to install everything
class pixelated::apt {
# wheezy backports
file { '/etc/apt/sources.list.d/wheezy-backports.list':
source => 'puppet:///modules/pixelated/apt/wheezy-backports.list',
owner => 'root',
notify => Exec['apt_get_update'],
}
# pixelated repo
file { '/etc/apt/sources.list.d/pixelated.list':
source => 'puppet:///modules/pixelated/apt/pixelated.list',
owner => 'root',
require => Exec['add_pixelated_key'],
notify => Exec['apt_get_update'],
}
file { '/etc/apt/preferences.d/pixelated':
source => 'puppet:///modules/pixelated/apt/pixelated-preferences',
owner => 'root',
notify => Exec['apt_get_update'],
}
file { '/tmp/0x287A1542472DC0E3_packages@pixelated-project.org.asc':
source => 'puppet:///modules/pixelated/0x287A1542472DC0E3_packages@pixelated-project.org.asc',
notify => Exec['add_pixelated_key']
}
exec{'add_pixelated_key':
command => '/usr/bin/apt-key add /tmp/0x287A1542472DC0E3_packages@pixelated-project.org.asc',
refreshonly => true,
require => File['/tmp/0x287A1542472DC0E3_packages@pixelated-project.org.asc'],
notify => Exec['apt_get_update'],
}
# leap repo
file { '/etc/apt/sources.list.d/leap.list':
content => 'deb http://deb.leap.se/0.6 wheezy main',
owner => 'root',
require => Exec['add_leap_key'],
notify => Exec['apt_get_update'],
}
file { '/tmp/0x1E34A1828E20790_leap_archive_key':
source => 'puppet:///modules/pixelated/0x1E34A1828E20790_leap_archive_key',
notify => Exec['add_leap_key']
}
exec{'add_leap_key':
command => '/usr/bin/apt-key add /tmp/0x1E34A1828E20790_leap_archive_key',
refreshonly => true,
require => File['/tmp/0x1E34A1828E20790_leap_archive_key'],
notify => Exec['apt_get_update'],
}
package { 'leap-keyring':
ensure => latest,
require => Exec['apt_get_update']
}
exec { 'apt_get_update':
command => '/usr/bin/apt-get -y update',
refreshonly => true,
}
}
|