Skip to content

Commit 87fe735

Browse files
committed
fix state volume not mounting on reboot
1 parent 6064315 commit 87fe735

File tree

1 file changed

+1
-1
lines changed
  • environments/skeleton/{{cookiecutter.environment}}/terraform

1 file changed

+1
-1
lines changed

environments/skeleton/{{cookiecutter.environment}}/terraform/nodes.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ resource "openstack_compute_instance_v2" "control" {
130130
- mke2fs -t ext4 -L ${lower(split(" ", volume.description)[0])} $(readlink -f $(ls /dev/disk/by-id/*${volume.id} | head -n1 ))
131131
%{endfor}
132132
mounts:
133-
- [LABEL=state, ${var.state_dir}]
133+
- [LABEL=state, ${var.state_dir}, auto, "x-systemd.after=cloudinit.service"]
134134
- [LABEL=home, /exports/home, auto, "x-systemd.required-by=nfs-server.service,x-systemd.before=nfs-server.service"]
135135
EOF
136136

0 commit comments

Comments
 (0)