diff --git a/malboxes/malboxes.py b/malboxes/malboxes.py index b7f2821..1102d4f 100644 --- a/malboxes/malboxes.py +++ b/malboxes/malboxes.py @@ -471,6 +471,10 @@ def prepare_profile(template, config): fd = create_cachefd('profile-{}.ps1'.format(profile_name)) + if "package" in profile: + for package_mod in profile["package"]: + package(profile_name, package_mod["package"], fd) + if "registry" in profile: for reg_mod in profile["registry"]: registry(profile_name, reg_mod, fd) @@ -483,10 +487,6 @@ def prepare_profile(template, config): for doc_mod in profile["document"]: document(profile_name, doc_mod["modtype"], doc_mod["docpath"], fd) - if "package" in profile: - for package_mod in profile["package"]: - package(profile_name, package_mod["package"], fd) - if "packer" in profile: packer = profile["packer"] if "provisioners" in packer: