├── .gitignore
├── README.md
├── links.md
├── puppetmaster
├── README.md
└── Vagrantfile
├── wiki
└── Vagrantfile
└── wikitest
└── Vagrantfile
/.gitignore:
--------------------------------------------------------------------------------
1 | *.vagrant
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
Vagrantfiles for the Puppet Fundamentals for System Administrators course
2 |
3 | Vagrant Box Downloads for VirtualBox
4 | CentOS 6.5:
5 |
6 | Dropbox: https://www.dropbox.com/s/206lcenz3o45c79/centos65.box?dl=1
7 |
8 | Torrent: http://benpiper.github.io/course-files/puppet-system-administrators-fundamentals/centos65.box.torrent
9 |
10 | NB: If you download the torrent, please seed it for at least a couple of days so others can download the image faster.
11 |
12 | S3: https://s3.us-east-2.amazonaws.com/puppet-fundamentals-lab/centos65.box
13 |
14 | Ubuntu 14.04 LTS: http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
15 |
16 | Requirements
17 | VirtualBox and Vagrant
18 |
19 | Note for RHEL/CentOS Linux users: You may need to run the following commands after installing VirtualBox:
20 |
21 | `sudo yum -y install kernel-devel`
22 | `sudo /etc/init.d/vboxdrv setup`
23 |
24 | Lab Setup Instructions
25 |
26 | 1. `git clone` this repository or download `master.zip` and unzip to the `puppet-fundamentals-lab` directory and `cd` to it.
27 |
28 | 2. Download the CentOS 6.5 Vagrant box to the `puppet-fundamentals-lab` directory:
29 | https://s3.us-east-2.amazonaws.com/puppet-fundamentals-lab/centos65.box or
30 | https://www.dropbox.com/s/206lcenz3o45c79/centos65.box?dl=1 or
31 | http://benpiper.github.io/course-files/puppet-system-administrators-fundamentals/centos65.box.torrent
32 | Ensure the file is saved as `centos65.box`.
33 |
34 | 3. Add the CentOS 6.5 box you just downloaded:
35 | `vagrant box add centos65-base centos65.box`
36 |
37 | 4. Download the Ubuntu 14.04 Vagrant box to the same directory:
38 | http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
39 |
40 | 5. Add the Ubuntu box:
41 | `vagrant box add trusty64 trusty-server-cloudimg-amd64-vagrant-disk1.box`
42 |
43 | Booting the Puppet Master Server
44 |
45 | 1. `cd` into the `puppetmaster` subdirectory and launch the VM:
46 | `vagrant up`
47 |
48 | 2. Once the machine is booted, SSH into it:
49 | `vagrant ssh`
50 |
51 | Windows 2008 R2 ISO
52 | http://www.microsoft.com/en-us/download/details.aspx?id=11093
53 |
54 | Community Support
55 |
56 | Visit https://benpiper.com/community/puppet-system-administrators-fundamentals/ for support resources.
57 |
--------------------------------------------------------------------------------
/links.md:
--------------------------------------------------------------------------------
1 | Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.30501
2 |
3 | http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe
4 |
5 | Microsoft .NET Framework 4 Client Profile
6 |
7 | http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe
8 |
9 | MySQL Workbench 6.2 CE
10 |
11 | http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-6.2.4-winx64.msi
12 |
13 | http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
14 |
15 | http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe
16 |
--------------------------------------------------------------------------------
/puppetmaster/README.md:
--------------------------------------------------------------------------------
1 | If you receive an error when installing Passenger, follow the instructions below immediately AFTER 3:33 into the "Installing Apache and Passenger" clip of the "Installing and Configuring the Puppet Master" module:
2 |
3 | 0. (Optional) From your host machine, take a snapshot: `vagrant snapshot save puppetmaster`
4 | 1. Install the following: `sudo gem install rake --version 10.4.2`
5 | `sudo gem install rack --version 1.6.0`
6 | `sudo gem install passenger --version 4.0.56`
7 | `sudo gem install daemon_controller --version 1.2.0`
8 | 2. Install the Passenger Apache module: `sudo passenger-install-apache2-module`
9 |
10 | Continue the course at 4:25 into the "Installing Apache and Passenger" clip (https://app.pluralsight.com/player?course=puppet-system-administrators-fundamentals&author=ben-piper&name=puppet-system-administrators-fundamentals-m2&clip=10)
11 |
12 | If you receive an error when running the puppet agent on the wiki server after installing puppetlabs-apache during the Module "Creating and Using Modules", section "The Apache Module", follow the instructions below
13 |
14 | 1. Uninstall the version of puppetlabs-apache that was installed:
15 | `sudo puppet module uninstall puppetlabs-apache --modulepath /etc/puppet/environments/production/modules/`
16 | 2. Install puppetlabs-apache version 1.2:
17 | `sudo puppet module uninstall puppetlabs-apache --modulepath /etc/puppet/environments/production/modules/ --version 1.2.0`
18 | 3. Uninstall puppetlabs-concat and install puppetlabs-concat 1.1.2:
19 | `sudo puppet module uninstall puppetlabs-concat --modulepath /etc/puppet/environments/production/modules/ --force`
20 | `sudo puppet module install puppetlabs-concat --modulepath /etc/puppet/environments/production/modules/ --version 1.1.2`
21 | 4. Uninstall puppetlabs-stdlib and install puppetlabs-stdlib 4.5.0
22 | `sudo puppet module uninstall puppetlabs-stdlib --modulepath /etc/puppet/environments/production/modules/ --force`
23 | `sudo puppet module install puppetlabs-stdlib --modulepath /etc/puppet/environments/production/modules/ --version 4.5.0`
24 |
25 | Continue the course at 10:41 into the "The Apache Module" clip.
26 |
--------------------------------------------------------------------------------
/puppetmaster/Vagrantfile:
--------------------------------------------------------------------------------
1 | # -*- mode: ruby -*-
2 | # vi: set ft=ruby :
3 |
4 | # See README.md for details
5 |
6 | VAGRANTFILE_API_VERSION = "2"
7 |
8 | Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
9 |
10 | config.vm.box = "centos65-base"
11 |
12 | config.vm.define "puppetmaster" do |puppetmaster|
13 |
14 | puppetmaster.vm.hostname = "puppetmaster"
15 |
16 | puppetmaster.vm.network "private_network", ip: "172.31.0.201"
17 |
18 | end
19 |
20 | end
21 |
--------------------------------------------------------------------------------
/wiki/Vagrantfile:
--------------------------------------------------------------------------------
1 | # -*- mode: ruby -*-
2 | # vi: set ft=ruby :
3 |
4 | # See README.md for details
5 |
6 | VAGRANTFILE_API_VERSION = "2"
7 |
8 | Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
9 |
10 | config.vm.box = "centos65-base"
11 |
12 | config.vm.define "wiki" do |wiki|
13 |
14 | wiki.vm.hostname = "wiki"
15 |
16 | wiki.vm.network "private_network", ip: "172.31.0.202"
17 |
18 | end
19 |
20 | end
21 |
--------------------------------------------------------------------------------
/wikitest/Vagrantfile:
--------------------------------------------------------------------------------
1 | # -*- mode: ruby -*-
2 | # vi: set ft=ruby :
3 |
4 | # See README.md for details
5 |
6 | VAGRANTFILE_API_VERSION = "2"
7 |
8 | Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
9 |
10 | config.vm.box = "trusty64"
11 |
12 | config.vm.define "wikitest" do |wikitest|
13 |
14 | wikitest.vm.hostname = "wikitest"
15 |
16 | wikitest.vm.network "private_network", ip: "172.31.0.203"
17 |
18 | end
19 |
20 | config.vm.provider :virtualbox do |p|
21 |
22 | p.customize ["modifyvm", :id, "--memory", 2048]
23 | end
24 |
25 | end
26 |
--------------------------------------------------------------------------------