policyfile

devoptimist/policyfile/chef

Terraform Module HCL CHEF
Install
module "policyfile" {
source = "devoptimist/policyfile/chef"
version = "0.13.3"
}
plain text: /constructs/tfmod-devoptimist-policyfile-chef/install.txt
⭐ Source on GitHub 📦 Registry page
README

Overview This terraform module will access a server and create a cookbook artifact from a policyfile, and then run chef-solo against that artifact Supported platform families: Debian SLES * RHEL Usage ``hcl module "chef_server" { source = "devoptimist/policyfile/chef" version = "0.0.12" ips = ["172.16.0.23"] instance_count = 1 user_name = "ec2-user" user_private_key = "~/.ssh/id_rsa" } `` Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|----------| |ips|A list of ip addresses where chef-solo will run|list|[]|no| |instance_count|The number of instances that will have chef-solo run on them| integer |0|no| |user_name|The ssh or winrm user name used to access the ip addresses provided|string||yes| |user_pass|The ssh or winrm user password used to

Inputs (19)
NameTypeDescriptionDefault
user_namestringThe ssh or winrm user name used to access the ip addresses provided required
ipstringThe ip address where chef-solo will run required
user_private_keystringThe ssh user key used to access the ip addresses (either user_pass or user_priva""
windows_installer_namestringThe name of the windows chef install script"installer.ps1"
chef_bootstrap_versionstringThe version of chef workstaion to install"0.7.4"
dnamapA map of JSON strings of chef attributes to apply to the chef-solo runs of each {}
policyfile_namestringThe name to give the auto generated policyfile (used if the policyfile variable "base"
runlistlistThe runlist to pass through to the auto generated policyfile[]
cookbooksmapThe cookbook names, locations and versions to pass through to the auto generated{}
module_depends_onlist(any)List of modules or resources this module depends on[]
timeoutstringThe timeout to wait for the connection to become available. Should be provided a"5m"
jq_linux_urlstringA url to a jq binary to download, used in the install process"https://github.com/stedolan/jq/releases
user_passstringThe ssh or winrm user password used to access the ip addresses (either user_pass""
system_typestringThe system type linux or windows"linux"
linux_tmp_pathstringThe location of a temp directory to store install scripts on"/var/tmp"
linux_installer_namestringThe name of the linux chef install script"installer.sh"
jq_windows_urlstringA url to a jq binary to download, used in the install process"https://github.com/stedolan/jq/releases
policyfilestringUse this variable to pass through a policy file to run""
default_sourcestringThe default source to use in the auto generated policyfile":supermarket"
Resources (1)
null_resource
Details
FrameworkTerraform Module
LanguageHCL
Version0.13.3
Cloud CHEF
★ Stars1
Forks2
Total downloads1.4k
Inputs19
Resources1
Namespacedevoptimist
Updated