Created by: mayn
What is this Python project?
packerlicious is a python library to create packer templates in python.
example usage:
from packerlicious import builder, provisioner, Template
template = Template()
template.add_builder(
builder.AmazonEbs(
access_key="...",
secret_key="...",
region="us-east-1",
source_ami="ami-fce3c696",
instance_type="t2.micro",
ssh_username="ubuntu",
ami_name="packer {{timestamp}}"
)
)
template.add_provisioner(
provisioner.Shell(
script="setup_things.sh"
)
)
print(template.to_json())
resulting packer template:
{
"builders": [
{
"access_key": "...",
"ami_name": "packer {{timestamp}}",
"instance_type": "t2.micro",
"region": "us-east-1",
"secret_key": "...",
"source_ami": "ami-fce3c696",
"ssh_username": "ubuntu",
"type": "amazon-ebs"
}
],
"provisioners": [
{
"script": "setup_things.sh",
"type": "shell"
}
]
}
What's the difference between this Python project and similar ones?
- only one that supports expressing packer templates in python
--
Anyone who agrees with this pull request could vote for it by adding a