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': {
|
||||
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)
|
||||
|
@ -41,13 +44,19 @@ files = {
|
|||
'delete': True,
|
||||
},
|
||||
'/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 = {
|
||||
'/etc/apt/sources.list.d': {
|
||||
'purge': True,
|
||||
'triggers': {
|
||||
'action:apt_update',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue