Giter Site home page Giter Site logo

jamesloyd / vagrant-openafs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edgester/vagrant-openafs

0.0 2.0 0.0 65 KB

A Vagrant demo for OpenAFS

License: BSD 2-Clause "Simplified" License

Ruby 36.27% Puppet 24.90% Perl 1.75% Shell 34.21% Erlang 2.87%

vagrant-openafs's Introduction

OpenAFS demo using Vagrant

This is a vagrant config for trying out OpenAFS. This was used in a presentation at SouthEast Linux Fest 2013.

Boxen

Both boxes have three virtual hard drives. The 2nd and third drives are formatted at creation time and mounted as /vicepa and /vicepb

  • dbserver - First box. A self-contained box running OpenAFS DB server and file server.

  • file server - an additional file server to see how how to move volumes around.

How to use

Using rvm is recommended.

Install the librarian-puppet module

git clone git://github.com/edgester/vagrant-openafs.git
cd vagrant-openafs/puppet
librarian-puppet install
cd ..
vagrant up dbserver
vagrant ssh dbserver

Once in the VM, setup kerberos and set the stash password and "admin" password:

sudo -i
/vagrant/scripts/setup-kerberos

Set up OpenAFS the cell, type in the admin password from the previous step when prompted

/vagrant/scripts/setup-openafs-dbserver
service openafs-client restart

You now have a working OpenAFS cell in a single VM.

To add a second file server, run the following:

# while in the dbserver VM as root
cp  /etc/openafs/server/* /vagrant/tmp
exit # sudo
exit # the VM
vagrant up fileserver
vagrant ssh fileserver
sudo -i
cp /vagrant/tmp/* /etc/openafs/server/
/vagrant/scripts/setup-openafs-fileserver
service openafs-fileserver restart

Enjoy using your new OpenAFS VM!

Gotchas

  • The puppet modules take the realmname, cellname and DB servers as parameters. The IP's and hostnames for DB servers should be in the same positino in the array.

  • The files in /vagrant/scripts have hard-coded cell and realm names. Edit the files if you want to use a name other than example.org

  • The setup uses a pre-compile DKMS kernel module. To upgrade the kernel, install the kernel headers and build-essential packages.

More info

vagrant-openafs's People

Contributors

edgester avatar

Watchers

James Cloos avatar James Loyd avatar

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.