Skip to content

Commit 7a9c965

Browse files
committed
Merge pull request #3 from dmlond/master
update 12th
2 parents 6303fa1 + 514a780 commit 7a9c965

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
*bwa*
2+
.Rhistory
13
.vagrant
24
packer_cache/
35
*sai*

docs/2015-05-11/mindmap_day1.xmind

72.2 KB
Binary file not shown.

docs/2015-05-12/Worksheet.md

+44
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Launching a tiny Linux by hand on Virtualbox
2+
============================================
23

34
- Download the [SliTaz](http://www.slitaz.org/en/get/) ISO and launch it as a LiveCD in VirtualBox (no virtual drive needed)
45
- In Virtualbox, look at the different ways to end the SliTaz process. What are the differences between "pause", "save state" and "power off"? In what state are you able to change the system settings of the VM?
@@ -10,6 +11,49 @@ Launching a tiny Linux by hand on Virtualbox
1011
- Is git installed?
1112

1213
Launching a tiny Linux with Vagrant
14+
===================================
1315

1416
- Install [vagrant](http://vagrantup.com).
1517
- Have a look at the available [vagrant boxes](https://atlas.hashicorp.com/boxes/search)
18+
- Search for a `tiny` box for the provider `virtualbox`
19+
- Click on the search result. There should be an instruction for how to initialize the box in a `fixed width font`
20+
- Create a new folder in the terminal and navigate into it. Then run the initialization command.
21+
- There should now be a file called `Vagrantfile`. Open it in a text editor.
22+
- Assign more RAM (2048) to the VM by editing the Vagrantfile.
23+
- Turn on the GUI
24+
- This box does not use `bash`, it uses `sh`. Specify this in the Vagrantfile using `config.ssh.shell="sh"`
25+
- When you're done configuring the Vagrantfile, save it, then launch the VM with `vagrant up`
26+
- There might be some error messages where it tries to "mount" folders. If you wait long enough it'll give up - it's not a problem.
27+
28+
Launching and provisioning a usable Linux with Vagrant and Puppet
29+
=================================================================
30+
31+
![tahr](http://www.exclusiveadventuresnz.com/images/hunting/big-game/bull-tahr/bull-tahr-banner1.jpg)
32+
33+
- Have a look at this edited [Vagrantfile](https://github.com/dmlond/arangs2015/blob/master/conf/vagrant/Vagrantfile)
34+
- Which Linux distribution is specified in this file? Can you find it in the vagrant cloud? Is this a common distribution?
35+
How does it compare to the operating system of your host desktop? Are there likely to be guest additions for this
36+
distribution?
37+
- Provisioning is the process of installing and configuring additional tools on a base OS. Before lunch we saw an
38+
example of provisioning using shell commands in the Vagrantfile. Which provisioner is used in this edited Vagrantfile?
39+
- Install `puppet` using the following commands:
40+
41+
```
42+
wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
43+
sudo dpkg -i puppetlabs-release-trusty.deb
44+
sudo apt-get update
45+
sudo apt-get -y install puppet
46+
```
47+
48+
- Now have a look at [this provisioning script](https://github.com/dmlond/arangs2015/blob/master/conf/vagrant/manifests/default.pp).
49+
- What would the instructions after `dl_bwa` (line 35) do?
50+
- What immediately preceding steps does `untar_bwa` require?
51+
- What is the Current Working Directory (`cwd`) where BWA is unzipped?
52+
- What is the function of `symlink_bwa`? What other methods could be used to achieve the same effect (think of `$PATH`)
53+
- Do a test run of the provisioning script. If you do it as follows, nothing will be installed yet:
54+
55+
`puppet apply --noop default.pp`
56+
57+
- Now try to add another install command to the provisioning script. Make the command clone the course github repo
58+
(`git clone`). Make this happen in the home directory of the vagrant user (`cwd` should specify this). Make sure that
59+
the for this step required package `git` is already installed. Specify the name of the folder that will be created.

0 commit comments

Comments
 (0)