mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Merge pull request #133 from rybaktomasz/testing
Add testing distribution and sections
This commit is contained in:
commit
5494188594
6 changed files with 108 additions and 6 deletions
|
@ -25,7 +25,11 @@
|
||||||
"system": {
|
"system": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"release": { "enum": ["wheezy", "unstable"] },
|
"release": { "enum": ["wheezy", "testing", "unstable"] },
|
||||||
|
"sections": {
|
||||||
|
"type": "array",
|
||||||
|
"minItems": 1
|
||||||
|
},
|
||||||
"architecture": { "enum": ["i386", "amd64"] },
|
"architecture": { "enum": ["i386", "amd64"] },
|
||||||
"bootloader": { "enum": ["pvgrub", "grub", "extlinux"] },
|
"bootloader": { "enum": ["pvgrub", "grub", "extlinux"] },
|
||||||
"timezone": { "type": "string" },
|
"timezone": { "type": "string" },
|
||||||
|
|
|
@ -23,11 +23,14 @@ class AddDefaultSources(Task):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def run(cls, info):
|
def run(cls, info):
|
||||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release} main')
|
sections = 'main'
|
||||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} main')
|
if 'sections' in info.manifest.system:
|
||||||
if info.manifest.system['release'] != 'unstable':
|
sections = ' '.join(info.manifest.system['sections'])
|
||||||
info.source_lists.add('main', 'deb {apt_mirror} {system.release}-updates main')
|
info.source_lists.add('main', 'deb {apt_mirror} {system.release} '+sections)
|
||||||
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release}-updates main')
|
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release} '+sections)
|
||||||
|
if info.manifest.system['release'] not in {'testing', 'unstable'}:
|
||||||
|
info.source_lists.add('main', 'deb {apt_mirror} {system.release}-updates '+sections)
|
||||||
|
info.source_lists.add('main', 'deb-src {apt_mirror} {system.release}-updates '+sections)
|
||||||
|
|
||||||
|
|
||||||
class InstallTrustedKeys(Task):
|
class InstallTrustedKeys(Task):
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
"wheezy": [
|
"wheezy": [
|
||||||
"auto eth0",
|
"auto eth0",
|
||||||
"iface eth0 inet dhcp" ],
|
"iface eth0 inet dhcp" ],
|
||||||
|
"testing": [
|
||||||
|
"auto eth0",
|
||||||
|
"iface eth0 inet dhcp" ],
|
||||||
"unstable": [
|
"unstable": [
|
||||||
"auto eth0",
|
"auto eth0",
|
||||||
"iface eth0 inet dhcp" ]
|
"iface eth0 inet dhcp" ]
|
||||||
|
|
44
manifests/ec2-ebs-debian-testing-amd64-pvm.manifest.json
Normal file
44
manifests/ec2-ebs-debian-testing-amd64-pvm.manifest.json
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{
|
||||||
|
"provider": "ec2",
|
||||||
|
"virtualization": "pvm",
|
||||||
|
"credentials": {
|
||||||
|
// "access-key": null,
|
||||||
|
// "secret-key": null
|
||||||
|
},
|
||||||
|
|
||||||
|
"bootstrapper": {
|
||||||
|
"workspace": "/target"
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"name": "debian-{system.release}-{system.architecture}-{virtualization}-{%Y}-{%m}-{%d}-ebs",
|
||||||
|
"description": "Debian {system.release} {system.architecture}"
|
||||||
|
},
|
||||||
|
"system": {
|
||||||
|
"release": "testing",
|
||||||
|
"architecture": "amd64",
|
||||||
|
"bootloader": "pvgrub",
|
||||||
|
"timezone": "UTC",
|
||||||
|
"locale": "en_US",
|
||||||
|
"charmap": "UTF-8"
|
||||||
|
},
|
||||||
|
"packages": {
|
||||||
|
"mirror": "http://cloudfront.debian.net/debian"
|
||||||
|
},
|
||||||
|
"volume": {
|
||||||
|
"backing": "ebs",
|
||||||
|
"partitions": {
|
||||||
|
"type": "none",
|
||||||
|
"root": {
|
||||||
|
"size": "8GiB",
|
||||||
|
"filesystem": "ext4"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"plugins": {
|
||||||
|
"cloud_init": {
|
||||||
|
"username": "admin",
|
||||||
|
//"metadata_sources": "Ec2",
|
||||||
|
"disable_modules": [ "landscape", "byobu", "ssh-import-id" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
"provider": "ec2",
|
||||||
|
"virtualization": "pvm",
|
||||||
|
"credentials": {
|
||||||
|
// "access-key": null,
|
||||||
|
// "secret-key": null
|
||||||
|
},
|
||||||
|
|
||||||
|
"bootstrapper": {
|
||||||
|
"workspace": "/target"
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"name": "debian-{system.release}-{system.architecture}-{virtualization}-{%Y}-{%m}-{%d}-ebs",
|
||||||
|
"description": "Debian {system.release} {system.architecture}"
|
||||||
|
},
|
||||||
|
"system": {
|
||||||
|
"release": "unstable",
|
||||||
|
"sections": ["main", "contrib", "non-free"],
|
||||||
|
"architecture": "amd64",
|
||||||
|
"bootloader": "pvgrub",
|
||||||
|
"timezone": "UTC",
|
||||||
|
"locale": "en_US",
|
||||||
|
"charmap": "UTF-8"
|
||||||
|
},
|
||||||
|
"packages": {
|
||||||
|
"mirror": "http://cloudfront.debian.net/debian"
|
||||||
|
},
|
||||||
|
"volume": {
|
||||||
|
"backing": "ebs",
|
||||||
|
"partitions": {
|
||||||
|
"type": "none",
|
||||||
|
"root": {
|
||||||
|
"size": "8GiB",
|
||||||
|
"filesystem": "ext4"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"plugins": {
|
||||||
|
"cloud_init": {
|
||||||
|
"username": "admin",
|
||||||
|
//"metadata_sources": "Ec2",
|
||||||
|
"disable_modules": [ "landscape", "byobu", "ssh-import-id" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,6 +5,9 @@
|
||||||
"wheezy": {
|
"wheezy": {
|
||||||
"amd64": "linux-image-amd64",
|
"amd64": "linux-image-amd64",
|
||||||
"i386" : "linux-image-686" },
|
"i386" : "linux-image-686" },
|
||||||
|
"testing": {
|
||||||
|
"amd64": "linux-image-amd64",
|
||||||
|
"i386" : "linux-image-686" },
|
||||||
"unstable": {
|
"unstable": {
|
||||||
"amd64": "linux-image-amd64",
|
"amd64": "linux-image-amd64",
|
||||||
"i386" : "linux-image-686" }
|
"i386" : "linux-image-686" }
|
||||||
|
|
Loading…
Add table
Reference in a new issue