-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# password-store secret writter module | ||
|
||
Put a secret into a password-store repository. | ||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
## Requirements | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | ~> 1.3 | | ||
| <a name="requirement_pass"></a> [pass](#requirement\_pass) | ~> 3.1.0 | | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="provider_pass"></a> [pass](#provider\_pass) | ~> 3.1.0 | | ||
|
||
## Modules | ||
|
||
No modules. | ||
|
||
## Resources | ||
|
||
| Name | Type | | ||
|------|------| | ||
| [pass_password.secret](https://registry.terraform.io/providers/mecodia/pass/latest/docs/resources/password) | resource | | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| <a name="input_data"></a> [data](#input\_data) | Additional key-value pairs to store with the password | `map(string)` | `null` | no | | ||
| <a name="input_password"></a> [password](#input\_password) | Password to store | `string` | `null` | no | | ||
| <a name="input_path"></a> [path](#input\_path) | Password Store path to the secret | `string` | n/a | yes | | ||
| <a name="input_yaml"></a> [yaml](#input\_yaml) | YAML representation of the secret | `string` | `null` | no | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| <a name="output_body"></a> [body](#output\_body) | The body of the secret | | ||
| <a name="output_full"></a> [full](#output\_full) | Entire secret contents | | ||
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
output "body" { | ||
description = "The body of the secret" | ||
value = resource.pass_password.secret.body | ||
} | ||
|
||
output "full" { | ||
description = "Entire secret contents" | ||
value = resource.pass_password.secret.full | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
terraform { | ||
required_version = "~> 1.3" | ||
required_providers { | ||
pass = { | ||
source = "mecodia/pass" | ||
version = "~> 3.1.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "pass_password" "secret" { | ||
path = var.path | ||
data = var.data | ||
password = var.password | ||
yaml = var.yaml | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# bellow are specific modules variables | ||
variable "path" { | ||
description = "Password Store path to the secret" | ||
type = string | ||
} | ||
|
||
variable "data" { | ||
description = "Additional key-value pairs to store with the password" | ||
type = map(string) | ||
sensitive = true | ||
default = null | ||
} | ||
|
||
variable "password" { | ||
description = "Password to store" | ||
type = string | ||
sensitive = true | ||
default = null | ||
} | ||
|
||
variable "yaml" { | ||
description = "YAML representation of the secret" | ||
type = string | ||
sensitive = true | ||
default = null | ||
} |