<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>hi, it&#39;s mike</title>
    <link>https://mike.puddingtime.org/tags/vagrant/</link>
    <description>Recent content on hi, it&#39;s mike</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>mike@puddingtime.org (mike)</managingEditor>
    <webMaster>mike@puddingtime.org (mike)</webMaster>
    <copyright>© 2026, mike</copyright>
    <lastBuildDate>Tue, 29 Jan 2013 12:34:34 +0000</lastBuildDate>
    <atom:link href="https://mike.puddingtime.org/tags/vagrant/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>puppetverse, vagrant, jekyllfication</title>
      <link>https://mike.puddingtime.org/posts/2013-01-29-puppetverse-vagrant-jekyllfication/</link>
      <pubDate>Tue, 29 Jan 2013 12:34:34 +0000</pubDate><author>mike@puddingtime.org (mike)</author>
      <guid>https://mike.puddingtime.org/posts/2013-01-29-puppetverse-vagrant-jekyllfication/</guid>
      
      <description>Hey, my colleague Max Martin at Puppet Labs had a piece about standing up a Linux dev environment in Puppet and Vagrant published at Linux.com today. It’s the first of a two-parter that provides a nice, practical Vagrant/Puppet walkthrough. I believe the plan for the next part is to include a github …</description>
      <content:encoded><![CDATA[<p>Hey, my colleague Max Martin at Puppet Labs had a piece about <a href="http://bit.ly/WtW9dj">standing up a Linux dev environment in Puppet and Vagrant</a> published at Linux.com today. It&rsquo;s the first of a two-parter that provides a nice, practical Vagrant/Puppet walkthrough. I believe the plan for the next part is to include a github repo you can clone to get all the bits he covers in the tutorial. Once both parts are published, you won&rsquo;t have any excuse not to give Vagrant a try. That&rsquo;s another way in which 2013 is totally kicking 1985&rsquo;s ass: No typing in those <cite>Compute! Gazette</cite> hex listings with the checksums at the end of each line.</p>
<p>Speaking of Vagrant, I cleaned up <a href="http://github.com/pdxmph/puppetverse">puppetverse</a> a little today. There&rsquo;s still some room for improvement, but my main goal was to get rid of the parts that were particular to my immediate needs (documenting <a href="http://docs.puppetlabs.com/hiera/1/index.html">hiera</a>) and organize things a little better so that it&rsquo;s clear which modules, manifests, and files are part of the Vagrant boot process, and which will be included by the puppet master once it&rsquo;s up and running independent of Vagrant&rsquo;s provisioning phase.</p>
<p>jekyllifying</p>
<p>I&rsquo;ve taken a stab at getting this blog moved over to <a href="http://github.com/mojombo/jekyll">Jekyll</a> from WordPress three or four times in the past couple of years. Each time, something&rsquo;s been not quite right.</p>
<p>Verdict: We live in a world of tradeoffs. I&rsquo;ve tried three basic &ldquo;export to Jekyll&rdquo; approaches, and they&rsquo;ve all had issues:</p>
<ol>
<li>
<p><a href="https://github.com/mojombo/jekyll/wiki/blog-migrations">The Jekyll + MySQL method</a> pulls in the content pretty well, and posts keep their category. They lose their tags, though. I don&rsquo;t think that&rsquo;s necessarily a problem: My current template doesn&rsquo;t even expose tags, and I can&rsquo;t see much evidence Google has ever found many of the tag pages.</p>
</li>
<li>
<p><a href="https://github.com/thomasf/exitwp">The exitwp method</a> ate some of my markup alive. Whole tables and spans vanished in just the first six or seven posts I reviewed after a migration. It&rsquo;s a Python-based migration method, and I am not looking for a &ldquo;get to know Python&rdquo; project.</p>
</li>
<li>
<p><a href="https://github.com/benbalter/wordpress-to-jekyll-exporter">The WordPress export to Jekyll plugin method</a> never got past parse errors.</p>
</li>
</ol>
<p>Do I blame myself for the problems I had with approaches 2 and 3? I might as well. I settled on Markdown some time after I started dot unplanned, and I didn&rsquo;t always deal with Markdown&rsquo;s limitations in a constructive fashion. Any parser written by a conscientious person unwilling to take responsibility for the universe of awful HTML people can come up with is in its rights to give up and sit down.</p>
<p>That said, all my recent posts look pretty close to correct when I use the Jekyll + MySQL migration method, so if I can bring myself to shed the tag metadata I wasn&rsquo;t using anyhow &hellip;</p>
<p>&hellip; I&rsquo;ll just need to decide if I really <em>need</em> to do this, or if it&rsquo;s something I talked myself into <em>wanting</em> to do because it didn&rsquo;t work very well the first time I tried it, triggering some weird nerd combat reflex that wouldn&rsquo;t allow me to put the idea behind me until I knew I could make it work.</p>
<p>I mean &hellip; If you have a WordPress blog you know two things:</p>
<ol>
<li>
<p>It&rsquo;s very popular, and so it is well supported for standard blogging purposes.</p>
</li>
<li>
<p>It&rsquo;s so popular that no matter what comes along to replace it in the next several years, should something that great come along, that thing will have to have very good WordPress migration support.</p>
</li>
</ol>
<p>Jekyll, though? It&rsquo;s critical to the <a href="https://github.com/puppetlabs/puppet-docs">docs toolchain</a> I work with daily, but a lot of the <em>personal</em> use cases I&rsquo;ve read seem to come down to git maximalism, WordPress performance concerns that are completely addressable by well established caching plugins, and security.</p>
<p>I totally hear the security concerns. I also hear an undercurrent of fascination with the deathless novelty of static site generators, and that&rsquo;s fine, too. The question I&rsquo;ve got to ask myself is what happens after I move to Jekyll. At that point, my content will live in a bunch of Markdown files. If I decide I&rsquo;m tired of a git-based publishing workflow or whatever, it&rsquo;ll probably be on me to write the scripts needed to get my stuff out. That doesn&rsquo;t sound like a <em>ton</em> of fun now, and I wouldn&rsquo;t trust the Me of Now to decide what&rsquo;s going to be fun for the Me of Later Down the Road. After all, the Me of the Past played a shit-ton of World of Warcraft, and the Me of Now does not think that sounds interesting or fun at all.</p>
<p>#puppetize #puppetverse #vagrant</p>
<p><em><a href="mailto:mike@puddingtime.org?subject=Re%3A%20puppetverse%2C%20vagrant%2C%20jekyllfication">Drop a line about this</a>.</em></p>]]></content:encoded>
    </item>
    <item>
      <title>puppetverse</title>
      <link>https://mike.puddingtime.org/posts/2013-01-13-puppetverse/</link>
      <pubDate>Sun, 13 Jan 2013 11:02:33 +0000</pubDate><author>mike@puddingtime.org (mike)</author>
      <guid>https://mike.puddingtime.org/posts/2013-01-13-puppetverse/</guid>
      
      <description>In the spirit of getting things out in front of people and maybe attracting useful feedback, it would please me very much to offer to you a little Puppet ecosystem I call puppetverse.
