The Curious Dev

Various programming sidetracks, devops detours and other shiny objects

Sep 22, 2016 - 2 minute read -

Updating DNS automatically

This post is the next in the series on Cloudifying MoinMoin and Scheduling an ASG, here we Update the DNS record automatically upon the provisioning of an instance. Now that we’ve got everything up and running on the schedule that we want, and being automatically replaced upon failure, we need to ensure our domain alias A record i.e. gets updated with the IP of each new instance as they’re provisioned.

Sep 13, 2016 - 2 minute read -

Scheduling actions on an ASG

This post builds on Cloudified MoinMoin further where we’re going to schedule the application to be down at certain times of the day/week. A relatively new feature of CloudFormation templates is the AWS::AutoScaling::ScheduledAction block, which allows us to alter the MinSize and MaxSize properties of the AutoScalingGroup. This can be useful in a number of settings, but perhaps a good example is an internal webapp for a business where there are quite clear “business hours” where it’s critical to have the application up and responsive all day long.

Sep 3, 2016 - 4 minute read -

Cloudifying MoinMoin

This post takes the Installing MoinMoin on Nginx and uWSGI post further by deploying the built instance of MoinMoin within an AutoScalingGroup (ASG). Creating the AMI From my previous post of we have come out with a running instance configured as desired. The only trouble with this situation is that it’s a snowflake. First step to producing a server that can be repeatedly recreated is to take a snapshot of the instance, this is as simple as choosing so in the AWS console and giving it a name.

Jul 30, 2016 - 3 minute read -

Installing MoinMoin on Nginx and uWSGI

MoinMoin is a great wiki having used it on and off over the years. This post demonstrates how to get MoinMoin up and running with Nginx and uWSGI. Install nginx Simply install via package: yum install nginx -y Then configure /etc/nginx/nginx.conf with a section similar to this before the existing default section: server { server_name; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; location / { include uwsgi_params; uwsgi_pass unix:///usr/local/local/share/moin/moin.sock; uwsgi_modifier1 30; } } I’m using wiki.