packer-post-processor-openstack-image-management

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2020 License: MIT Imports: 5 Imported by: 0

README

packer-post-processor-openstack-image-management

Packer post-processor plugin for OpenStack Image generation management

Inspired packer-post-processor-amazon-ami-management.

Description

The packer OpenStack Image Management post-processor assists your image generation. It delete and rotate old OpenStack Image.

Installation

Download binary built for your architecture from latest releases.

For details on how to install the packer plugins, please read the following: https://www.packer.io/docs/extending/plugins.html#installing-plugins

Usage

The following example sample.json:

{
  "builders": [{
    "type": "openstack",
    "identity_endpoint": "http://<destack-ip>:5000/v3",
    "tenant_name": "admin",
    "domain_name": "Default",
    "username": "admin",
    "password": "<your admin password>",
    "region": "RegionOne",
    "ssh_username": "root",
    "image_name": "sample-image",
    "source_image": "<image id>",
    "flavor": "m1.tiny",
    "insecure": "true"
  }],
  "provisioners":[{
    "type": "shell",
    "inline": [
      "echo 'running...'"
    ]
  }],
  "post-processors":[{
    "type": "openstack-image-management",
    "identity_endpoint": "http://<destack-ip>:5000/v3",
    "tenant_name": "admin",
    "domain_name": "Default",
    "username": "admin",
    "password": "<your admin password>",
    "region": "RegionOne",
    "insecure": "true",
    "identifier": "sample-image",
    "keep_releases": "2"
  }]
}
configuration

Type: openstack-image-management

Required:

  • identity_endpoint (string)
    • The URL to the OpenStack Identity service. If not specified, Packer will use the environment variables OS_AUTH_URL, if set.
  • username (string)
    • The username or id used to connect to the OpenStack service. If not specified, Packer will use the environment variable OS_USERNAME, if set.
  • password (string)
    • The password used to connect to the OpenStack service. If not specified, Packer will use the environment variables OS_PASSWORD, if set.
  • identifier (string)
    • The Identifier of OpenStack Images.This plugin looks image_name.
  • keep_releases (interger)
    • The number of keep images.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Code generated by "mapstructure-to-hcl2 -type Config"; DO NOT EDIT.
Code generated by "mapstructure-to-hcl2 -type Config"; DO NOT EDIT.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL