Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 45caf8b

Browse files
author
KoLiBer
committed
docs: change README
1 parent b971b76 commit 45caf8b

File tree

1 file changed

+20
-38
lines changed

1 file changed

+20
-38
lines changed

README.md

Lines changed: 20 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Terraform Module RKE
1+
# Terraform Module Script
22

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)
66

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**
88

99
## Installation
1010

@@ -17,41 +17,23 @@ terraform init
1717
## Usage
1818

1919
```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"
3329
}
3430
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
5537
}
5638
```
5739

0 commit comments

Comments
 (0)