Skip to content

Commit

Permalink
- change ldap.e.tco default to ldap2.e.tco
Browse files Browse the repository at this point in the history
- add -p to mkdir
  • Loading branch information
badra001 committed Oct 6, 2023
1 parent 4ee9b28 commit 810cd46
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
- add flag create to trigger creating or not creating the module resources
- ignore boc:tf_module_version tag in lifecycle change

* 1.4.1 -- 2023-10-06
- change ldap.e.tco default to ldap2.e.tco
- add -p to mkdir

## version 2.x

branch: compat-tf-0.13
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module "myrole1" {
# optional
max_session_duration = 14400 # 4h
ldap_host = "ldap.e.tco.census.gov"
ldap_host = "ldap2.e.tco.census.gov"
ldap_port = 389
}
```
Expand Down Expand Up @@ -149,7 +149,7 @@ No modules.
| <a name="input_enable_ldap_creation"></a> [enable\_ldap\_creation](#input\_enable\_ldap\_creation) | Flag to enable/disable LDAP object creation for role group (for SAML only). Also requires LDAP credentials. | `bool` | `false` | no |
| <a name="input_inline_policies"></a> [inline\_policies](#input\_inline\_policies) | List of IAM Policy Document objects to include in this role. Format is {name=name,policy=policy-json} | `list(object({ name = string, policy = string }))` | `[]` | no |
| <a name="input_instance_profile_path"></a> [instance\_profile\_path](#input\_instance\_profile\_path) | Instance profile path | `string` | `"/"` | no |
| <a name="input_ldap_host"></a> [ldap\_host](#input\_ldap\_host) | LDAP Hostname (default is for eBOCAS) | `string` | `"ldap.e.tco.census.gov"` | no |
| <a name="input_ldap_host"></a> [ldap\_host](#input\_ldap\_host) | LDAP Hostname (default is for eBOCAS) | `string` | `"ldap2.e.tco.census.gov"` | no |
| <a name="input_ldap_password"></a> [ldap\_password](#input\_ldap\_password) | LDAP password for ldap\_user for writing data into eDirectory or Active Directory | `string` | `""` | no |
| <a name="input_ldap_port"></a> [ldap\_port](#input\_ldap\_port) | LDAP port (default is 389 but also using STARTTLS) | `number` | `389` | no |
| <a name="input_ldap_user"></a> [ldap\_user](#input\_ldap\_user) | LDAP user for writing data into eDirectory or Active Directory | `string` | `""` | no |
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
*
* # optional
* max_session_duration = 14400 # 4h
* ldap_host = "ldap.e.tco.census.gov"
* ldap_host = "ldap2.e.tco.census.gov"
* ldap_port = 389
* }
* ```
Expand Down Expand Up @@ -199,7 +199,7 @@ resource "null_resource" "role_ldif" {
}

provisioner "local-exec" {
command = "test -d ${path.root}/setup || mkdir ${path.root}/setup"
command = "test -d ${path.root}/setup || mkdir -p ${path.root}/setup"
}
provisioner "local-exec" {
command = "echo '${data.template_file.role[0].rendered}' > ${path.root}/setup/${local.role_name}.ldif"
Expand Down
2 changes: 1 addition & 1 deletion variables.ldap.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ variable "ldap_password" {
variable "ldap_host" {
description = "LDAP Hostname (default is for eBOCAS)"
type = string
default = "ldap.e.tco.census.gov"
default = "ldap2.e.tco.census.gov"
}

variable "ldap_port" {
Expand Down
2 changes: 1 addition & 1 deletion version.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
_module_version = "1.4.0"
_module_version = "1.4.1"
# _module_version = "2.2.0"
}

0 comments on commit 810cd46

Please sign in to comment.