Skip to content

Commit 0f8078e

Browse files
committed
Clean up skeleton directory
Remove empty lines and trailing whitespace, add any missing newline at the end of files.
1 parent e1de488 commit 0f8078e

File tree

8 files changed

+14
-16
lines changed

8 files changed

+14
-16
lines changed

environments/skeleton/{{cookiecutter.environment}}/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
{{ cookiecutter.description }}
44

5-
See the main README.md in the repo root for an overview and general install instructions. Any environment-specific instructions should be added here.
5+
See the main README.md in the repository root for an overview and general install instructions. Any environment-specific instructions should be added here.

environments/skeleton/{{cookiecutter.environment}}/activate

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ echo "Setting PKR_VAR_repo_root to $PKR_VAR_repo_root"
1818
if [ -f "$APPLIANCES_ENVIRONMENT_ROOT/ansible.cfg" ]; then
1919
export ANSIBLE_CONFIG=$APPLIANCES_ENVIRONMENT_ROOT/ansible.cfg
2020
fi
21-
22-
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
grafana_auth_anonymous: true
1+
grafana_auth_anonymous: true

environments/skeleton/{{cookiecutter.environment}}/tofu/compute.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module "compute" {
1212
cluster_domain_suffix = var.cluster_domain_suffix
1313
key_pair = var.key_pair
1414
environment_root = var.environment_root
15-
15+
1616
# can be set for group, defaults to top-level value:
1717
image_id = lookup(each.value, "image_id", var.cluster_image_id)
1818
vnic_types = lookup(each.value, "vnic_types", var.vnic_types)
@@ -38,7 +38,7 @@ module "compute" {
3838
control_address = openstack_networking_port_v2.control[var.cluster_networks[0].network].all_fixed_ips[0]
3939
security_group_ids = [for o in data.openstack_networking_secgroup_v2.nonlogin: o.id]
4040
baremetal_nodes = data.external.baremetal_nodes.result
41-
41+
4242
# input dict validation:
4343
group_name = each.key
4444
group_keys = keys(each.value)

environments/skeleton/{{cookiecutter.environment}}/tofu/control.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ resource "openstack_networking_port_v2" "control" {
3737
}
3838

3939
resource "openstack_compute_instance_v2" "control" {
40-
40+
4141
name = split(".", local.control_fqdn)[0]
4242
image_id = var.cluster_image_id
4343
flavor_name = var.control_node_flavor
4444
key_pair = var.key_pair
45-
45+
4646
# root device:
4747
block_device {
4848
uuid = var.cluster_image_id
@@ -81,7 +81,7 @@ resource "openstack_compute_instance_v2" "control" {
8181
user_data = <<-EOF
8282
#cloud-config
8383
fqdn: ${local.control_fqdn}
84-
84+
8585
bootcmd:
8686
%{for volume in local.control_volumes}
8787
- BLKDEV=$(readlink -f $(ls /dev/disk/by-id/*${substr(volume.id, 0, 20)}* | head -n1 )); blkid -o value -s TYPE $BLKDEV || mke2fs -t ext4 -L ${lower(reverse(split("-", volume.name))[0])} $BLKDEV

environments/skeleton/{{cookiecutter.environment}}/tofu/login.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module "login" {
1212
cluster_domain_suffix = var.cluster_domain_suffix
1313
key_pair = var.key_pair
1414
environment_root = var.environment_root
15-
15+
1616
# can be set for group, defaults to top-level value:
1717
image_id = lookup(each.value, "image_id", var.cluster_image_id)
1818
vnic_types = lookup(each.value, "vnic_types", var.vnic_types)
@@ -21,7 +21,7 @@ module "login" {
2121
root_volume_type = lookup(each.value, "root_volume_type", var.root_volume_type)
2222
gateway_ip = lookup(each.value, "gateway_ip", var.gateway_ip)
2323
nodename_template = lookup(each.value, "nodename_template", var.cluster_nodename_template)
24-
24+
2525
# optionally set for group
2626
networks = concat(var.cluster_networks, lookup(each.value, "extra_networks", []))
2727
# here null means "use module var default"

environments/skeleton/{{cookiecutter.environment}}/tofu/node_group/nodes.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ locals {
1212

1313
# Workaround for lifecycle meta-argument only taking static values
1414
compute_instances = var.ignore_image_changes ? openstack_compute_instance_v2.compute_fixed_image : openstack_compute_instance_v2.compute
15-
15+
1616
# Define fully qualified nodenames here to avoid repetition
1717
fqdns = {
1818
for n in var.nodes: n => templatestring(
@@ -61,7 +61,7 @@ resource "openstack_networking_port_v2" "compute" {
6161
subnet_id = data.openstack_networking_subnet_v2.subnet[each.value.net.network].id
6262
ip_address = try(var.ip_addresses[each.value.net.network][each.value.node_idx], null)
6363
}
64-
64+
6565
no_security_groups = lookup(each.value.net, "no_security_groups", false)
6666
security_group_ids = lookup(each.value.net, "no_security_groups", false) ? [] : var.security_group_ids
6767

@@ -128,7 +128,7 @@ resource "openstack_compute_instance_v2" "compute_fixed_image" {
128128
resource "openstack_compute_instance_v2" "compute" {
129129

130130
for_each = var.ignore_image_changes ? [] : toset(var.nodes)
131-
131+
132132
name = split(".", local.fqdns[each.key])[0]
133133
image_id = var.image_id
134134
flavor_name = var.flavor
@@ -146,7 +146,7 @@ resource "openstack_compute_instance_v2" "compute" {
146146
delete_on_termination = true
147147
}
148148
}
149-
149+
150150
dynamic "network" {
151151
for_each = {for net in var.networks: net.network => net}
152152
content {

environments/skeleton/{{cookiecutter.environment}}/tofu/node_group/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ variable "group_keys" {
180180
error_message = <<-EOT
181181
Node group '${var.group_name}' contains invalid key(s) ${
182182
join(", ", setsubtract(var.group_keys, var.allowed_keys))}.
183-
183+
184184
Valid keys are ${join(", ", var.allowed_keys)}.
185185
EOT
186186
}

0 commit comments

Comments
 (0)