Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python in Malboxes #135

Open
Svieg opened this issue Oct 23, 2019 · 1 comment
Open

Python in Malboxes #135

Svieg opened this issue Oct 23, 2019 · 1 comment

Comments

@Svieg
Copy link
Collaborator

Svieg commented Oct 23, 2019

I personally had a use case for installing python and pip packages. I thought it would be cool to do that automatically like choco_packages but python_packages.

Modifications would be like:

  1. install python from chocolatey
  2. Add python_packages to malboxes/templates/snippets/provision_win7_common.json and malboxes/templates/snippets/provision_win10_common.json

Thoughts?

@obilodeau
Copy link
Member

I'm not sure. Then why not ruby_packages or java_libraries?

Today, you could already accomplish what you want with profiles:

{
    "package": [{"package": "python3"}],
    "packer": {
        "provisioners": [
            {
                "type": "windows-shell",
                "inline": ["pip install pyrdp"]
            }
        ]
    }
}

I would be open to provide a shorter syntax to the packer->provisioners boilerplate above.

Maybe having something in the profile called powershell or cmd would be more succinct:

{
  "package": [{"package": "python3"}],
  "cmd": ["pip install pyrdp"]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants