packerlicious
About
packerlicious - a python library to create packer templates.
This project leverages the logic engine of troposphere.
Installation
packerlicious can be installed via pip:
$ pip install packerlicious
Examples
Below is the packerlicious equivalent of packer’s example template
>>> 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}}"
)
)
<packerlicious.builder.AmazonEbs object at 0x104e87ad0>
>>> template.add_provisioner(
provisioner.Shell(
script="setup_things.sh"
)
)
<packerlicious.provisioner.Shell object at 0x1048c08d0>
>>> print(template.to_json())
{
"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"
}
]
}
Currently supported Packer resources
Builders:
alicloud-ecs
amazon-chroot
amazon-ebs
amazon-ebssurrogate
amazon-ebsvolume
amazon-instance
azure-arm
cloudstack
digitalocean
docker
file
googlecompute
hcloud
hetznercloud
hyperone
hyperv-iso
hyperv-vmcx
linode
lxc
lxd
ncloud
null
oneandone
openstack
oracle-classic
parallels-iso
parallels-pvm
profitbricks
proxmox
qemu
scaleway
tencentcloud-cvm
triton
vagrant
virtualbox-iso
virtualbox-ovf
vmware-iso
vmware-vmx
yandex
Post Processors:
alicloud-import
amazon-import
artifice
atlas
checksum
compress
digitalocean-import
docker-import
docker-push
docker-save
docker-tag
googlecompute-import
googlecompute-export
manifest
shell-local
vagrant
vagrant-cloud
vsphere
vsphere-template
Provisioners:
ansible-local
ansible
breakpoint
chef-client
chef-solo
converge
file
inspec
powershell
puppet-masterless
puppet-server
salt-masterless
shell
shell-local
windows-shell
windows-restart
Community Plugins:
Builders:
jetbrains-infra/packer-builder-vsphere (vsphere-iso, vsphere-clone)
solo-io/packer-builder-arm-image
Provisioners:
jrbeilke/packer-provisioner-inspec
Licensing
packerlicious is licensed under the Apache license 2.0. See LICENSE for the full license text.
packerlicious contains source code from troposphere which is licensed under the BSD 2-Clause license
Metadata
Release files for packerlicious 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| packerlicious-1.5.0.tar.gz | 26.5 kB | Without provenance | Details for packerlicious-1.5.0.tar.gz |
Release files / packerlicious-1.5.0.tar.gz
| Download URL | packerlicious-1.5.0.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
127591657814d863a485252f0610d37a5de8ac1497cf078f3104541825d338a6
|
|
BLAKE2b-256 checksum How to use checksums |
3034a73d56b67cb5c393c882674b0831032a87a9f93858c81fd041c119d84009
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.9.1 pkginfo/1.4.1 requests/2.10.0 setuptools/36.0.1 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/2.7.10
|
Security for packerlicious 1.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.