@@ -24,3 +24,35 @@ Launching a tiny Linux with Vagrant
24
24
- This box does not use ` bash ` , it uses ` sh ` . Specify this in the Vagrantfile using ` config.ssh.shell="sh" `
25
25
- When you're done configuring the Vagrantfile, save it, then launch the VM with ` vagrant up `
26
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
+ sudo dpkg -i puppetlabs-release-trusty.deb
43
+ sudo apt-get update
44
+ sudo apt-get -y install puppet
45
+ ```
46
+
47
+ - Now have a look at [ this provisioning script] ( https://github.com/dmlond/arangs2015/blob/master/conf/vagrant/manifests/default.pp ) .
48
+ - What would the instructions after ` dl_bwa ` (line 35) do?
49
+ - What immediately preceding steps does ` untar_bwa ` require?
50
+ - What is the Current Working Directory (` cwd ` ) where BWA is unzipped?
51
+ - What is the function of ` symlink_bwa ` ? What other methods could be used to achieve the same effect (think of ` $PATH ` )
52
+ - Do a test run of the provisioning script. If you do it as follows, nothing will be installed yet:
53
+
54
+ ` puppet apply --noop default.pp `
55
+
56
+ - Now try to add another install command to the provisioning script. Make the command clone the course github repo
57
+ (` git clone ` ). Make this happen in the home directory of the vagrant user (` cwd ` should specify this). Make sure that
58
+ the for this step required package ` git ` is already installed. Specify the name of the folder that will be created.
0 commit comments