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
Ryan Randles Jones
Terraform Openstack
Commits
e4ca8cb5
Commit
e4ca8cb5
authored
Aug 06, 2019
by
Ryan Randles Jones
Browse files
removed variables to put in vars file
parent
54aeb346
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.tf
View file @
e4ca8cb5
# These are the defined variables used in all the modules. They are referenced in the modules, and defined here.
# This is where you would change any variable values.
# variables for networks and router
variable
"admin_state_up"
{
default
=
true
}
variable
"enable_dhcp"
{
default
=
true
}
# variable for floating-ip - also used in exrernal network creation
variable
"public_network_name"
{
default
=
"bright-external-flat-externalnet"
}
# variables for keypair module
variable
"keypair_name"
{
default
=
"os-gen-keypair"
}
variable
"ssh_public_key"
{
default
=
"~/.ssh/id_rsa.pub"
}
# variables for instance modules
variable
"ohpc_instance_name"
{
default
=
"ohpc"
}
variable
"ood_instance_name"
{
default
=
"ood"
}
variable
"image_ohpc"
{
default
=
"CentOS-7-x86_64-GenericCloud-1905"
}
variable
"image_ood"
{
default
=
"CentOS-7-x86_64-GenericCloud-1905"
}
variable
"flavor"
{
default
=
"m1.medium"
}
variable
"internal_net"
{
default
=
"clusternet"
}
variable
"external_net"
{
default
=
"dmznet"
}
variable
"host_prefix"
{
default
=
"164.111.161.%s"
}
variable
"ohpc_user"
{
default
=
"centos"
}
variable
"ood_user"
{
default
=
"centos"
}
variable
"ssh_private_key"
{
default
=
"~/.ssh/id_rsa"
}
# variables for node creation module
variable
"image_compute"
{
default
=
"CentOS-7-x86_64-GenericCloud-1905"
}
variable
"compute_node_count"
{
default
=
2
}
# runs the external-network module
module
"dmz-network"
{
source
=
"./external-network"
...
...
Write
Preview
Supports
Markdown
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