chef-server-populate

devoptimist/chef-server-populate/linux

Terraform Module HCL LINUX
Install
module "chef-server-populate" {
source = "devoptimist/chef-server-populate/linux"
version = "0.13.0"
}
plain text: /constructs/tfmod-devoptimist-chef-server-populate-linux/install.txt
⭐ Source on GitHub 📦 Registry page
README

Overview This module will connect to a server via ssh and run commands against a chef server. It expects that chef tools such as chef-workstation or chefdk are already installed. (you could use this module in conjuction with https://registry.terraform.io/modules/devoptimist/workshop-server/aws/0.0.2). Depending on the options passed to the module it will attempt to create roles, environments and upload cookbooks. Cookbook uploading handled via the creation of Berksfiles or Policyfiles. If specified policygroups are also created . Supported platform families: Debian RHEL * SUSE Usage ``hcl module "populate_chef_server" { source = "devoptimist/chef-server-populate/linux" version = "0.0.1" ips = "172.16.0.23" ssh_user_name = "ec2-user" ssh_user_private_key = "~/.ssh/id_rsa" } `` Inputs | Name

Inputs (26)
NameTypeDescriptionDefault
ipstringAn ip addresses where we will stage pushes to the chef server (pushes include ro required
user_namestringThe ssh user name used to access the ip addresses provided required
windows_populate_script_namestringThe name to give the chef server populate script"chef_server_populate.ps1"
windows_chef_repo_pathstringThe path to the chef repo, this path is created and populated with berksfiles / "C:\\chef_workstation\\chef-repo"
rolesstringA list of Maps used to populate each environments"[]"
windows_tmp_pathstringThe location of a temp directory to store install scripts on"C:\\chef_workstation"
working_directorystringThe path to use for the working directory"chef_server_populate"
workstation_user_pemstringThe content of the chef users client.pem (created at the same time as the user),""
workstation_org_pemstringThe content of the chef orgs client.pem (created at the same time as the org), c""
chef_server_ssl_verify_modestringThe ssl verify mode to use, if using self signed certs use :verify_none":verify_none"
jq_linux_urlstringA url to a jq binary to download, used in the install process"https://github.com/stedolan/jq/releases
linux_tmp_pathstringThe location of a temp directory to store install scripts on"/var/tmp"
linux_populate_script_namestringThe name to give the chef server populate script"chef_server_populate.sh"
linux_chef_repo_pathstringThe path to the chef repo, this path is created and populated with berksfiles / "/var/tmp/chef_workstation/chef-repo"
workstation_org_urlstringThe url to the chef users chef organisation on the chef server e.g. https://demo""
policyfilesstringA list of Maps used to populate each policyfile"[]"
populateboolSet to false if you only want to create the chef-repo directory (with knife.rb atrue
system_typestringThe system type linux or windows"linux"
environmentsstringA list of Maps used to populate each environments"[]"
module_inputstringA string input to the module, used to enforce module ordering. make this input t"no_dependency"
jq_windows_urlstringA url to a jq binary to download, used in the install process"https://github.com/stedolan/jq/releases
workstation_user_namestringThe name of a chef user, used for workstation -> chef server interactions, can b""
Outputs (5)
workstation_user_name
workstation_user_pem
workstation_org_pem
workstation_org_url
workstation_org_name
Resources (2)
null_resourcerandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version0.13.0
Cloud LINUX
★ Stars0
Forks1
Total downloads795
Inputs26
Outputs5
Resources2
Namespacedevoptimist
Updated