Skip to content
Snippets Groups Projects
Commit b9ab45fe authored by ale's avatar ale
Browse files

Set up a DNS entry for Hydra on the public domain

parent f701fa92
Branches
No related tags found
No related merge requests found
...@@ -16,12 +16,19 @@ Vagrant.configure(API_VERSION) do |config| ...@@ -16,12 +16,19 @@ Vagrant.configure(API_VERSION) do |config|
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 3000] vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 3000]
end end
# Setup /etc/hosts.
#
# Hosts need to find each other using both the short name and the
# fqdn. Furthermore, the OAuth workflow (even internally) uses the
# public domain, so we also create an entry for that, pointing at a
# random node.
config.vm.provision "shell", inline: <<SCRIPT config.vm.provision "shell", inline: <<SCRIPT
cat > /etc/hosts <<EOF cat > /etc/hosts <<EOF
127.0.0.1 localhost 127.0.0.1 localhost
192.168.10.10 node1.#{DOMAIN} node1 192.168.10.10 node1.#{DOMAIN} node1
192.168.10.11 node2.#{DOMAIN} node2 192.168.10.11 node2.#{DOMAIN} node2
192.168.10.12 node3.#{DOMAIN} node3 192.168.10.12 node3.#{DOMAIN} node3
192.168.10.12 hydra.public.#{DOMAIN}
EOF EOF
SCRIPT SCRIPT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment