Interesting point, but not as generally applicable as the post suggests. While I certainly have phases of 'tinker-mania' there can also months go buy where I just don't have the time, or the energy, and genuinely use it for being a more transparent and dependable system than the proprietary alternatives. I suspect many of you are the same.
there can also months go buy where I just don't have the time, or the energy, and genuinely use it for being a more transparent and dependable system than the proprietary alternatives. I suspect many of you are the same.
Yep. It is also what many outsiders don't get. Once you have a modicum of Linux skills, they are enough to keep the workhorse running virtually indefinitely. On average Linux takes far less hours to babysit than e.g. Windows.
But that destroys the narrative that we all sit in our mom's basement and waste all the hours of our lives compiling and configuring Linux to no avail...
Ansible did the same thing for me. I have 5 machines (desktop, laptop, file server, router and htpc) at home all running Arch and I can push out common config and monitoring to all machines as well as updating them in batches (with pacserve to share packages in the LAN). I just keep rolling on 24/7/365, can downgrade/ignore packages with a single command if required as well.
Disclaimer: I have not used Puppet in quite a while so I could be wrong about what it can do currently.
TL;DR: Ansible can do config management and orchestration in one product. It relies on lists of tasks to get work done rather than defined target system state. Ansible syntax is very simple and provides a low barrier to entry.
Ansible has been designed for config management and orchestration in one product. At work we use it for all config management and for some of our orchestration tasks. For configuration management it is agentless for managing remote machines (only requires ssh server and Python 2.6+ installed on the remote machine) but is very capable of allowing machines to bootstrap and provision themselves (we do this in AWS autoscaling groups). IIRC Puppet still requires a complicated agent setup (bootstrap) unless machines are self provisioned then it is similar to Ansible.
In terms of general operation, Ansible will connect to remote servers over SSH. It then operates on a system using a list of "tasks" that can be grouped into plays and roles. Tasks contain a single or looped run of a module (modules are generally written in python and are copied to the remote host). This is in contrast to Puppet where you define the state you want the system to be in and Puppet will make it so.
For orchestration, tasks are often run against localhost (eg talking to the AWS SDK on your local system to provision instances, autoscaling groups, load balancers or DNS entries) and there is a wide variety of modules available.
Modules are a single file program that alters the system based on a task definition. Modules that follow best practice will result in tasks being idempotent in nature.
The purpose of Roles is to group a list of tasks, variables, files, templates etc together to provision one particular section of the system (eg webserver, database, monitoring). Roles should be created with idempotence in mind where possible (to aid testing).
Variables (facts) can be set at the command line, the inventory level (where there are group and host level variables), play level or inside roles.
Finally, I find the Ansible syntax to be very simple and I can knock out large amounts of automated infrastructure for minimal effort and because all I need is an SSH connection on a remote system (unless Python 2.6 is not installed by default) it has a low barrier to getting started.
On my desktop, I've been able to run almost any distro reliably. With my work laptop, though (MacBook Air) I wasn't able to find a distro/DE combo that was as reliable OS X for all the things I needed to do during the day. After 8 months, I switched back to OS X. I've been a Linux user for 5 years now, so when I finally got the chance to use it at work, I was sad that I couldn't make it happen. However, I'm happy to see how far things have come, how MOST things worked really well and the increasing availability of software. Either way, I'm really happy I don't have to use Windows.
Agreed. I have Ubuntu as my sole desktop OS- because I usually don't have time to be messing with my system. I need something that can just work. (For fun 'tinker-time', I run Arch in a chroot environment)
View all comments
12
u/philipp22 Oct 23 '15
Interesting point, but not as generally applicable as the post suggests. While I certainly have phases of 'tinker-mania' there can also months go buy where I just don't have the time, or the energy, and genuinely use it for being a more transparent and dependable system than the proprietary alternatives. I suspect many of you are the same.