»Anka Build Cloud Registry Push Post-Processor
Type: veertu-anka-registry-push
The veertu-anka-registry-push
Packer Post Processor is able to push your created Anka VM templates to the Anka Build Cloud Registry through the Anka Virtualization package.
This post-processor is part of the Veertu Anka plugin. To install this plugin using packer init
, add the following Packer block to your hcl template:
»Configuration Reference
There are many configuration options available for the post-processor. They are segmented below into two categories: required and optional parameters.
»Required Configuration
-
type
(String)
Must be veertu-anka-registry-push
»Optional Configuration
-
cacert
(String)
Path to a CA Root certificate.
-
cert
(String)
Path to your node certificate (if certificate authority is enabled).
-
description
(String)
The description of the tag.
-
insecure
(Boolean)
Skip TLS verification.
-
key
(String)
Path to your node certificate key if the client/node certificate doesn't contain one.
-
local
(Boolean)
Assign a tag to your local template and avoid pushing to the Registry.
-
registry_path
(String)
The registry URL (will use your default configuration if not set).
-
registry_name
(String)
The registry name (will use your default configuration if not set).
-
remote_vm
(String)
The name of a registry template you want to push the local template onto.
-
tag
(String)
The name of the tag to push (will default as 'latest' if not set).
-
force
(String)
Whether or not to forcefully push, regardless of a tag already existing
»Other
When using packer build -force
, the post-processor will issue a revert API call to remove the existing tag before pushing the new.
»Example
Here is an example that uses the file and shell provisioners.