packer-plugin-gridscale

command module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MPL-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Packer Plugin Gridscale

Automatic Releaser GoDoc GitHub latest release Go Report Card

The gridscale packer plugin can be used with HashiCorp Packer to create custom templates in gridscale. Docs: docs.

Maintainers

This provider plugin is maintained by the Packer team at gridscale.

Requirements

  • Packer ≥ v1.7.0
  • Go ≥ 1.17 (to build the provider plugin)

Installation

Automatic installation:

Packer (≥ v1.7.0) supports a new packer init command allowing automatic installation of Packer plugins. Plugin installation.

To install this plugin, copy and paste this code into your Packer configuration . Then, run packer init.

packer {
  required_plugins {
    gridscale = {
      version = ">= 0.0.1"
      source  = "github.com/gridscale/gridscale"
    }
  }
}
Manual installation

Plugin installation

Building/Developing the Provider

Build:

$ git clone git@github.com:gridscale/packer-plugin-gridscale.git
$ cd packer-plugin-gridscale
$ make build

For dev:

$ make dev

Running Acceptance Tests

Requirements:

  • Environment varialbe GRIDSCALE_UUID has to be set.
  • Environment varialbe GRIDSCALE_TOKEN has to be set.

In packer-plugin-gridscale directory, run:

make acctest

This will run the acceptance test for packer-plugin-gridscale.

Examples:

Releasing the Provider:

  • Update version in version/version.go
  • Do make generate to regenerate docs and go file config.hcl2spec.go (if there are updates in config.go).
  • Add entries to CHANGELOG.md

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
builder
gridscale/easyssh
Note this easyssh package is a copy of "github.com/hypersleep/easyssh" repository It was copied for being modified to be compatible with gridscale packer.
Note this easyssh package is a copy of "github.com/hypersleep/easyssh" repository It was copied for being modified to be compatible with gridscale packer.

Jump to

Keyboard shortcuts

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