This post is all about running and refining the puppet manifest defined in part 1. That manifest defined a blog similar to this one.
You will need a VM before you start, here are a few options to pick from:
AWS LightSail VM (you can use any VM with a public IP available)
I'm using a 512 MB RAM, 2 vCPUs, 20 GB SSD, cheapest available.
Update: This is not enough ram to run bundler, which is what ruby uses to install all the dependencies that rails needs. Instead I am using a 2 GB RAM, 2 vCPUs, 60 GB SSD (free for first 3 months)
Recall the puppet manifest from part 1, I made a gist here for convenience.
While running the puppet apply, I found an error in the manifest:
Error: Evaluation Error: Error while evaluating a Function Call, Could not find template 'modulename/nginx.conf.erb' (file: /home/ubuntu/blog_setup.pp, line: 12, column: 16) on node ip-172-26-10-216.us-west-2.compute.internal
This is because there is no Puppet Module named 'modulename'. We will fix this in Part 3. For now this will just cover the mechanics of running puppet apply, and getting an actionable error we can fix and then get closer to the finish line.