I’m putting it out there less to encourage you to use it, specifically, but to note the existence of this thing …</description>
      <content:encoded><![CDATA[<p>In the spirit of getting things out in front of people and maybe <a href="http://mph.puddingbowl.org/2013/01/risking-wrong/">attracting useful feedback</a>, it would please me very much to offer to you a little Puppet ecosystem I call <a href="https://github.com/pdxmph/puppetverse">puppetverse</a>.</p>
<p>I&rsquo;m putting it out there less to encourage you to use it, specifically, but to note the existence of this thing called Vagrant that I find very promising and am now fiddling with quite a bit. Before leaving the matter of puppetverse, I&rsquo;ll just offer that if you choose to visit that link and follow the README, you&rsquo;ll end up with a small virtual laboratory that will allow you to explore the open source release of Puppet with relative ease.</p>
<p>Some background:</p>
<p>Have you ever managed a website with a few outside web developers, a testing server, a staging server and a production server? How did you do it?</p>
<p>I had to for a while. Part of that time was spent dealing with a staging server and production server using different Linux distributions, different versions of PHP, and different versions of MySQL. Worse, I was locked out of the staging server (it belonged to and was managed by a small support shop) so there was no way to harmonize it with production: You just did an svn commit, waited 10 minutes for the staging server to run a cron job to <code>svn up</code> the codebase, and checked your work.</p>
<p>At the development work level, it was even worse. When I arrived, the official development setup involved a malconfigured plug-n-play desktop LAMP bundle that wasn&rsquo;t even up to importing our application&rsquo;s database reliably.  Outside developers were invited to use that method or cobble together whatever they could on their own. Sometimes, things just didn&rsquo;t work on delivery and introduction to our environment. Other times they worked in the staging environment but failed in production.</p>
<p>Eventually I set up a virtual environment for myself that I could keep in tight harmony with production systems. We moved from our little third-party support contractor to hosting with <a href="http://acquia.com">Acquia</a>, which I would recommend to just about anybody running Drupal who&rsquo;s feeling maybe in a little over her head. Acquia&rsquo;s cloud hosting stuff is very slick. That handled our testing, staging, and production discontinuities overnight.</p>
<p>It still left us with how to help outside developers, and I never had a satisfactory answer beyond &ldquo;here&rsquo;s a cloud server we keep spun up that you can bang on, we&rsquo;ll periodically update the codebase there so you can tell if your code will blow up on production, probably.&rdquo;</p>
<p>So, Vagrant</p>
<p><a href="http://vagrantup.com">Vagrant</a> would have solved a lot of problems for me.</p>
<p>Vagrant provides a way to create a minimal virtual machine that makes just enough assumptions about its own configuration to be useful in a variety of contexts that involve many divergent assumptions.</p>
<p>Prior to learning about Vagrant, I dealt with VMs this way:</p>
<p>I&rsquo;d set up a minimal virtual machine and configure it to a certain point, then I&rsquo;d save it somewhere. Each time I needed the base configuration, I&rsquo;d copy the VM to a new file and start using it. So far, so good.</p>
<p>Then I&rsquo;d screw something up. Maybe I&rsquo;d mistakenly use my clean base VM, or I&rsquo;d explore in a certain direction and discover it wasn&rsquo;t a good direction, and I&rsquo;d be caught with a VM that was pretty messed up and probably not worth the time to get it back to baseline.</p>
<p>Vagrant offers a way to create a base VM just once, then freeze it in that state, then reuse it over and over with custom configurations each time. If you take a VM based on one of those custom configurations in a direction you don&rsquo;t like, that&rsquo;s o.k.: You just tear it down and it goes back to baseline.</p>
<p>For a Puppet or Chef user, Vagrant is pretty nice because it uses either of those tools to provision freshly powered up VMs.</p>
<p>While we were preparing for the <a href="https://groups.google.com/forum/!topic/puppet-users/58qO5CrZrPY">Puppet 3.1.0-rc1</a> release, I used puppetverse to help test the Ubuntu packages:</p>
<p>I edited the base <a href="https://github.com/pdxmph/puppetverse/blob/master/Vagrantfile">Vagrantfile</a> and pointed it to a different Ubuntu version. Then I&rsquo;d have Vagrant power up the two VMs I&rsquo;d configured (one puppet master, one puppet agent), watch them provision themselves with a simple Puppet manifest, then confirm that Puppet was working properly.</p>
<p>All I had to change for each Ubuntu release was the name of the base virtual machine Vagrant was to load. Once I&rsquo;d done my testing, I powered down the virtual machine with Vagrant&rsquo;s <code>destroy</code> command, which also deleted the VM&rsquo;s files.</p>
<p>Meanwhile, the base VM images were in use on a few other projects: One for my documentation work on Hiera and one for a side project to help stand up a quick development environment. Each had its own configuration saved in a few text files, and as I stopped needing to work on each, I could discard them without worrying about saving my work.</p>
<p>Vagrant offers a few other nice features:</p>
<p>ssh into the VM &ldquo;just works,&rdquo; meaning there&rsquo;s no cumbersome ssh key setup or remembering passwords. Just issue the command <code>vagrant ssh</code> and you&rsquo;re logged into the VM.</p>
<p>Creating mount points in the guest operating system from the host operating system is pretty simple, and part of Vagrant&rsquo;s big appeal to Web developers: You check out your website&rsquo;s codebase into a directory on the host machine and mount it in the guest machine, so a web developer doesn&rsquo;t need a Linux toolchain to work on code running on a Linux VM.</p>
<p>Port forwarding from guest to host is also simple to set up, so the web server running inside the guest VM is readily available to a browser running out in the host system.</p>
<p>All of that combines to make it incredibly simple to set up a non-admin developer with a virtual environment that closely maps to production conditions, and to allow admins to keep that environment up-to-date as conditions in production change. If the web developer can type <code>git pull</code> and <code>vagrant provision</code> on the command line, she can keep her testing environment up to date.</p>
<p>So, puppetverse</p>
<p>Which brings me back around to puppetverse, which leverages Vagrant to help me with my technical writing at Puppet Labs.</p>
<p>I have to be able to do a few things as I work on Puppet documentation:</p>
<ol>
<li>
<p>Test and verify any assertions I make about how Puppet works.</p>
</li>
<li>
<p>Provide working example code that I&rsquo;ve tested and verified in a current Puppet environment.</p>
</li>
</ol>
<p>Puppetverse allows me to bring up a puppet master and a pair of agents in a virtual environment so I can test what I&rsquo;m saying in my documentation or write example configuration code in virtual machines running Ubuntu (or Debian).  By configuring the basics for such an ecosystem in my Vagrantfile and Puppet manifests, I don&rsquo;t have to step through the tedious part of getting Puppet up and running on three machines: I did it once and I can reuse it as many times as I need.  If I mess up something inside one of my virtual machines, or need to know that all the systems are back to baseline, I can use the <code>vagrant destroy</code> command to wipe them all out and bring them back up to baseline: No need to manually uninstall packages, edit files or reconfigure the agents.</p>
<p>Thanks to the ability to easily mount directories in the host filesystem inside the Vagrant virtual machines, I can store my example Puppet configuration in my puppetverse repository. That allows me to test the same configuration across multiple versions of Puppet or different operating systems, depending on the combination of base provisioning and virtual machine puppetverse happens to be running. I&rsquo;ve started storing different tasks in different branches to make Puppetverse more reusable: Each branch is checked out into its own Vagrant directory with a different set of VMs running in it. Switching from work on Hiera to testing release packages is as simple as changing directories in the shell or opening a different directory as a BBEdit project.</p>
<p>#puppet #vagrant</p>
<p><em><a href="mailto:mike@puddingtime.org?subject=Re%3A%20puppetverse">Drop a line about this</a>.</em></p>]]></content:encoded>
    </item>
  </channel>
</rss>
