Skip to content

Commit ba4704c

Browse files
author
linuxpatch
committed
initial commit
1 parent 8d8ffbb commit ba4704c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ This Terraform module automates the process of downloading, executing, and clean
88

99
- Terraform installed on the control node.
1010
- SSH access to the target host.
11-
- API key for [linuxpatch.com](https://linuxpatch.com).
11+
- LinuxPatch key for [linuxpatch.com](https://linuxpatch.com).
1212
- SSH private key for authentication.
1313

1414
## Variables
1515

16-
- `api_key`: The API key required for the script execution. You should replace the placeholder with your actual API key.
16+
- `lp_key`: The API key required for the script execution. You should replace the placeholder with your actual API key.
1717
- `target_host`: The target host where the script will be executed.
1818

1919
## Usage
@@ -24,7 +24,7 @@ This Terraform module automates the process of downloading, executing, and clean
2424

2525
2. **Set up the variables**:
2626

27-
Open `variables.tf` and define the variables `api_key` and `target_host`.
27+
Open `variables.tf` and define the variables `lp_key` and `target_host`.
2828

2929
3. **Run Terraform Init**:
3030

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "null_resource" "run_install_script" {
2828

2929
inline = [
3030
"bash /tmp/install_script.sh",
31-
"API_KEY=${var.api_key} /tmp/install.sh",
31+
"LP_KEY=${var.lp_key} /tmp/install.sh",
3232
]
3333
}
3434

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
variable "api_key" {
2-
description = "API key for linuxpatch.com"
1+
variable "lp_key" {
2+
description = "Customer key for linuxpatch.com"
33
type = string
44
}
55

0 commit comments

Comments
 (0)