Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
John-Paul Robinson
ohpc_vagrant
Commits
0bff4270
Commit
0bff4270
authored
Sep 19, 2018
by
John-Paul Robinson
Browse files
initial commit
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
0bff4270
.vagrant
README.md
0 → 100644
View file @
0bff4270
Project to provision an OpenHPC cluster via Vagrant using the
CRI_XCBC (XSEDE basic cluster) Ansible provisioning framework.
The Vagrantfile takes inspiration from the
[
vagrantcluster
](
https://github.com/cluening/vagrantcluster
)
project but is oriented toward deploying only a master node
and using standard OHPC tools to provision the cluster, and
therfore favors the CRI_XCBC approach to ansible scripts just
for the master.
The Vagrantfile is stripped to the core (rather that carry all
the cruft of a vagrant init). It leverages work from a
[
pilot project
](
https://gitlab.rc.uab.edu/ravi89/ohpc_vagrant
)
(primaryly the development of an updated centos 7.5 image)
but prefers a clean repo slate.
Vagrantfile
0 → 100644
View file @
0bff4270
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant
.
configure
(
"2"
)
do
|
config
|
config
.
vm
.
define
"ohpc"
do
|
ohpc
|
ohpc
.
vm
.
box
=
"ravi89/centos7.5"
ohpc
.
vm
.
box_version
=
"1"
ohpc
.
vm
.
hostname
=
"ohpc"
ohpc
.
vm
.
network
"private_network"
,
ip:
"10.1.1.1"
,
virtualbox__intnet:
"compute"
#ohpc.vm.customize ["modifyvm", :id, "--name", "ohpc"]
end
config
.
vm
.
provider
:virtualbox
do
|
vb
|
vb
.
customize
[
"modifyvm"
,
:id
,
"--natdnshostresolver1"
,
"on"
]
vb
.
memory
=
"2048"
end
config
.
vm
.
provision
"shell"
,
inline:
<<-
SHELL
if [ -f /vagrant/localenv.sh ]; then
. /vagrant/localenv.sh
fi
yum install -y ansible git vim bash-completion
ansible-playbook -c local -i /vagrant/CRI_XCBC/hosts -l `hostname` /vagrant/CRI_XCBC/site.yaml
SHELL
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment