Skip to content

Commit

Permalink
Merge pull request #3 from dmlond/master
Browse files Browse the repository at this point in the history
update
  • Loading branch information
el-mat committed May 12, 2015
2 parents 1927a64 + b8a39d3 commit a8b5229
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/2015-05-12/Worksheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,35 @@ Launching a tiny Linux with Vagrant
- This box does not use `bash`, it uses `sh`. Specify this in the Vagrantfile using `config.ssh.shell="sh"`
- When you're done configuring the Vagrantfile, save it, then launch the VM with `vagrant up`
- 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.

Launching and provisioning a usable Linux with Vagrant and Puppet
=================================================================

![tahr](http://www.exclusiveadventuresnz.com/images/hunting/big-game/bull-tahr/bull-tahr-banner1.jpg)

- Have a look at this edited [Vagrantfile](https://github.com/dmlond/arangs2015/blob/master/conf/vagrant/Vagrantfile)
- Which Linux distribution is specified in this file? Can you find it in the vagrant cloud? Is this a common distribution?
How does it compare to the operating system of your host desktop? Are there likely to be guest additions for this
distribution?
- Provisioning is the process of installing and configuring additional tools on a base OS. Before lunch we saw an
example of provisioning using shell commands in the Vagrantfile. Which provisioner is used in this edited Vagrantfile?
- Install `puppet` using the following commands:

```
sudo dpkg -i puppetlabs-release-trusty.deb
sudo apt-get update
sudo apt-get -y install puppet
```

- Now have a look at [this provisioning script](https://github.com/dmlond/arangs2015/blob/master/conf/vagrant/manifests/default.pp).
- What would the instructions after `dl_bwa` (line 35) do?
- What immediately preceding steps does `untar_bwa` require?
- What is the Current Working Directory (`cwd`) where BWA is unzipped?
- What is the function of `symlink_bwa`? What other methods could be used to achieve the same effect (think of `$PATH`)
- Do a test run of the provisioning script. If you do it as follows, nothing will be installed yet:

`puppet apply --noop default.pp`

- Now try to add another install command to the provisioning script. Make the command clone the course github repo
(`git clone`). Make this happen in the home directory of the vagrant user (`cwd` should specify this). Make sure that
the for this step required package `git` is already installed. Specify the name of the folder that will be created.

0 comments on commit a8b5229

Please sign in to comment.