Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Krish Moodbidri
Terraform Openstack
Commits
37222d2b
Commit
37222d2b
authored
1 year ago
by
Krish Moodbidri
Browse files
Options
Downloads
Patches
Plain Diff
add volume 'xdmod_queue_data_volume' and Enable Mount at '/data/xdmod/queues/'
parent
063daa1a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.tf
+9
-0
9 additions, 0 deletions
main.tf
vars.tf
+1
-0
1 addition, 0 deletions
vars.tf
with
10 additions
and
0 deletions
main.tf
+
9
−
0
View file @
37222d2b
...
@@ -56,6 +56,7 @@ output "keypair_name" {
...
@@ -56,6 +56,7 @@ output "keypair_name" {
data
"openstack_networking_network_v2"
"external_net"
{
name
=
var
.
external_network
}
data
"openstack_networking_network_v2"
"external_net"
{
name
=
var
.
external_network
}
data
"openstack_blockstorage_volume_v2"
"disk"
{
name
=
var
.
data_volume
}
data
"openstack_blockstorage_volume_v2"
"disk"
{
name
=
var
.
data_volume
}
data
"openstack_blockstorage_volume_v2"
"disk2"
{
name
=
var
.
xdmod_queue_data_volume
}
# runs the ohpc-instance module - creates ohpc instance using variables defined above
# runs the ohpc-instance module - creates ohpc instance using variables defined above
# calls functions from dmz-network, import-keypair, and floating-ip-address modules to get values created there for use
# calls functions from dmz-network, import-keypair, and floating-ip-address modules to get values created there for use
...
@@ -155,6 +156,14 @@ provisioner "remote-exec" {
...
@@ -155,6 +156,14 @@ provisioner "remote-exec" {
]
]
}
}
provisioner
"remote-exec"
{
inline
=
[
"sudo mount
${module
.
create-ohpc-instance
.
device
}
1 /data/xdmod/queues"
,
"sudo df -h"
,
"sudo systemctl restart mariadb"
,
]
}
# compute node registration on ohpc
# compute node registration on ohpc
provisioner
"remote-exec"
{
provisioner
"remote-exec"
{
inline
=
[
inline
=
[
...
...
This diff is collapsed.
Click to expand it.
vars.tf
+
1
−
0
View file @
37222d2b
...
@@ -26,6 +26,7 @@ variable "ohpc_user" {default = "centos"}
...
@@ -26,6 +26,7 @@ variable "ohpc_user" {default = "centos"}
variable
"ood_user"
{
default
=
"centos"
}
variable
"ood_user"
{
default
=
"centos"
}
variable
"ssh_private_key"
{
default
=
"~/.ssh/id_rsa"
}
variable
"ssh_private_key"
{
default
=
"~/.ssh/id_rsa"
}
variable
"data_volume"
{
default
=
""
}
variable
"data_volume"
{
default
=
""
}
variable
"xdmod_queue_data_volume"
{
default
=
"xdmod_queue_data_volume"
}
# variables for node creation module
# variables for node creation module
variable
"image_compute"
{
default
=
"compute-v1"
}
variable
"image_compute"
{
default
=
"compute-v1"
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment