Skip to content
Snippets Groups Projects
Commit 426a36ca authored by Eesaan Atluri's avatar Eesaan Atluri Committed by John-Paul Robinson
Browse files

Replace ohpc IP in /etc/hosts from the img for scontrol to work.

parent 794272c7
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,15 @@ resource "openstack_compute_instance_v2" "ohpc" {
flavor_name = var.flavor
key_pair = var.key_pair
security_groups = ["default"]
user_data = <<-EOF
#cloud-config
write_files:
- content: |
10.1.1.10 ohpc ohpc.novalocal
owner: centos:centos
path: /etc/hosts
permissions: 0644
EOF
# defines the networks of the instance
network {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment