forked from WorksOnArm/OpenStackWorksOnArm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenStackSampleWorkload.tf.off
43 lines (37 loc) · 1.2 KB
/
OpenStackSampleWorkload.tf.off
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
39
40
41
42
#
# load up the cloud with some sample VMs and a network
#
resource "null_resource" "openstack-sample-workload" {
depends_on = [
null_resource.controller-openstack,
null_resource.openstack-image-CentOS-7-ARM,
null_resource.openstack-image-CentOS-7-x86,
null_resource.openstack-image-Fedora-26-ARM,
null_resource.openstack-image-Cirros-x86,
null_resource.openstack-image-Fedora-26-ARM,
null_resource.openstack-image-Cirros-x86,
null_resource.openstack-image-Artful-17_10-ARM,
null_resource.openstack-image-Trusty-14_04-ARM,
null_resource.openstack-image-Xenial-16_04-ARM,
null_resource.openstack-image-Bionic-18_04-ARM,
null_resource.openstack-image-Cirros-ARM,
null_resource.openstack-flavors,
]
connection {
host = packet_device.controller.access_public_ipv4
private_key = file(var.cloud_ssh_key_path)
}
provisioner "file" {
source = "userdata.txt"
destination = "userdata.txt"
}
provisioner "file" {
source = "SampleOpenStackWorkload.sh"
destination = "SampleOpenStackWorkload.sh"
}
provisioner "remote-exec" {
inline = [
"bash SampleOpenStackWorkload.sh > SampleOpenStackWorkload.out",
]
}
}