Packer
Salt
@mpoore
The Salt plugin enables users to apply Salt states to their Packer-built images for the purpose of further customizing them using Salt's powerful desired state automation.
- Community
Updated 4 months ago
- GitHub(opens in new tab)
Salt
The Salt
plugin enables users to customize image builds using Salt states by offering a provisioner dedicated to that purpose.
Installation
To install this plugin, copy and paste this code into your Packer configuration, then run packer init
.
packer {
required_plugins {
salt = {
# source represents the GitHub URI to the plugin repository without the `packer-plugin-` prefix.
source = "github.com/mpoore/salt"
version = ">=0.1.2"
}
}
}
Alternatively, you can use packer plugins install
to manage installation of this plugin.
$ packer plugins install github.com/mpoore/salt
Components
Note: The current version of this plugin does not automatically install the required salt-minion
package. It is assumed when calling this provisioner that installation of the Salt Minion has already taken place. Commonly users may employ the shell provisioner (or similar) to install the Salt Minion or include the necessary steps within their KickStart or seed file for their build. Instructions for installing the Salt Minion are be located on the SaltProject website.
Note: The Salt Minion package need only be installed, it does not need to be enabled as a service or configured with a Salt Master.
Provisioners
- salt - The Packer provisioner will transfer Salt state files to the target guest operating system and execute
Salt
to apply the configured desired state.