<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>IT Automation on Nicolas Massé</title><link>https://www.itix.fr/topics/it-automation/</link><description>Recent content in IT Automation on Nicolas Massé</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 28 Apr 2020 00:00:00 +0200</lastBuildDate><atom:link href="https://www.itix.fr/topics/it-automation/index.xml" rel="self" type="application/rss+xml"/><item><title>A cleanup playbook for 3scale</title><link>https://www.itix.fr/blog/cleanup-playbook-3scale/</link><pubDate>Tue, 28 Apr 2020 00:00:00 +0200</pubDate><guid>https://www.itix.fr/blog/cleanup-playbook-3scale/</guid><description>&lt;p&gt;If you are running integration tests embedding 3scale or are doing a lot of 3scale demos, you might sooner or later &lt;strong&gt;have plenty of services declared in the 3scale Admin console&lt;/strong&gt;, which could reveal difficult to work with.&#10;And with the new feature named &lt;em&gt;API-as-a-Product&lt;/em&gt;, there are now &lt;strong&gt;Backends and Products&lt;/strong&gt; to delete, making the cleanup by hand a bit tedious.&lt;/p&gt;&#10;&lt;p&gt;This article explains how to cleanup a 3scale tenant using Ansible.&lt;/p&gt;</description></item><item><title>Ansible: Add a prefix or suffix to all items of a list</title><link>https://www.itix.fr/blog/ansible-add-prefix-suffix-to-list/</link><pubDate>Mon, 18 Nov 2019 00:00:00 +0200</pubDate><guid>https://www.itix.fr/blog/ansible-add-prefix-suffix-to-list/</guid><description>&lt;p&gt;Recently, in &lt;a href="https://www.itix.fr/blog/airgap-openshift-installation-move-registry-created-using-oc-adm-release-mirror-between-environments/"&gt;one of my Ansible playbooks&lt;/a&gt; I had to prefix all items of a list with a chosen string.&lt;/p&gt;</description></item><item><title>Check the Ansible version number in a playbook</title><link>https://www.itix.fr/blog/check-ansible-version-number-playbook/</link><pubDate>Mon, 18 Nov 2019 00:00:00 +0200</pubDate><guid>https://www.itix.fr/blog/check-ansible-version-number-playbook/</guid><description>&lt;p&gt;My Ansible playbooks sometimes use features that are available only in a very recent versions of Ansible.&lt;/p&gt;&#10;&lt;p&gt;To prevent unecessary troubles to the team mates that will execute them, I like to add a task at the very beginning of my playbooks to check the Ansible version number and abort if the requirements are not met.&lt;/p&gt;</description></item><item><title>Solving the Ansible error 'This module requires the OpenShift Python client'</title><link>https://www.itix.fr/blog/solving-this-module-requires-the-openshift-python-client-error/</link><pubDate>Fri, 13 Sep 2019 00:00:00 +0200</pubDate><guid>https://www.itix.fr/blog/solving-this-module-requires-the-openshift-python-client-error/</guid><description>&lt;p&gt;If you are using MacOS to develop Operators based on Ansible or simply running Ansible playbooks straight from your Mac, you might encounter this error:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;&lt;strong&gt;This module requires the OpenShift Python client&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;When coping with this error message, two items need to be checked:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;The &lt;em&gt;openshift&lt;/em&gt; python module needs to be installed &lt;strong&gt;using the &lt;em&gt;pip&lt;/em&gt; command bundled with your Ansible&lt;/strong&gt;.&lt;/li&gt;&#10;&lt;li&gt;If you are not using the &lt;em&gt;implicit localhost&lt;/em&gt;, &lt;strong&gt;your inventory needs to be updated&lt;/strong&gt;.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="install-the-openshift-python-module"&gt;Install the openshift python module&lt;/h2&gt;&#10;&lt;p&gt;As a MacOS user, you most likely installed Ansible using &lt;em&gt;brew&lt;/em&gt;.&#10;When doing so, Ansible comes bundled with everything needed for its execution: python, all python modules, etc.&#10;There is a caveat with this approach: the bundled python interpreter does not load the python modules that are installed system-wide.&lt;/p&gt;</description></item><item><title>Use Ansible to manage the QoS of your OpenShift workload</title><link>https://www.itix.fr/blog/use-ansible-to-manage-the-qos-of-your-openshift-workload/</link><pubDate>Wed, 06 Feb 2019 00:00:00 +0200</pubDate><guid>https://www.itix.fr/blog/use-ansible-to-manage-the-qos-of-your-openshift-workload/</guid><description>&lt;p&gt;As I was administering my OpenShift cluster, I found out that I had a too&#10;much memory requests. To preserve a good quality of service on my cluster,&#10;I had to tacle this issue.&lt;/p&gt;</description></item></channel></rss>