diff --git a/ohpc-instance/main.tf b/ohpc-instance/main.tf
index 746a7e51b437cfbe37bb1463ff038266513fafa7..cf39081368c88a4208823ef9ea0af75dcf87ee35 100644
--- a/ohpc-instance/main.tf
+++ b/ohpc-instance/main.tf
@@ -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 {