Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • rrand11/terraform-openstack
  • louistw/terraform-openstack
  • chirag24/terraform-openstack
  • mmoo97/terraform-openstack
  • jpr/terraform-openstack
  • ravi89/terraform-openstack
  • noe121/terraform-openstack
  • ishan747/terraform-openstack
  • clint93/terraform-openstack
  • ravi89/terraform_openstack
  • krish94/terraform-openstack
  • rc/terraform-openstack
12 results
Show changes
Commits on Source (7)
...@@ -14,6 +14,7 @@ provider "openstack" { ...@@ -14,6 +14,7 @@ provider "openstack" {
} }
} }
# runs the internal-network module # runs the internal-network module
module "cluster-network" { module "cluster-network" {
internal_net = var.internal_network internal_net = var.internal_network
......
...@@ -37,12 +37,24 @@ resource "openstack_compute_instance_v2" "ohpc" { ...@@ -37,12 +37,24 @@ resource "openstack_compute_instance_v2" "ohpc" {
security_groups = ["default"] security_groups = ["default"]
user_data = <<-EOF user_data = <<-EOF
#cloud-config #cloud-config
write_files: write_files:
- content: | - content: |
10.1.1.10 ohpc ohpc.novalocal 10.1.1.10 ohpc ohpc.novalocal
owner: centos:centos owner: centos:centos
path: /etc/hosts path: /etc/hosts
permissions: 0644 permissions: '0644'
runcmd:
- |
#!/bin/bash
sudo mkdir -p /data/xdmod/queues
sudo mount /dev/vdb1 /var/lib/mysql
sudo mount /dev/vdc1 /data/xdmod/queues
sudo df -h
sudo systemctl restart mariadb
sudo sed -i -E 's/xdmod..nip.io/xdmod.rc.uab.edu/g' /etc/httpd/conf.d/xdmod.conf
sudo sed -i -E 's/xdmod..nip.io/xdmod.rc.uab.edu/g' /etc/xdmod/simplesamlphp/config/config.php
sudo systemctl restart httpd
EOF EOF
# defines the networks of the instance # defines the networks of the instance
......
...@@ -25,7 +25,7 @@ variable "external_network" {default = "dmznet"} ...@@ -25,7 +25,7 @@ variable "external_network" {default = "dmznet"}
variable "ohpc_user" {default = "centos"} 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 = "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"}
......