policyfile
devoptimist/policyfile/chef
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
| Name | Type | Description | Default |
|---|---|---|---|
| user_name | string | The ssh or winrm user name used to access the ip addresses provided | required |
| ip | string | The ip address where chef-solo will run | required |
| user_private_key | string | The ssh user key used to access the ip addresses (either user_pass or user_priva | "" |
| windows_installer_name | string | The name of the windows chef install script | "installer.ps1" |
| chef_bootstrap_version | string | The version of chef workstaion to install | "0.7.4" |
| dna | map | A map of JSON strings of chef attributes to apply to the chef-solo runs of each | {} |
| policyfile_name | string | The name to give the auto generated policyfile (used if the policyfile variable | "base" |
| runlist | list | The runlist to pass through to the auto generated policyfile | [] |
| cookbooks | map | The cookbook names, locations and versions to pass through to the auto generated | {} |
| module_depends_on | list(any) | List of modules or resources this module depends on | [] |
| timeout | string | The timeout to wait for the connection to become available. Should be provided a | "5m" |
| jq_linux_url | string | A url to a jq binary to download, used in the install process | "https://github.com/stedolan/jq/releases |
| user_pass | string | The ssh or winrm user password used to access the ip addresses (either user_pass | "" |
| system_type | string | The system type linux or windows | "linux" |
| linux_tmp_path | string | The location of a temp directory to store install scripts on | "/var/tmp" |
| linux_installer_name | string | The name of the linux chef install script | "installer.sh" |
| jq_windows_url | string | A url to a jq binary to download, used in the install process | "https://github.com/stedolan/jq/releases |
| policyfile | string | Use this variable to pass through a policy file to run | "" |
| default_source | string | The default source to use in the auto generated policyfile | ":supermarket" |