Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Fix terraform formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
  • Loading branch information
surajssd committed Feb 9, 2021
1 parent 3c1a0cf commit 514635a
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 38 deletions.
6 changes: 3 additions & 3 deletions ci/packet/packet-cluster.lokocfg.envsubst
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ EOF

project_id = "$PACKET_PROJECT_ID"

ssh_pubkeys = ["$PUB_KEY"]
management_cidrs = ["0.0.0.0/0"]
ssh_pubkeys = ["$PUB_KEY"]
management_cidrs = ["0.0.0.0/0"]
node_private_cidrs = ["10.0.0.0/8"]

worker_pool "pool-1" {
count = 2
node_type = "c2.medium.x86"
labels = {
labels = {
"testing.io" = "yes",
"roleofnode" = "testing",
}
Expand Down
4 changes: 2 additions & 2 deletions ci/packet_arm/packet_arm-cluster.lokocfg.envsubst
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ EOF
os_channel = "alpha"
controller_type = "c2.large.arm"

ssh_pubkeys = ["$PUB_KEY"]
management_cidrs = ["0.0.0.0/0"]
ssh_pubkeys = ["$PUB_KEY"]
management_cidrs = ["0.0.0.0/0"]
node_private_cidrs = ["10.0.0.0/8"]

worker_pool "pool-1" {
Expand Down
10 changes: 5 additions & 5 deletions ci/packet_fluo/packet_fluo-cluster.lokocfg.envsubst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ EOF

project_id = "$PACKET_PROJECT_ID"

ssh_pubkeys = ["$PUB_KEY"]
management_cidrs = ["0.0.0.0/0"]
ssh_pubkeys = ["$PUB_KEY"]
management_cidrs = ["0.0.0.0/0"]
node_private_cidrs = ["10.0.0.0/8"]

worker_pool "general" {
Expand All @@ -44,7 +44,7 @@ EOF
}

worker_pool "storage" {
count = 3
count = 3
node_type = "c2.medium.x86"

labels = {
Expand Down Expand Up @@ -77,7 +77,7 @@ component "rook" {
}

component "rook-ceph" {
monitor_count = 3
monitor_count = 3
enable_toolbox = true

node_affinity {
Expand All @@ -93,7 +93,7 @@ component "rook-ceph" {
}

storage_class {
enable = true
enable = true
default = true
}
}
Expand Down
36 changes: 18 additions & 18 deletions cli/cmd/cluster/utils_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ func TestGetKubeconfigSourceFlag(t *testing.T) {
configFile: `cluster "packet" {
asset_dir = "/bad"
cluster_name = ""
controller_count = 0
facility = ""
management_cidrs = []
cluster_name = ""
controller_count = 0
facility = ""
management_cidrs = []
node_private_cidrs = []
project_id = ""
ssh_pubkeys = []
project_id = ""
ssh_pubkeys = []
dns {
provider = ""
zone = ""
Expand Down Expand Up @@ -214,13 +214,13 @@ func TestGetKubeconfigSourceConfigFile(t *testing.T) {
configFile: `cluster "packet" {
asset_dir = "/foo"
cluster_name = ""
controller_count = 0
facility = ""
management_cidrs = []
cluster_name = ""
controller_count = 0
facility = ""
management_cidrs = []
node_private_cidrs = []
project_id = ""
ssh_pubkeys = []
project_id = ""
ssh_pubkeys = []
dns {
provider = ""
zone = ""
Expand Down Expand Up @@ -277,13 +277,13 @@ func TestGetKubeconfigFromAssetsDir(t *testing.T) {
configFile: fmt.Sprintf(`cluster "packet" {
asset_dir = "%s"
cluster_name = ""
controller_count = 0
facility = ""
management_cidrs = []
cluster_name = ""
controller_count = 0
facility = ""
management_cidrs = []
node_private_cidrs = []
project_id = ""
ssh_pubkeys = []
project_id = ""
ssh_pubkeys = []
dns {
provider = ""
zone = ""
Expand Down
12 changes: 6 additions & 6 deletions docs/quickstarts/packet.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,27 @@ Create a file named `cluster.lokocfg` with the following contents:

```hcl
cluster "packet" {
asset_dir = "./assets"
cluster_name = "lokomotive-demo"
asset_dir = "./assets"
cluster_name = "lokomotive-demo"
dns {
zone = "example.com"
provider = "route53"
}
facility = "ams1"
facility = "ams1"
project_id = "89273817-4f44-4b41-9f0c-cb00bf538542"
controller_type = "c3.small.x86"
ssh_pubkeys = ["ssh-rsa AAAA..."]
management_cidrs = ["0.0.0.0/0"]
ssh_pubkeys = ["ssh-rsa AAAA..."]
management_cidrs = ["0.0.0.0/0"]
node_private_cidrs = ["10.0.0.0/8"]
controller_count = 1
worker_pool "pool-1" {
count = 2
count = 2
node_type = "c3.small.x86"
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/packet-production/cluster.lokocfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ cluster "packet" {

project_id = var.packet_project_id

ssh_pubkeys = var.ssh_public_keys
management_cidrs = var.management_cidrs
ssh_pubkeys = var.ssh_public_keys
management_cidrs = var.management_cidrs
node_private_cidrs = var.node_private_cidrs

worker_pool "pool-1" {
Expand Down
4 changes: 2 additions & 2 deletions examples/packet-testing/cluster.lokocfg
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ cluster "packet" {

project_id = var.packet_project_id

ssh_pubkeys = var.ssh_public_keys
management_cidrs = var.management_cidrs
ssh_pubkeys = var.ssh_public_keys
management_cidrs = var.management_cidrs
node_private_cidrs = var.node_private_cidrs

worker_pool "pool-1" {
Expand Down

0 comments on commit 514635a

Please sign in to comment.