Start some integration between packer and caryatid (untested)

jowjDev
Micah R Ledbetter 8 years ago
parent af371e104a
commit 01e41ae2ff

@ -153,7 +153,7 @@ def main(*args, **kwargs):
fullconfigname = "wintriallab-{}".format(parsed.baseconfigname)
packeroutdir = os.path.join(resolvepath(parsed.base_out_dir), fullconfigname)
packerfile = os.path.join(scriptdir, 'packer', parsed.baseconfigname, '{}.packerfile.json'.format(parsed.baseconfigname))
packedboxpath = os.path.join(packeroutdir, '{}_virtualbox.box'.format(parsed.baseconfigname))
packedboxpath = os.path.join(packeroutdir, '{}.virtualbox.box'.format(parsed.baseconfigname))
if 'packer' in actions:
buildpacker(packerfile, packeroutdir, force=parsed.force, whatif=parsed.whatif)

@ -1,6 +1,9 @@
{
"variables": {
"output_directory": "packer-output"
"output_directory": "packer-output",
"boxname": "wintriallab_windows_10_x86",
"description": "Windows Trial Lab: Windows 10 x86",
"versionbase": "1.0"
},
"builders": [
{
@ -49,8 +52,16 @@
{
"type": "vagrant",
"keep_input_artifact": false,
"output": "{{user `output_directory`}}/windows_10_x86_{{.Provider}}.box",
"output": "{{user `output_directory`}}/windows_10_x86.{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows_10_x86.template"
},
{
"type": "checksum",
"checksum_types": "sha1"
},
{
"type": "shell-local",
"inline": ["../../scripts/caryatid/__main__.py --box-name {{user `boxname`}} --description {{user `description`}} --version-base {{user `versionbase`}}"]
}
]
}

Loading…
Cancel
Save