habitat
devoptimist/habitat/chef
Overview This module will install habitat, setup a supervisor, install habitat packages, load and configure habitat services to one or more servers. Under the hood this module uses a Chef Effortless Infra package to install and setup everything. Once the native habitat provisioner for terraform supports Windows, I will switich this module to use that instead. This module supports managing habitat and its services on both Windows and Linux Supported platform families: Debian SLES RHEL Windows Usage ``hcl module "chef_habitat_install" { source = "devoptimist/habitat/chef" version = "0.0.17" ips = ["172.16.0.23"] instance_count = 1 ssh_user_name = "ec2-user" ssh_user_private_key = "~/.ssh/id_rsa" } `` Inputs | Name | Description | Type | Default | Required | |------|-------------|------|-----
| Name | Type | Description | Default |
|---|---|---|---|
| hab_sup_listen_ctl | string | The address and port for the supervisors ctl gateway | required |
| hab_sup_listen_gossip | string | The address and port for the supervisors gossip protocal | required |
| hab_sup_listen_http | string | The address and port for the supervisors http endpoint (census) | required |
| ip | string | An ip addresse to install hab and run services | required |
| hab_sup_ring | string | Start the Supervisor with the --ring param, specifying the name of the ring key | required |
| hab_sup_auth_token | string | An auth token for talking to a provate org in bldr | required |
| bldr_url | string | The URL of the habitat builder | "https://bldr.habitat.sh" |
| hab_install_action | string | The action to take when installing habitat on a system; install/upgrade | "install" |
| jq_linux_url | string | A url to a jq binary to download, used in the install process | "https://github.com/stedolan/jq/releases |
| hab_sup_org | string | The name of the superviosr organisation | "default" |
| hab_service_binding_mode | string | The binding mode to use when a service from the hab_services map is loaded, can | "strict" |
| hab_service_action | string | The default action to apply to the services in the hab_service map, can be overr | "load" |
| force_run | string | Set to anything other than default to force a rerun of provisioning on all serve | "default" |
| remote_sup_http | string | Address for remote supervisor http port. Used to pull existing configuration dat | "127.0.0.1:9631" |
| hab_sup_peers | list | A list of peers for the supervisor to connect to | [] |
| hab_sup_auto_update | bool | Should the hab supervisor auto update | false |
| hab_packages | map | A map of habitat package names (plus options) to install on the system | {} |
| hab_user_toml_action | string | Default action to take on user toml data; create or delete | "create" |
| clear_node_data | bool | Should we remove the node state at the end of the effortless run | true |
| user_name | string | The ssh or winrm user name used to access the ip addresses provided | "" |
| hab_services | map | A map of habitat service names and their config options | {} |
| accept_license | bool | Shall we accept the chef product license | true |
| hab_sup_action | string | The default action for the habitat supervisor; options run or stop | "run" |
| hab_version | string | The version of habitat to install, this should match the version of habitat inst | "0.83.0" |
| hab_windows_install_url | string | A url to a hab binary to download | "https://api.bintray.com" |
| hab_pkg_action | string | Default action to take on each package; install or remove | "install" |
| … and 1 more inputs | |||