forked from usegalaxy-eu/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
instance_dedicated_student-hoolers.tf
38 lines (33 loc) · 2.12 KB
/
instance_dedicated_student-hoolers.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
variable "student-hollers-dns" {
default = "student-hollers-vm"
}
data "openstack_images_image_v2" "student-hollers-image" {
name = "Ubuntu 20.04"
}
resource "openstack_compute_instance_v2" "student-hollers" {
name = var.student-hollers-dns
flavor_name = "m1.xxlarge"
key_pair = "cloud2"
security_groups = ["default", "public-ssh", "public-web2"]
network {
name = "public"
}
block_device {
uuid = data.openstack_images_image_v2.student-hollers-image.id
source_type = "image"
volume_size = 500
destination_type = "volume"
boot_index = 0
delete_on_termination = true
}
user_data = <<-EOF
#cloud-config
package_update: true
package_upgrade: true
users:
- default
ssh_authorized_keys:
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDC6IJZr895Q4tO5HNmaARdcy70gY7+FHoBL2rHuYV++VMks3Q5RjPKjQqR/1malPBQR0suPwPp8mFV37Q1pkgnznEeAE8onkeUOybzcMKsaH7HiQxgN2Ic/+74HHHm/pkraN7zs0LzUDC6aVFSI0mh0aa/N/Qvyh+szE5Z4fHeQPdP1edkPmtI1M54achSR5b2tNCmjoQnkGmlRssXI97I2PPpy5hdjeXGaPg10SpYuz4Tpr0doZK2QhpVFeg8PrJ/bzCr0Bl4Mb/M5ItKUVJFn89XIe55xkgJRfw6gaVGiPK+VUUDmtvK3D39AS/0hBQ1AOVWDKl9lYgsSJikrLGbe81QsRMIpiNKDCy25eAH/OgtTHf3e0lg8qde0HDSwpTmUR2DuNr14999WbMQLMyplA6Tx4oAefvTtzrBRRZR5UOaIrT80vEzJwo+Mx5SLGT2A++nuGPZW0FZqO4rLmylqTIGngRxp14w0AIUZUhnQdxmQZlkBUeggK7igAVDjFs= sebastian@LAPTOP-8S2B40ST"
- "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