bundles/apt: add raspbian to supported OSes
This commit is contained in:
parent
2387b196b2
commit
c2bcd1f0d9
3 changed files with 11 additions and 1 deletions
1
bundles/apt/files/sources.list-raspbian-buster
Normal file
1
bundles/apt/files/sources.list-raspbian-buster
Normal file
|
@ -0,0 +1 @@
|
||||||
|
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
|
|
@ -2,6 +2,9 @@ supported_os = {
|
||||||
'debian': {
|
'debian': {
|
||||||
10: 'buster',
|
10: 'buster',
|
||||||
},
|
},
|
||||||
|
'raspbian': {
|
||||||
|
10: 'buster',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
assert supported_os[node.os][node.os_version[0]], '{}: OS {} {} is not supported by bundle:apt'.format(node.name, node.os, node.os_version)
|
assert supported_os[node.os][node.os_version[0]], '{}: OS {} {} is not supported by bundle:apt'.format(node.name, node.os, node.os_version)
|
||||||
|
@ -41,13 +44,19 @@ files = {
|
||||||
'delete': True,
|
'delete': True,
|
||||||
},
|
},
|
||||||
'/etc/apt/sources.list': {
|
'/etc/apt/sources.list': {
|
||||||
'source': 'sources.list-{}'.format(supported_os[node.os][node.os_version[0]]),
|
'source': 'sources.list-{}-{}'.format(node.os, supported_os[node.os][node.os_version[0]]),
|
||||||
|
'triggers': {
|
||||||
|
'action:apt_update',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
directories = {
|
directories = {
|
||||||
'/etc/apt/sources.list.d': {
|
'/etc/apt/sources.list.d': {
|
||||||
'purge': True,
|
'purge': True,
|
||||||
|
'triggers': {
|
||||||
|
'action:apt_update',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue