Saturday, April 19, 2014

Ansible Manage the Same Users Across Servers with Different Passwords

Recently, I was setting up a handful of servers that all needed the same user created but with a different password for that user on each server. Searching around the internet, I did not find a definitive way to manage users and most of what I found consisted of bits and pieces of what I was looking for. I ultimately settled on the following solution.

This solution can definitely be improved upon by using group_vars and variable overrides to remove redundant attributes.

Continue reading...

Wednesday, April 16, 2014

Dell iDRAC racadm Commands and Scripts

The Dell iDRAC web interface has always been cumbersome to deal with. Luckily, you can login to a Dell iDRAC via SSH and use the racadm command to configure it and perform actions against the physical server. With this functionality, it is possible to automate actions that would otherwise take too long to do via the web interface.

This will be an ever growing list of Dell iDRAC racadm commands and ways to automate repetitive tasks.

Continue reading...

Monday, April 7, 2014

Create a KVM Based Debian 7 OpenStack Cloud Image

Unlike Red Hat, Fedora, CentOS, and Canonical, Debian does not create and distribute OpenStack cloud images. It is up to you to create your own.

I have seen steps using packer templates or virt-builder to create Debian 7 OpenStack cloud images, but I have not seen a step-by-step manual process to understand how it all works.

Continue reading...

Tuesday, April 1, 2014

Cobbler Not Parsing Kickstart Profile

After installing Cobbler and importing the Ubuntu Server 12.04.4 LTS ISO, I copied the Cobbler Profile created on import into a new one named ubuntu-12.04.4-server-x86_64-ks with the intention of pointing it to the following kickstart profile (yes, Ubuntu supports kickstart profiles but only so much):

Continue reading...

Tuesday, April 1, 2014

Ansible Fix Colon Syntax Error for sudoers File

I encountered the following error when writing an Ansible Task to add a user to the sudoers file:

ERROR: Syntax Error while loading YAML script, playbooks/bootstrap.yml
Note: The error may actually appear before this position: line 29, column 44

      regexp="^james ALL"
      line='james ALL=(ALL) NOPASSWD: ALL'

Continue reading...

Sunday, March 23, 2014

The Best and Only iPhone Case I Have Ever Bought

I have used an iPhone ever since they were revealed to the world in 2007 and ever since then I have never used a case (or as I like to call it “rolling naked”).

Whether you agree or not, the iPhone (especially the 4 and 5) are fantastically designed devices and I never wanted a case to cover that up. In addition, I think most of the cases on the market are down right ugly or simply too big.

Continue reading...

Thursday, March 13, 2014

OpenStack Commands Cheat Sheet

I have found most of the OpenStack commands to be fairly intuitive. However, there are some commands that do not follow a standard syntax and there are far too many commands and command line switches to remember everything. In addition, Googling around for specific commands can be time consuming.

This will be an ever growing list of OpenStack commands for the various OpenStack Projects.

Continue reading...

Saturday, March 8, 2014

Install Ansible, Create Your Inventory File, and Run an Ansible Playbook and Some Ansible Commands

Ansible is part of the configuration management family that includes Puppet, Chef, and SaltStack.

Having only ever used Chef, I found Ansible to have a much, much lower learning curve and I spent more time using it rather than learning it.

Despite its easy of use, there is always a bit of prep work needed to get started.

I will be running everything from OS X Mavericks. With the possible exception of the installation, all the other steps should work on most Linux distributions.

Continue reading...

Monday, February 17, 2014

Understanding the Chef Environment File in Rackspace Private Cloud v4.2.x powered by OpenStack Havana

In a previous post I went through two typical Chef Environment files specific to Rackspace Private Cloud v4.1.x powered by OpenStack Grizzly with nova-network and Quantum Networking. However, with Rackspace Private Cloud v4.2.x powered by OpenStack Havana some things have changed, in particular Quantum has been renamed to Neutron.

In my newest post, I break down each part of the Chef Environment file, including the Highly Available pieces, specific to Rackspace Private Cloud 4.2.x powered by OpenStack Havana at the Rackspace Developer Blog.

Continue reading...

Sunday, February 9, 2014

Ansible OS X Mavericks You Must Install the sshpass Program

I was bootstraping a new cloud server with Ansible version 1.4.4 on OS X Mavericks by running ansible-playbook bootstrap.yml --user root --ask-pass and I received the following error:

Continue reading...

Other Posts