This repository was archived by the owner on Feb 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-38
lines changed Expand file tree Collapse file tree 1 file changed +20
-38
lines changed Original file line number Diff line number Diff line change 1
- # Terraform Module RKE
1
+ # Terraform Module Script
2
2
3
- ![ pipeline] ( https://github.com/cktf/terraform-module-rke /actions/workflows/cicd.yml/badge.svg )
4
- ![ release] ( https://img.shields.io/github/v/release/cktf/terraform-module-rke ?display_name=tag )
5
- ![ license] ( https://img.shields.io/github/license/cktf/terraform-module-rke )
3
+ ![ pipeline] ( https://github.com/cktf/terraform-module-script /actions/workflows/cicd.yml/badge.svg )
4
+ ![ release] ( https://img.shields.io/github/v/release/cktf/terraform-module-script ?display_name=tag )
5
+ ![ license] ( https://img.shields.io/github/license/cktf/terraform-module-script )
6
6
7
- ** RKE ** is a Terraform module useful for bootstraping ** HA ** kubernetes clusters using ** k3s ** and ** rke2 ** on ** Remote Machines **
7
+ ** Script ** is a Terraform module useful for running ** create ** and ** destroy ** scripts on ** remote machines **
8
8
9
9
## Installation
10
10
@@ -17,41 +17,23 @@ terraform init
17
17
## Usage
18
18
19
19
``` hcl
20
- module "rke" {
21
- source = "cktf/rke/module"
22
-
23
- masters = {
24
- 1 = {
25
- connection = {
26
- type = "ssh"
27
- host = "192.168.172.185"
28
- port = 22
29
- user = "ubuntu"
30
- password = "ubuntu"
31
- }
32
- }
20
+ module "script" {
21
+ source = "cktf/script/module"
22
+
23
+ connection = {
24
+ type = "ssh"
25
+ host = "192.168.100.100"
26
+ port = 22
27
+ user = "root"
28
+ password = "pass"
33
29
}
34
30
35
- nodes = {
36
- 1 = {
37
- connection = {
38
- type = "ssh"
39
- host = "192.168.172.186"
40
- port = 22
41
- user = "ubuntu"
42
- password = "ubuntu"
43
- }
44
- }
45
- 2 = {
46
- connection = {
47
- type = "ssh"
48
- host = "192.168.172.186"
49
- port = 22
50
- user = "ubuntu"
51
- password = "ubuntu"
52
- }
53
- }
54
- }
31
+ create = <<-EOF
32
+ apt install -y docker.io
33
+ EOF
34
+ destroy = <<-EOF
35
+ apt remove -y docker.io
36
+ EOF
55
37
}
56
38
```
57
39
You can’t perform that action at this time.
0 commit comments