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
c7f0f088
Prev
Next
Show latest version
1 file
+
1
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c7f0f088
Remove compute node related TF code
· c7f0f088
Eesaan Atluri
authored
1 year ago
main.tf
+
1
−
15
Options
@@ -70,18 +70,6 @@ module "create-ohpc-instance" {
vol_id
=
data
.
openstack_blockstorage_volume_v2
.
disk
.
id
}
# runs the nodes module - creates nodes using variables defined above
# calls functions from cluster-network and import-keypair modules to get values created there for use
module
"nodes"
{
internal_subnet_id
=
"
${module
.
cluster-network
.
internal_subnet_id
}
"
source
=
"./nodes"
image_compute
=
var
.
image_compute
flavor
=
var
.
flavor
key_pair
=
module
.
import-keypair
.
keypair_name
compute_node_count
=
var
.
compute_node_count
internal_network
=
"
${module
.
cluster-network
.
internal_network_id
}
"
}
# calls the outputs defined in the ohpc-instance module
output
"ohpc-ssh_host"
{
value
=
module
.
create-ohpc-instance
.
ssh_host
@@ -96,7 +84,6 @@ output "xdmod_instance_id" {
resource
"null_resource"
"ops"
{
triggers
=
{
ohpc_instance
=
module
.
create-ohpc-instance
.
xdmod_instance_id
compute_instances
=
join
(
","
,
module
.
nodes
.
id
)
}
connection
{
@@ -131,8 +118,7 @@ provisioner "remote-exec" {
# compute node registration on ohpc
provisioner
"remote-exec"
{
inline
=
[
for
node
,
net
in
module
.
nodes
.
network
:
"ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` -e
\"
{'cod_deploy':'false', 'compute_nodes':[{'name':'
${
node
}
', 'ip':'
${
net
[
0
].
fixed_ip_v4
}
', 'mac':'
${
net
[
0
].
mac
}
', 'vnfs':'', 'sockets':'1', 'corespersocket':'1'}]}
\"
/CRI_XCBC/site-ops.yaml -b -v"
"ansible-playbook -c local -i /CRI_XCBC/hosts -l `hostname -s` -e
\"
{'cod_deploy':'false',}
\"
/CRI_XCBC/site-ops.yaml -b -v"
]
}
}
Loading