Jeff Geerling — Writing Ansible for DevOps on Leanpub
Jeff Geerling is a full-stack developer and technical architect at Acquia, based in St. Louis, involved in the Drupal and Ansible open-source communities and the maintainer of the Drupal VM project. In this Leanpub Podcast interview, Len Epp talks with Jeff about his path into development, open source, the philosophy of technology and AI, and his experience writing and self-publishing the Leanpub bestseller Ansible for DevOps.
Len Epp: I usually like to start these interviews by asking people for their origin story. How did you first become interested in being a developer, and how did you end up with your particular specialties and interests?
Jeff Geerling: I like telling people about it, and I love hearing other people’s stories from other episodes of this podcast, because it’s so amazing in our field how varied people’s backgrounds are. When I was growing up, my dad worked for a set of radio stations as an engineer here in St. Louis. He would bring me to work sometimes and I got the opportunity to learn right as the internet was becoming a thing. The radio industry was picking it up, they had a lot of local networking, and they started connecting their offices together.
I went from a guy who liked playing games on an old Macintosh to a guy who had experience with Novell and Microsoft and early Linux-based networking in the course of a few years when I was just barely able to work. He let me work on different projects he had there. He helped me to build computers until the point where I could build them, and I started selling computers and helping schools and organizations with their networking and their server setup, and eventually that all led into doing some early web development back when it was using Claris Home Page to build yourself a web page and sticking a picture in there. I actually had a website with some pictures of mine on it, I think it was 1996, and an IP address somewhere. So I got into networking and computers mostly from the hardware side.
And then as time went on, I went to seminary. I was studying to become a priest, actually. When I found that that wasn’t for me, I was still doing stuff with computers and learning a little bit of programming, and after getting a degree in philosophy I started getting into Drupal, which is an open source CMS for building websites. I happened to get into it at a good time. The field was turning the web into content driven websites that all interacted with each other, and Drupal was hot at that point. I hitched my ride on that bandwagon. And then as time went on, I also was getting more interested again in infrastructure and building sites in high availability environments on the cloud.
I did shell scripting and I learned some Puppet and some other configuration management tools. Ansible came along right at the right time for me, because I needed to grow some of the sites that I helped with a lot bigger. Once you get beyond a couple servers, you need tools to interact with the services that you use and automate everything. Ansible was introduced in 2012 and I got into it early 2013. At that time, there’s no book on it or anything like that. So I decided I’ll start blogging on it. And then the rest is history. The blog turned into a few chapters of a book, and then a few chapters of the book turned into a Leanpub project, and now I’m here today with this book and a lot of involvement in both Ansible and Drupal communities.
Len: And you have a particular interest in open source projects. Could you tell me about your first experience with open source and how you became interested in it?
Jeff: I’ve been involved in a few smaller open source projects here and there, and I’ve used Linux for anything server related for years. But I never really got involved in communities that much. I read The Cathedral and the Bazaar and that got me interested in the whole idea of the movement of open source. I wouldn’t call myself a purist by any means, but I do appreciate the value of having your work be open and free and available, free as in beer. When I got into Drupal, I noticed that the community had such a strong base of smart people working together. There were no real boundaries. You didn’t have to be a certain type of person, you just had to have an interest in making Drupal better and people would accept that.
I found that to be awesome, and I can’t say that every community has that, but a lot of the open source software communities do have that atmosphere, which I love, because you get to work with such varied backgrounds, and as long as it’s something that’s helping the project you’re going to have a future, you’re going to get people to help you, and you’ll be able to help other people. That Drupal community is huge. There’s 14 or 1600 people that helped with the Drupal 8 release that’s in release candidate stage right now. And Ansible also grew. When I started, there were maybe 100 or so different people contributing, to now there’s 12 or 1300 people contributing, from big enterprises to little one man shops. It’s really cool.
Len: When I read your resume before our interview, I noticed that you have a background in philosophy and theology, which is relatively unusual, at least in my experience, for programmers. This is slightly left field, but I thought I’d take the opportunity to ask someone with a background like that, and obviously deep IT experience, what you think about recent developments in AI and the discourse around it. We hear from people like Stephen Hawking or Elon Musk, but not necessarily from people with different subject areas.
Jeff: It’s especially relevant now that we’re seeing things like Elon Musk announcing that A, we need to be cautious about AI, and B, all of his cars are now talking to each other and building up traffic networks. I think we’re at an interesting moment where AI is not just science fiction, but we’re seeing small bits of it here and there being developed. It might not be AI in the sense that something is going to take over the world and kill all the humans at this point, but it’s already to the point where we can create networks that evolve themselves and fix themselves or build something entirely new — but not to the point where you’d recognize it as human intelligence. I have a background where I believe that the ends don’t justify the means.
In my opinion, it’s always about taking it as far as you can go, but also taking the time in all your research to make sure, is this going to be supportive of the human race and the ability to be a human? And really, it all stems down to what do you believe it is to be human? I could probably get into a long debate with most of the people listening to this podcast, because technical people love getting into the detail about morality and ethics. But it really comes down to making sure that you have some sort of morality that guides your decision making.
Whenever we run into problems, it’s somebody who mutes that part of their life because they’re so interested in developing something further or going down a path. On the flip side, you need to go down those paths, but you need to use caution. It seems that every disaster in history is due to more hubris than anything else. The idea that we can take something further without worrying too much about the consequences, because it’s science.
Len: That reminds me of one of the potential consequences of AI. Most people listening are probably familiar with the Turing test: if you’re interacting with a machine and you can’t tell whether it’s a machine or a person, it’s passed the test. When I was reading your blog, I thought there’s an interesting metaphor there for a priest being on one side of the confessional and not knowing who — or potentially, in the future, what — is on the other side. If we have computers, whether they’re actually thinking or not, that are sophisticated enough to mimic people so we can’t tell the difference, what do you do, say, in a customer service situation, or on a 9-1-1 call? What kinds of decisions do we make if we’re in this very strange situation where we’re relating to something that might or might not be human?
Jeff: That’s a good question. It’s one of those things that I try to spend more time not thinking about, because almost every road that my thoughts go down ends up in some sort of disastrous, crazy end of the world scenario. But I think it’s a question that all of us in the tech industry have to ponder at least somewhat, because unless you have your head in the sand, you see there are advancements everywhere — the robotics, like the BigDog from Boston Dynamics. These robots are being built that can do things and maneuver in ways that humans even can’t. You mix that up with the networking and the brains that are being developed for other projects, and you start thinking it’s not going to be too hard to imagine, even if it’s not full AI, what happens when somebody can change the algorithm that detects human versus something else that needs to be cleaned up. So for me, I’m always just trying to think, is what I’m doing right now going to advance the human race? I don’t have that grandiose vision of this book. But in general, when I work on things, you always have to pull back and make sure, is this something that matches up with what I want the future to be for me, for my family, for everyone?
Len: One last question on this topic. I know there’s a discourse amongst religious intellectuals, especially in the United States, about how the predominance of screens and the internet is leading to a form of isolation — people not interacting with each other in meat space as much as they used to, a sense that relating to these objects, even if there are people on the other end of them, somehow distances us from other people. Do you think that’s happening, and is it something we need to be aware of?
Jeff: It definitely is a thing that is happening. And the question is, to me, is it something that’s bad or is it an opportunity? I’m a Catholic, I’ll disclose that here. But Pope John Paul II, Pope Benedict and even Pope Francis, the three most recent leaders of the Catholic Church, they’ve all seen this revolution coming. And it’s interesting because each one had a different perspective on it. But all three first identified it as being something good, and then as something that presents an opportunity for every individual. You can use it to increase your relationship with someone, or you can use it to close out your relationships with other people. It’s really up to the individual — but also as developers, we make these tools that can bring people together.
I think all three of them also emphasized that real human interaction is important, and that’s why all three of them said, when you have things like the sacraments in the church where you come together as the church community, it’s important to have a physical presence, because there’s something different between a physical presence with someone else and something through a screen or an email or a text. There’s something metaphysical there that just doesn’t happen. Everybody sees it happening today. People sitting at the same dinner table, all of them on a phone, none of them talking to each other — or even worse, everyone at the dinner table talking to each other with their phones instead of their voices. It’s a strange thing. And I think as a society we’re dealing with it and figuring out our best step forward.
Len: When you speak about opportunity and looking at it with some optimism, is there anything in particular you think of — new forms of interaction we’re being presented with now, or that we can develop in the near term?
Jeff: One thing especially that I see is people who have any kind of mental delays or physical problems that can interfere with their ability to interact. Some of these people already are seeing the benefit of tools that are so much cheaper than they used to be, or that didn’t even exist 10 or 20 years ago, to allow them to communicate and be more personable with people. And it’s the same thing with science and drugs and medicine coming up with new ways that people can combat situations and illnesses that have made them unable to be part of the human experience and have real deep human interaction. And again, there’s always two sides to it. If you take what we call an illness, that might also enable somebody to be somebody different who they really need to be — you need to make sure that you’re not just muting that part of them, but expanding their abilities to interact and be part of the human race.
Len: That reminds me of a documentary about the history of the computer, made I think in the early 90s, that included an amazing scene that almost brought me to tears. A bunch of young people are in front of computers, and they’re able to read books on their own for the first time, because they were unable to hold books and turn pages. Now they could read on the screen and turn pages with voice commands, and all of a sudden this whole world of human thought was open to them for the first time in an independent way. It struck me as a really powerful way of using technology to increase people’s ability to interact not only with other people, but with people from the past and our history.
Jeff: A lot of people have a lot of disdain for the idea of capitalism, but in a sense, some of the reasons these technologies have been opening up people’s lives, especially people who might not be as well off as the top 1%, is that these devices are now in the hands of all consumers and are becoming cheaper and cheaper — devices that would have been considered supercomputers years ago. We can now write software and put it in the hands of everybody to enable new interactions, especially for people who, like I said, 10 or 20 years ago would have had to spend $50,000 or more to have a device to let them communicate. Now that’s on the tablet in your pocket, where you can mount the tablet to a new kind of mobile platform and get in places you never could before. On one side, we see people sitting with their phones and blocking themselves out from other people. On the other side, we see people with these phones that are opening up a whole new world, able to converse online and even in person with other people.
Len: Circling back to your book, you mentioned that it started out as a blog and eventually you decided to turn it into a book. Was there a particular moment — did someone ask you to write it?
Jeff: It was for me mostly a personal goal. I’ve been blogging regularly since about 2004, and probably around 2008 or 2009 I started thinking, I really want to write a book someday. I had no idea what I wanted to write it about, but I wanted it to be something I’m passionate about, where I feel like I could contribute something to people. And for a long time, I’ve done a lot of technical documentation. Like I said, I used to work with the local radio stations, and one of the projects I’d always get tasked with is, we have this new phone system or whatever, go sit through all the tutorials and write up a guide that will help people quickly get up to speed on it, because the manuals you get from the manufacturer are pretty much junk.
When I got into Drupal, I started doing more tutorial type posts, documenting how to do things in Drupal that I didn’t find were well documented. But there’s one platform for documentation, and there’s another platform for guiding people. And I’ve seen books are usually the best way, at least for me, but also for a lot of other developers, to get into a technology. So after I wrote four or five 600 to 1000 word blog posts on Ansible, I realized I can keep doing these short posts that are disjointed and don’t really guide somebody through things — they give somebody a few nuggets to get started with. Instead, I wanted to write a comprehensive guide: you’re a developer who might know a little bit of shell scripting and how to turn on a web server in a cloud environment, and I wanted to take that person and bring them through to, hey, it’s not that hard to build an entire infrastructure with 50 servers in Amazon or DigitalOcean.
I figured the best way to do that was a book, so I took those blog posts, wrote a little introductory part, reorganized them, and that was the first published edition — which at that moment I said was 30% of the book’s completion. Little did I know that after those 30 pages were published, I’d be writing another 370.
Len: And how did you find out about Leanpub, and why did you decide to use it?
Jeff: I’ve been on Hacker News for a while, and every now and then somebody would post, “hey, I have this new book and it’s on Leanpub.” And I’m like, that’s interesting. I think it was actually right around the time Node.js was getting popular — The Node Craftsman Book, one of the Node books on there. I bought it on Leanpub and I’m like, this is amazing. I bought the book, it wasn’t finished, but it’s already really high quality, I get the free updates forever, and there’s no DRM. Where’s the catch? As a technical person, I hate the idea of DRM on a book, because when I go to a bookstore and buy a book, I don’t have a locking mechanism I have to unlock to read it. So I liked that aspect, and I liked the whole user experience of buying the book and getting updates — the author could communicate with me.
That was probably six months to a year before I decided to start writing. And when I started writing, I looked into the options and it was basically, Leanpub was awesome and everything else was like ancient history. Nowadays there’s GitBook and some other platforms you could write with, but Leanpub is still, from what I’ve seen, the most actual publishing workflow friendly tool out there. And I’m glad I’ve been sticking with it, because right now I’m working on publishing a printed copy of the book, and the whole process was basically scroll through a couple things, click a button, and you have the PDF and you’re done, instead of having to reflow things and lay it out manually.
Len: I have a question about that. Why are you making a print book?
Jeff: One thing that I’ve realized for this book in particular — it’s more of a guide for somebody who’s never seen Ansible before. They can pick it up, and by the end of it they’ll hopefully be able to make their entire infrastructure automated so they’re never logging into servers again. For that kind of a guide, I’ve had a lot of emails from people asking, so when can I get a printed copy? They want to sit there and mark it up, dog ear some pages, and have it in front of them while they’re doing their work. If it’s more of a story about the software you’re using, or if it is actually a novel, a lot of people are more prone, I think, to get the ebook version. But there are some developers who like to mark their book up and have that physical interface a book has that so far no e-reader can give.
The other reason is I got started in web development through design, so I’m a little bit more designer oriented than developer oriented, even though I don’t do as much nowadays. I really wanted a physical copy just so I could have it in my hands. I actually just got a proof — the proof had some problems, so I’m going to get another one — but it was so amazing to know the two years of time that went into this book is in my hands. It goes back a little bit to our conversation: when you have it in your hands, it’s different than having a file. You can flip through the pages that you spent so much time working on.
And the coolest thing is, with the feedback that I can get through Leanpub, it only takes a couple minutes to build a new copy. So I can keep working on that physical printed book almost at the same rate as the online editions and the ebooks. It’s a lot better than it was a couple years ago when I started the book. The workflow back then would have been a couple days worth of work for each new iteration, but now it takes less than a day to take something you wrote in a Markdown file through LaTeX and get a proof to your doorstep. It’s pretty cool.
Len: So were you interacting a lot with readers while you were writing the book?
Jeff: Yes, that was the other thing that really got me into the book and turned it from 30 pages into 400 pages. When I started the book, I put up a little page that said, “I’m starting writing on this, sign up here if you’re interested,” and I got like 40 or 50 people’s email addresses. That was already getting close to my goal. My goal was to sell 200 copies of the book — if I did that, I think I would have been pretty happy. Then when I published the first version, which only had 30 or 40 pages and a couple introductory chapters, all of a sudden there were a couple hundred sales, and I was like, I’ve already sold the quota that I set for myself and I haven’t even barely started the book.
That really motivated me to start writing more and give a little more structure to the book. Once I did that, I started getting a lot of readers who were taking my examples and putting them into situations I never would have thought of and being like, “this broke, this broke, this broke.” They were being my QA and reviewers early on. I even put a list of the people who helped make the book better in the afterword. Those people are awesome. A few of them sent me 10 or 20 emails throughout the writing. Every time I’d put out a new chapter they would sit through and find every little detail, every grammatical error, and it was awesome, because that made my editorial process a lot more of optimization rather than fixing my stupid grammar.
Len: I noticed you also include in your book a changelog, where with each new version you document the major changes and improvements. I was wondering whether you think that necessarily belongs in the book itself, or whether Leanpub could provide a feature like that.
Jeff: I can go either way. The thing I liked about having it in the book itself was that somebody didn’t have to refer somewhere else when they wanted to see what was new. It was also a good barometer for the readers to see what’s been going on, because there were a couple of points where I had some dry periods and didn’t write anything for a month. Without the changelog, readers wouldn’t know, is this just abandoned or what? I don’t know what the statistics are on your end, but I know for myself, if I start a book and there’s not a lot of interest, I might never finish it. Somebody who buys the book might not know that. So I wanted to give them that sense of, this book is still active and I’m still working on it.
If it were integrated into Leanpub itself, that might be nice. I just want to make sure there’s a way it can be updated easily, because it’s really just for the reader to see, here’s what’s changed, here’s what you might be interested in. And sometimes those dedicated readers would even go into the changelog and proofread my changes for me. I don’t know what drives them to do that, but they’re awesome people.
Len: That’s amazing. I hadn’t quite thought of that use of a changelog within a book before — that even if there’s been a dry spell, it gives you a very confident sense that this book is being worked on, and that the person’s being rigorous about it. One idea we did have for our library is a timeline for an in-progress book — little circles along a line indicating when the author made a major improvement, and you click on one and see what the changes were. But I take your point about how important it would be to have something like that in the book itself.
Jeff: And even as motivation to me as an author — one reason I thought about going with a traditional publisher was just the forced pressure of, you have this deadline, you have to get the first draft in by here. Without those forced deadlines, you aren’t really motivated sometimes to get through the hard parts. There are some chapters in the book where I’m writing it more because people need to know about it, not because I love it. Having some sort of metric to show me, here’s where I think I’m at and here’s where I’m going, that’s pretty helpful. I’ve even built my own little bash script that counts the words I’ve written in a given period and gives me a nice little graph, so I can run it every month or so and make sure I haven’t just dropped off completely.
As a writer, you have to motivate yourself to write something, even if it’s horrible and you’re going to throw it all out. If you’re writing something, your brain keeps going and you keep moving forward instead of just stopping. Even with a 500 word article, you can get stuck and then you just give it up. There was a blog post I did a couple of weeks ago where I wrote it four times in full, I think, and deleted it each time because I’m like, “this is just terrible,” and then finally it’s like, “there we go, I have it.”
Len: Well, it’s a fantastic post — obviously we noticed it right away. One of the things I really liked about it was you talked about how successful your book has been, but you also talked about how much work went into it. I think you said something like a thousand hours. Is that right?
Jeff: Yeah, it’s close to that. Early on, I was very strict about tracking the hours. Now I’ve dropped off — one evening I’ll spend four hours on it and the next night I spend zero. So there’s still five to 10 hours a week at this point, as I’m trying to get the book on Amazon and iBooks and a paperback and all that kind of stuff.
Len: Does that include time you spent marketing the book? Did you spend any time marketing it?
Jeff: Yes, and I’ve actually spent pretty minimal time so far marketing the book. That’s one thing where some developers can, I’ll call it, pimp themselves out, and I can’t do that as much. It’s hard for me, but I force myself to do it, because if you don’t do it at all, you’re not going to get any sales. I’ve probably spent maybe two to three percent of my time on the book doing marketing — talking with a couple different organizations trying to get them to promote the book internally, and working with a few groups doing related Ansible projects to cross promote a little bit. The main thing for me has just been having a Twitter feed just for the book. I created it the first week I was writing, and that’s up to at least five or 600 followers. That’s been a good platform for getting people to retweet information about the book.
But really the number one thing has been that email list. Every time I do anything through email I get an immediate small spike in sales. It might be one to two sales per day for a while, and then I’ll do an email and it goes up to five to ten for a few days. At least for things like books, reminding people, “hey, this book is out here and here’s a coupon for half off for your friends” — those are the things that get the most tangible spikes in sales. The other thing is getting closer to finished. I think a lot of people are less comfortable buying before the book was 70 or 80 percent finished, but once I reached some point, the sales became more steady over time.
Len: And I’m curious, if you were approached by a traditional publisher wanting to buy the rights to the book, is that something you would consider doing?
Jeff: It’s something I would consider depending on what they’re talking about. One of the best advantages of having the book through Leanpub — and especially Leanpub, because it’s really the only platform that’s like this — is Leanpub is really more about getting the book to the readers, and it’s not about making money for Leanpub. Every organization that sells something, you have to make some money, and I get that. But Leanpub has the least restrictive licensing terms, the least restrictive operating agreement with authors of any place that I’ve seen, short of just posting the book on GitHub. That’s really what attracted me. The fees are nominal, basically, and the capability to take your book and go to CreateSpace without having to do any extra work — that alone is worth whatever fees I’m paying.
Len: Just to be clear to anyone listening, we pay a royalty rate of 90% minus 50 cents for every sale. We don’t actually charge authors fees — we take a cut of sales if they get any. So that’s 10% minus 50 cents.
Jeff: Another cool thing about the platform is Leanpub seems to have a little more uptake with a technical audience, so a lot of books on Leanpub are good opportunities to work together with other authors. I have a few bundles that my book is in, and those bundles have also helped to produce extra sales. Sometimes somebody with another book in the bundle will promote their book and then I’ll get a spike in my sales, because people are like, “oh, that’s a cool book, but I don’t care about this one.” It’s an informal community of authors at Leanpub.
Len: Oh, that’s awesome. I guess my last question for you is, is there anything that stands out in your experience with Leanpub that we could improve? If you could have Leanpub get you this one thing, what would that be?
Jeff: I think one thing that would make things a little simpler for me is the ability to more quickly preview changes, especially to the full book. If there were some sort of local tool that could produce a PDF copy, so I could have a continuous integration process for my own book, that would be cool. I wouldn’t expect that, because that’s the bread and butter pipeline that probably takes the most work to maintain on Leanpub. But the reason I ask is, sometimes when I’m writing in Markdown, which is my preferred format, the way the syntax behaves can be a little surprising. Even when I look at the Leanpub manual, there are times where the examples don’t exactly match up to what I’m trying to do. Things like when you put code blocks in lists with a certain language, with text surrounding it, with multiple indentations in that list — those are where you find these little edge cases. And it takes my brain a little bit out of the writing when I’m trying to work on the syntax stuff. The ability to quickly preview those, and maybe even a tool that could show you here’s how it’s going to look, where you can paste a sample in — that would be cool.
The thing that I like most is, in the time that I’ve been writing this, Leanpub’s interface has improved at least three times in a major way, to the point where it looks so fresh. The author dashboard is a lot easier to navigate and has more useful information on the front of it now. When I started, a lot of times I would go in there to change something and I would sit there and click through every single menu, because there was no organization to it. Now it’s a lot easier to find — “oh, it’s under writing and then this section.” That’s been really helpful.
Len: Thanks very much — that’s really great feedback. There’s a two-part explanation for why Leanpub was that way and why it’s been improving. The first is we’re a bootstrap startup, so Leanpub is our baby and we’d love to be spending 110% of our time on it, and hopefully we will be in the future. The second is we really believe in customer development, so often adding a feature for an author who’s desperately in need of it is more important than optimizing the design or organization of things. As we’ve grown more mature, we’ve been able to focus more on organizing things properly and presenting them well. So I’m glad to hear the work we’ve been doing has actually been an improvement.
Jeff: It’s been much better.