Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeName = "go2chef.step.install.linux.dnf" YumTypeName = "go2chef.step.install.linux.yum" RPMTypeName = "go2chef.step.install.linux.rpm" )
TypeNames for the three variants of this step plugin
Variables ¶
View Source
var (
// DefaultPackageName is the default package name to use for Chef installation
DefaultPackageName = "chef"
)
Functions ¶
func LoaderForBinary ¶
func LoaderForBinary(binary string) go2chef.StepLoader
LoaderForBinary provides an instantiation function for this step plugin specific to the passed binary
Types ¶
type Step ¶
type Step struct {
StepName string `mapstructure:"name"`
DNFBinary string `mapstructure:"dnf_binary"`
RPMBinary string `mapstructure:"rpm_binary"`
PackageName string `mapstructure:"package_name"`
Version string `mapstructure:"version"`
RPMCheckTimeoutSeconds int `mapstructure:"rpm_check_timeout_seconds"`
InstallTimeoutSeconds int `mapstructure:"install_timeout_seconds"`
// contains filtered or unexported fields
}
Step implements Chef installation via RHEL/Fedora DNF/YUM/RPM
If you provide a `source` config block, this plugin will download it and search for an RPM based on `package_name` (and, if specified, `version`).
Example config for a Chef install
{
"type": "go2chef.step.install.linux.dnf",
"name": "install chef",
"package_name": "chef"
}
Click to show internal directories.
Click to hide internal directories.