Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Krish Moodbidri
Terraform Openstack
Commits
f64f3298
Commit
f64f3298
authored
Jul 16, 2019
by
Ishan Patel
Browse files
added-var-for-compute-node
parent
e039eca2
Changes
2
Hide whitespace changes
Inline
Side-by-side
main.tf
View file @
f64f3298
...
...
@@ -133,7 +133,7 @@ resource "openstack_compute_floatingip_associate_v2" "ood" {
resource
"openstack_compute_instance_v2"
"c0"
{
depends_on
=
[
openstack_networking_subnet_v2
.
internal_subnet
]
name
=
"c0"
image_name
=
var
.
image_
ood
image_name
=
var
.
image_
compute
flavor_name
=
var
.
flavor
key_pair
=
openstack_compute_keypair_v2
.
keypair
.
name
security_groups
=
[
"default"
]
...
...
vars.tf
View file @
f64f3298
...
...
@@ -41,6 +41,10 @@ variable "image_ood" {
default
=
"CentOS-7-x86_64-GenericCloud-1905"
}
variable
"image_compute"
{
defult
=
"CentOS-7-x86_64-GenericCloud-1905"
}
variable
"keypair-name"
{
default
=
"os-gen-keypair"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment