Changeset 13823 for main/waeup-ansible


Ignore:
Timestamp:
10 Apr 2016, 12:04:54 (9 years ago)
Author:
uli
Message:

Add a Vagrantfile.

And tell something about it in README.

Location:
main/waeup-ansible
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup-ansible/README.rst

    r13821 r13823  
    1 Playbooks for administrating WAeUP servers.
    2 ===========================================
     1=============================================
     2 Playbooks for administrating WAeUP servers.
     3=============================================
    34
    45These are materials to use with our servers.
     6
     7For starters: the tutorial given on
     8
     9  https://github.com/leucos/ansible-tuto
     10
     11is a really nice hands-on intro to `ansible`. Please read it!
     12
     13Vagrant
     14=======
     15
     16In `Vagrantfile` we set up a vagrant environment which provides three
     17hosts as virtualbox:
     18
     19  ``vh5.sample.org``, ``vh6.sample.org``, ``vh7.sample.org``
     20
     21running Ubuntu 14.04. ``vh5`` represents "virtual host 5" and should
     22reflect h5.waeup.org. The same holds for ``vh6`` and ``vh7``
     23accordingly.
     24
     25The three virtual hosts are for testing any upcoming ansible
     26playbooks. They should be used before running playbooks on the real
     27hosts!
     28
     29
     30Initialize Vagrant Env
     31----------------------
     32
     33You must have `vagrant` installed, if possible in a fairly recent
     34version. I (uli) use `vagrant 1.8.1` (latest as time of writing).  As
     35Ubuntu 14.04 is pretty outdated in that respect, I had to grab a .deb
     36package from
     37
     38  https://www.vagrantup.com/downloads.html
     39
     40that could be installed with::
     41
     42 $ sudo dpkg -i vagrant_1.8.1_x86_64.deb
     43
     44
     45When everything is in place, change into this directory and run::
     46
     47  $ vagrant up
     48  Bringing machine 'vh5' up with 'virtualbox' provider...
     49  Bringing machine 'vh6' up with 'virtualbox' provider...
     50  Bringing machine 'vh7' up with 'virtualbox' provider...
     51  ==> vh5: Importing base box 'ubuntu/trusty32'...
     52  ...
     53
     54This will fetch Vagrant virtualbox images for trusty32, i.e. Ubuntu
     5514.04 images, 32bit version (plays nice also on 64bit hosts).
     56
     57All three hosts provide ssh access via::
     58
     59  $ vagrant ssh vh0
     60
     61or equivalent commands. They have a user 'vagrant' installed, which
     62can sudo without password.
     63
     64You can halt (all) the virtual hosts with::
     65
     66  $ vagrant halt
Note: See TracChangeset for help on using the changeset viewer.