<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Travis Truman on Medium]]></title>
        <description><![CDATA[Stories by Travis Truman on Medium]]></description>
        <link>https://medium.com/@travistruman?source=rss-e7b5882b82d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6DV0_JuMYr1DMhIp.jpg</url>
            <title>Stories by Travis Truman on Medium</title>
            <link>https://medium.com/@travistruman?source=rss-e7b5882b82d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:02:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@travistruman/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ruby on the desktop with Traveling Ruby and Platypus]]></title>
            <link>https://medium.com/@travistruman/ruby-on-the-desktop-with-traveling-ruby-and-platypus-561f0ba5c7df?source=rss-e7b5882b82d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/561f0ba5c7df</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Travis Truman]]></dc:creator>
            <pubDate>Sun, 26 Feb 2017 22:14:57 GMT</pubDate>
            <atom:updated>2017-02-26T22:14:57.254Z</atom:updated>
            <content:encoded><![CDATA[<p>On a lark, and with a narrow problem to solve, I set about trying to get a simple Ruby script to install as a desktop app on Mac OS X.</p><h4>The Problem</h4><p>Edit the EXIF metadata of thousands of JPEGs. Development should be measured in minutes. Installation should be simple. No-nonsense user interface required.</p><h4>The Solution</h4><p>A quick search for suitable gems lead me to</p><p><a href="https://github.com/janfri/mini_exiftool">GitHub - janfri/mini_exiftool: This library is a wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool/) written by Phil Harvey. It provides the full power of Exiftool to Ruby: reading and writing of EXIF-data, IPTC-data and XMP-data. Branch master is for actual development and branch compatibility-version is for compatibility with Ruby 1.8 and exiftool versions prior 7.65.</a></p><p>and</p><p><a href="https://github.com/wilg/mini_exiftool_vendored">GitHub - wilg/mini_exiftool_vendored: A meta-gem for mini_exiftool that bundles a version of the Exiftool application.</a></p><p>I proved them out by hacking together a quick script that accepts a path and edits the metadata of each JPEG found.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/44dcbe8262323364e59c92ce629787af/href">https://medium.com/media/44dcbe8262323364e59c92ce629787af/href</a></iframe><p>Now I’ve got something I can run with:</p><pre>bundle exec exif.rb path_to_my_images</pre><p>All well and good as far as my user experience needs extend, but I need this app to be easily installable and usable by my partner on her Mac.</p><h4>Enter Traveling Ruby</h4><p>The folks at Phusion have just the answer if you want a fully contained Ruby application that ships with all dependencies to run on OS X, Linux and Windows.</p><p><a href="http://phusion.github.io/traveling-ruby/">Traveling Ruby: self-contained, portable Ruby binaries</a></p><p>I’ve got to ship a Ruby runtime, my gem dependencies and my exif.rb script and after reading <a href="https://github.com/phusion/traveling-ruby/blob/master/TUTORIAL-2.md">https://github.com/phusion/traveling-ruby/blob/master/TUTORIAL-2.md</a> and shamelessly stealing their Rakefile I’ve got all the pieces I need.</p><p>I integrate the techniques from the tutorial into my project and once done, a shippable package is easily generated with rake package</p><h4>Like a Platypus</h4><p>Now that I have something to install, I need to wrap it in the simplest, native OS X user experience I can come up with.</p><blockquote><strong>Platypus… </strong>creates native Mac OS X applications from interpreted scripts such as shell scripts or Perl, Ruby and Python programs. This is done by wrapping the script in an <a href="http://en.wikipedia.org/wiki/Application_bundle">application bundle</a> along with a native executable binary that runs the script.</blockquote><p><a href="http://sveinbjorn.org/platypus">Platypus</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*78P5_WkNafq_8B8l2z0rnQ.png" /><figcaption>Platypus rocks!</figcaption></figure><p>Its a simple UI, but comes with great docs. I configured my Script Path to theexif.rb script within the OS X packaging tree I had created earlier with Traveling Ruby and then I made sure I added all of the Traveling Ruby package contents to the list of Bundled Files.</p><p>I picked the Text Window interface so I could provide feedback on each image processed. I checked the box for “Accepts Dropped Items” so my users could simply drag a folder onto the app to process its contents. Clicked “Create App” and I’ve got an Exif.app ready for distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*akI_R90wokUxUMfaIIpbng.png" /><figcaption>Installed and running on a folder I dragged on to the app</figcaption></figure><h3>Postscript</h3><p>Further proof that its all about the Platypus:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDLyORAmNKJU%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDLyORAmNKJU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDLyORAmNKJU%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/61e1cc5313dfb3cdb8a71d3be98b9341/href">https://medium.com/media/61e1cc5313dfb3cdb8a71d3be98b9341/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=561f0ba5c7df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring OpenStack-Ansible for Distributed Virtual Routing with Open vSwitch]]></title>
            <link>https://medium.com/@travistruman/configuring-openstack-ansible-for-distributed-virtual-routing-with-open-vswitch-5032b3c6046e?source=rss-e7b5882b82d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5032b3c6046e</guid>
            <category><![CDATA[neutron]]></category>
            <category><![CDATA[openstack]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Travis Truman]]></dc:creator>
            <pubDate>Wed, 27 Jul 2016 16:04:22 GMT</pubDate>
            <atom:updated>2016-07-27T16:04:22.003Z</atom:updated>
            <content:encoded><![CDATA[<p>Following up from a prior post:</p><p><a href="https://medium.com/@travistruman/configuring-openstack-ansible-for-open-vswitch-b7e70e26009d">Configuring OpenStack-Ansible for Open vSwitch</a></p><p>the <a href="http://governance.openstack.org/reference/projects/openstackansible.html">OpenStack-Ansible project</a> has recently added support for enabling Distributed Virtual Routing when using the Open vSwitch ML2 Neutron agent. Support landed in the master branch with <a href="https://review.openstack.org/#/q/status:merged+topic:bp/neutron-dvr">these patches</a> and will be released in the Newton cycle.</p><p>Now, deployers who wish to use Open vSwitch can also take advantage of the high availability benefits of DVR. With this change, the OpenStack-Ansible project now supports the <a href="http://docs.openstack.org/mitaka/networking-guide/scenario-dvr-ovs.html">Scenario: High Availability using Distributed Virtual Routing</a> described in the <a href="http://docs.openstack.org/mitaka/networking-guide/">OpenStack Networking guide</a>.</p><h3>Sample Configuration</h3><p>Using the same lab hardware and network architecture I described in my previous post and running the master version of OpenStack-Ansible, my configuration for enabling DVR looks like:</p><h4>/etc/openstack_deploy/user_variables.yml</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e55eea9fad04e02fda67d3cc23bf64c3/href">https://medium.com/media/e55eea9fad04e02fda67d3cc23bf64c3/href</a></iframe><p>You may notice that only a single line has changed in this configuration. Where previously, I had <strong><em>neutron_plugin_type: ml2.ovs</em></strong>, I now have <strong><em>neutron_plugin_type: ml2.ovs.dvr</em></strong></p><p>With that simple change, OpenStack-Ansible now knows to install the Neutron L3 and metadata agents on the compute hosts and is able to configure the L3 agent’s <strong><em>agent_mode</em></strong> appropriately depending on whether or not the agent is running on a network or compute host.</p><h3>Conclusion</h3><p>If you’ve been waiting for DVR support in OpenStack-Ansible, please give it a try and be sure to provide any feedback to the community. Bug reports in <a href="https://launchpad.net/openstack-ansible">LaunchPad</a>, questions in IRC at <a href="http://webchat.freenode.net/?channels=openstack-ansible">#openstack-ansible on FreeNode</a> and emails to the <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">OpenStack-Dev list</a> are all great ways to reach out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5032b3c6046e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring OpenStack-Ansible for Open vSwitch]]></title>
            <link>https://medium.com/@travistruman/configuring-openstack-ansible-for-open-vswitch-b7e70e26009d?source=rss-e7b5882b82d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7e70e26009d</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[openstack]]></category>
            <category><![CDATA[ansible]]></category>
            <dc:creator><![CDATA[Travis Truman]]></dc:creator>
            <pubDate>Tue, 26 Jul 2016 20:16:07 GMT</pubDate>
            <atom:updated>2016-07-26T20:16:07.615Z</atom:updated>
            <content:encoded><![CDATA[<p>The <a href="http://governance.openstack.org/reference/projects/openstackansible.html">OpenStack-Ansible project</a> has recently added support for the Open vSwitch ML2 neutron agent in the Newton release cycle.</p><p>I was very excited to see this feature get merged and wanted to test it out in a home lab environment. My goal was to use OpenStack-Ansible to mimic the <a href="http://docs.openstack.org/mitaka/networking-guide/scenario-classic-ovs.html">Scenario: Classic with Open vSwitch neutron configuration</a> described in the <a href="http://docs.openstack.org/mitaka/networking-guide/">OpenStack Networking guide</a>. The resulting OpenStack environment will have a single provider VLAN network and up to 98 VLAN tenant networks.</p><h3>Lab Hosts</h3><p>To keep things super simple, I used a two host environment made up of a controller and infrastructure host: <em>man1.oslab</em> and compute host: <em>comp1.oslab</em>. Both hosts have two network interfaces: <em>eth0</em> and eth1.</p><h3>Lab Network</h3><p>The lab network architecture provides the following networks:</p><ul><li>Management network — <em>192.168.1.0/24</em></li><li>Provider network — <em>192.168.2.0/24</em> using VLAN tag 101</li><li>Project/Tenant networks — VLAN tags 102–199</li></ul><p>In order to speed up the installation process somewhat, I’ve chosen to deploy only the following OpenStack services: keystone, glance, nova and neutron.</p><h3>Host Network Configuration</h3><p>OpenStack-Ansible is going to expect 2 Linux bridges: br-mgmt and br-vlan on each host based on our configuration above. I’ve configured the hosts as follows:</p><h4>/etc/network/interfaces</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4095ae401d3ee5280159f56db003bd5d/href">https://medium.com/media/4095ae401d3ee5280159f56db003bd5d/href</a></iframe><h4>/etc/network/interfaces.d/br-mgmt.cfg</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7cf591b5d759424a1c01a72abdd9af78/href">https://medium.com/media/7cf591b5d759424a1c01a72abdd9af78/href</a></iframe><h4>/etc/network/interfaces.d/br-vlan.cfg</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eefe6ce7dd25635dffaf1e7d9ba751da/href">https://medium.com/media/eefe6ce7dd25635dffaf1e7d9ba751da/href</a></iframe><h3>Configuration</h3><p>I define the network configuration and host groupings in</p><h4>/etc/openstack_deploy/openstack_user_config.yml</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/59c5cff15311e5519f8afe3a920c9bec/href">https://medium.com/media/59c5cff15311e5519f8afe3a920c9bec/href</a></iframe><p>And I define my user-specific overrides in</p><h4>/etc/openstack_deploy/user_variables.yml</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6290f40a40423f785886ff4ceabd0fc9/href">https://medium.com/media/6290f40a40423f785886ff4ceabd0fc9/href</a></iframe><h3>Installation</h3><p>Run the OpenStack-Ansible playbooks to install and configure the two lab hosts</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a793a33949e0ee6fc2e888166617aac6/href">https://medium.com/media/a793a33949e0ee6fc2e888166617aac6/href</a></iframe><h3>Open vSwitch Configuration</h3><p>I created a custom playbook for setting up the Open vSwitch bridges and ports that uses the OpenStack-Ansible inventory.</p><h4>/opt/openstack-ansible/playbooks/ovs-setup.yml</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1fb8e5f0e26337668dc88f26941cf98/href">https://medium.com/media/f1fb8e5f0e26337668dc88f26941cf98/href</a></iframe><p>I run that with:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/74ae9b4d81b64440181a47e16660cce4/href">https://medium.com/media/74ae9b4d81b64440181a47e16660cce4/href</a></iframe><h3>Deployment View</h3><p>After installing OpenStack with OpenStack-Ansible plays and setting up Open vSwitch with the custom play, our deployment environment looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-97oPiRHDG-N0KFSxH4JAg.jpeg" /></figure><h3>Create the networks</h3><h4>Provider network</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/62a8b375a94e95e05974734fc9026be7/href">https://medium.com/media/62a8b375a94e95e05974734fc9026be7/href</a></iframe><h4>Project/Tenant network</h4><p>Requires a demo project to have been setup and a <em>demo-openrc</em> with the project credentials.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/23d5b8decba849ff55486e8cfe3cf3e8/href">https://medium.com/media/23d5b8decba849ff55486e8cfe3cf3e8/href</a></iframe><h4>Launch Instances</h4><p>Requires flavor, image and key setup:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a8ce2b5626c542f363f21f53a2333296/href">https://medium.com/media/a8ce2b5626c542f363f21f53a2333296/href</a></iframe><h4>Validate Instance Connectivity</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/535006d38cdb1d0e59747662cf548f11/href">https://medium.com/media/535006d38cdb1d0e59747662cf548f11/href</a></iframe><h3>Conclusion</h3><p>With some basic configuration, I was able to get OpenStack-Ansible to install and configure a typical OpenStack neutron Open vSwitch scenario. While I have not yet played around with vxlan or gre tunneling, I suspect that it is as simple as making a few configuration tweaks.</p><p>To learn more about OpenStack-Ansible or to contribute to the community project, visit the project on <a href="https://launchpad.net/openstack-ansible">LaunchPad</a> or join us on IRC in <a href="http://webchat.freenode.net/?channels=openstack-ansible">#openstack-ansible on FreeNode</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7e70e26009d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>