diff --git a/base/manifest-schema.json b/base/manifest-schema.json index 21eb276..50780ad 100644 --- a/base/manifest-schema.json +++ b/base/manifest-schema.json @@ -13,7 +13,8 @@ "image_file": { "type": "string" }, "tarball": { "type": "boolean" }, "tarball_dir": { "type": "string" }, - "device" : { "type" : "string" } + "device" : { "type" : "string" }, + "mirror": { "type": "string" } }, "required": ["mount_dir"] }, @@ -30,8 +31,7 @@ }, "timezone": { "type": "string" }, "locale": { "type": "string" }, - "charmap": { "type": "string" }, - "mirror": { "type": "string" } + "charmap": { "type": "string" } }, "required": ["release", "architecture", "timezone", "locale", "charmap"] }, diff --git a/common/tasks/bootstrap.py b/common/tasks/bootstrap.py index 775e715..a1f6ca0 100644 --- a/common/tasks/bootstrap.py +++ b/common/tasks/bootstrap.py @@ -13,8 +13,8 @@ def get_bootstrap_args(info): options.append('--include=' + ','.join(include)) if len(exclude) > 0: options.append('--exclude=' + ','.join(exclude)) - if info.manifest.system['mirror']: - mirror = info.manifest.system['mirror'] + if info.manifest.bootstrapper['mirror']: + mirror = info.manifest.bootstrapper['mirror'] else: mirror = 'http://http.debian.net/debian' arguments = [info.manifest.system['release'], info.root, mirror] diff --git a/manifests/virtualbox.json b/manifests/virtualbox.json index 481d5c5..238ef98 100644 --- a/manifests/virtualbox.json +++ b/manifests/virtualbox.json @@ -3,7 +3,8 @@ "virtualization": "ide", "bootstrapper": { - "mount_dir": "/mnt/target" + "mount_dir": "/mnt/target", + "mirror" : "http://ftp.fr.debian.org/debian/" }, "image": { "name" : "debian-{release}-{architecture}-{virtualization}-{%y}{%m}{%d}", @@ -14,8 +15,7 @@ "architecture": "amd64", "timezone" : "UTC", "locale" : "en_US", - "charmap" : "UTF-8", - "mirror" : "http://ftp.fr.debian.org/debian/" + "charmap" : "UTF-8" }, "volume": { "backing" : "raw", @@ -32,6 +32,10 @@ "root_password": { "enabled": true, "password": "test" - } + }, + "convert_image": { + "enabled": true, + "format": "vdi" + } } }