Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-minicluster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ale
ansible-minicluster
Commits
b9ab45fe
Commit
b9ab45fe
authored
7 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Set up a DNS entry for Hydra on the public domain
parent
f701fa92
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/Vagrantfile
+7
-0
7 additions, 0 deletions
test/Vagrantfile
with
7 additions
and
0 deletions
test/Vagrantfile
+
7
−
0
View file @
b9ab45fe
...
@@ -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
...
...
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