packer/kali_rolling_vmware.json in pwn-0.4.409 vs packer/kali_rolling_vmware.json in pwn-0.4.410

- old
+ new

@@ -1,9 +1,11 @@ { "variables": { "vagrant_cloud_token": "{{ env `VAGRANT_CLOUD_TOKEN` }}", - "box_version": "{{ env `BOX_VERSION` }}" + "box_version": "{{ env `BOX_VERSION` }}", + "pwn_root": "{{ env 'PWN_ROOT' }}", + "pwn_provider": "{{ PWN_PROVIDER=vmware }}" }, "builders": [{ "type": "vmware-iso", "guest_os_type": "debian7-64", "vmx_data": { @@ -41,12 +43,12 @@ }], "provisioners": [ { "type": "shell", "environment_vars": [ - "PWN_ROOT=\$(ruby -r pwn -e 'puts \"#{Gem.path.first}/gems/pwn-#{PWN::VERSION}\"')", - "PWN_PROVIDER=vmware" + "PWN_ROOT={{user `pwn_root` }}", + "PWN_PROVIDER={{user `pwn_provider` }}" ], "scripts": [ "provisioners/upload_globals.sh", "provisioners/init_image.sh" ] @@ -61,12 +63,12 @@ { "pause_before": "180s", "type": "shell", "environment_vars": [ - "PWN_ROOT=\$(ruby -r pwn -e 'puts \"#{Gem.path.first}/gems/pwn-#{PWN::VERSION}\"')", - "PWN_PROVIDER=vmware" + "PWN_ROOT={{user `pwn_root` }}", + "PWN_PROVIDER={{user `pwn_provider` }}" ], "scripts": [ "provisioners/install_vagrant_ssh_key.sh", "provisioners/update_os.sh" ] @@ -81,11 +83,11 @@ { "pause_before": "180s", "type": "shell", "environment_vars": [ - "PWN_ROOT=\$(ruby -r pwn -e 'puts \"#{Gem.path.first}/gems/pwn-#{PWN::VERSION}\"')", - "PWN_PROVIDER=vmware" + "PWN_ROOT={{user `pwn_root` }}", + "PWN_PROVIDER={{user `pwn_provider` }}" ], "scripts": [ "provisioners/coreutils.sh", "provisioners/git.sh", "provisioners/curl.sh",