[PR #1037] [CLOSED] add packerlicious - packer template generation in python #936

Closed
opened 2025-11-06 13:05:45 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/1037
Author: @mayn
Created: 3/19/2018
Status: Closed

Base: masterHead: add-packerlicious


📝 Commits (1)

  • 07c08d4 add packerlicious library

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

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 👍 to it, and usually, the maintainer will merge it when votes reach 20.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/1037 **Author:** [@mayn](https://github.com/mayn) **Created:** 3/19/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `add-packerlicious` --- ### 📝 Commits (1) - [`07c08d4`](https://github.com/vinta/awesome-python/commit/07c08d4d3a0a99155e937bbc145fa823e09fcb77) add packerlicious library ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description ## What is this Python project? [packerlicious](https://github.com/mayn/packerlicious) is a python library to create [packer](https://github.com/hashicorp/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 :+1: to it, and usually, the maintainer will merge it when votes reach **20**. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 13:05:45 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#936