Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
Terraform Openstack
Merge requests
!27
Feat trim tf deploy
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Feat trim tf deploy
feat-trim-tf-deploy
into
master
Overview
0
Commits
3
Pipelines
4
Changes
2
Open
Eesaan Atluri
requested to merge
feat-trim-tf-deploy
into
master
1 year ago
Overview
0
Commits
3
Pipelines
4
Changes
1
Expand
👍
0
👎
0
Merge request reports
Viewing commit
98cd4996
Show latest version
1 file
+
0
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
98cd4996
remove the internal network as compute nodes are not deployed
· 98cd4996
Eesaan Atluri
authored
1 year ago
main.tf
+
0
−
15
Options
@@ -14,19 +14,6 @@ provider "openstack" {
}
}
# runs the internal-network module
module
"cluster-network"
{
internal_net
=
var
.
internal_network
source
=
"./internal-network"
# Default name var is in the module main file
admin_state_up
=
var
.
admin_state_up
enable_dhcp
=
var
.
enable_dhcp
}
# calls the outputs defined in the internal-network module
output
"internal_network_id"
{
value
=
"
${module
.
cluster-network
.
internal_network_id
}
"
}
# runs the floating-ip module - uses public network name defined above
module
"floating-ip-address"
{
source
=
"./floating-ip"
@@ -62,8 +49,6 @@ module "create-ohpc-instance" {
flavor
=
var
.
flavor
key_pair
=
module
.
import-keypair
.
keypair_name
external_network
=
data
.
openstack_networking_network_v2
.
external_net
.
id
internal_network
=
"
${module
.
cluster-network
.
internal_network_id
}
"
internal_ip
=
var
.
ohpc_private_ip
floating_ip_ohpc
=
module
.
floating-ip-address
.
ohpc_address
ohpc_user
=
var
.
ohpc_user
ssh_private_key
=
var
.
ssh_private_key
Loading