Coder Social home page Coder Social logo

hanlon-vagrant's Introduction

Hanlon Vagrant[ified]

Please note that the provisioning shell "script" is being ported to chef-solo, puppet and ansible.

Getting Started

Install Vagrant + VirtualBox

Requires Vagrant and VirtualBox - pick installers appropriate for your OS.

Set up Hanlon Server

Clone this repo:

git clone https://github.com/ap1kenobi/hanlon-vagrant ~/hanlon
cd ~/hanlon
vagrant up

Once it's finished provisioning (hopefully without errors), ssh to the VM:

vagrant ssh

and fire up Hanlon:

cd /opt/hanlon/script
./run-tri.sh

Notes

Only Hanlon Server and a couple of pre-requisites such as ipxe, tftpd and dhcpd, are deployed and configured. See bootstrap.sh for details.

What still remains is automation of image and model creation - see manual steps below...

Set up provisioning

Open a second ssh connection:

vagrant ssh
cd /opt/hanlon

Create iPXE configuration:

./cli/hanlon config ipxe > /tftpboot/hanlon.ipxe

Get Hanlon Microkernel and add it to the image repo:

wget https://github.com/csc/Hanlon-Microkernel/releases/download/v1.0/hnl_mk_prod-image.1.0.iso
./cli/hanlon image add -t mk -p hnl_mk_prod-image.1.0.iso

Add CentOS ISO to the image repo:

wget http://reflector.westga.edu/repos/CentOS/6.5/isos/x86_64/CentOS-6.5-x86_64-minimal.iso
./cli/hanlon image add -t os -p CentOS-6.5-x86_64-minimal.iso -n CentOS65 -v 6.5

Create model:

./cli/hanlon model add -t centos_6 -l centos65-model -i K3v2suiIkSYNEdx1CTKqs

Create the policy:

./cli/hanlon policy add --template=linux_deploy -l centos65-policy -m 2J5Vb2ztkks9pz1iLrCxks -t memsize_1GiB --enabled true

Credits

bootstrap.sh and the manual steps are based on Joe's work outlined in his wiki page: here

hanlon-vagrant's People

Contributors

ap1kenobi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

toepi

hanlon-vagrant's Issues

Provisioning process error at ruby-build

Hi Alex,
Getting the following error today. Didn't see it yesterday, so it might be something you have worked on yesterday?

2014-06-19 07:29:50 (1.48 MB/s) - 'syslinux-6.02.tar.gz' saved [11069380/1106938
0]

Cloning into '.'...
Cloning into '/home/vagrant/.rbenv'...
Cloning into '/home/vagrant/.rbenv/plugins/ruby-build'...
/tmp/vagrant-shell: line 51: ./~/.rbenv/plugins/ruby-build/install.sh: No such file or directory
/tmp/vagrant-shell: line 54: ruby-build: command not found
rbenv: version 1.9.3-p547' not installed ERROR: While executing gem ... (Errno::EACCES) Permission denied - /var/lib/gems /tmp/vagrant-shell: line 58: bundle: command not found /tmp/vagrant-shell: line 60: ruby-build: command not found rbenv: versionjruby-1.7.12' not installed
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /var/lib/gems/tmp/vagrant-shell: line 64: bundle: command not found
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- colored (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from ./hanlon_init:8:in `

'

zlib error message during provisioning process

Hi Alex,

During the provisioning process I get the following error (Win7 SOE CSC):

==> default: Downloading ruby-1.9.3-p547.tar.gz...
==> default: -> http://dqw8nmjcqpjn7.cloudfront.net/9ba118e4aba04c430bc4d5efb09b
31a0277e101c9fd2ef3b80b9c684d7ae57a1
==> default: Installing ruby-1.9.3-p547...
==> default: Installed ruby-1.9.3-p547 to /home/vagrant/.rbenv/versions/1.9.3-p5
47
==> default: ERROR: Loading command: install (LoadError)
==> default: cannot load such file -- zlib
==> default: ERROR: While executing gem ... (NameError)
==> default: uninitialized constant Gem::Commands::InstallCommand
==> default: /tmp/vagrant-shell: line 54: bundle: command not found

I'm not sure if it is critical, since the script happily continues after the error. Just thought you would be interested ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.