<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JSON Archives | Cloudar</title>
	<atom:link href="https://cloudar.be/tag/json/feed/" rel="self" type="application/rss+xml" />
	<link>https://cloudar.be/tag/json/</link>
	<description>100% Focus On AWS // 100% Customer Obsession</description>
	<lastBuildDate>Fri, 03 Apr 2015 16:14:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Flexible Instance and Snapshot management with Ansible</title>
		<link>https://cloudar.be/awsblog/instance-and-snapshot-management-with-ansible/</link>
					<comments>https://cloudar.be/awsblog/instance-and-snapshot-management-with-ansible/#comments</comments>
		
		<dc:creator><![CDATA[Ben Bridts]]></dc:creator>
		<pubDate>Fri, 03 Apr 2015 16:14:45 +0000</pubDate>
				<category><![CDATA[AWS Blog]]></category>
		<category><![CDATA[Ansible]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[Continous Delivery]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[JSON]]></category>
		<guid isPermaLink="false">https://cloudar.be/?p=563</guid>

					<description><![CDATA[<p>Here at Cloudar we&#8217;re using Ansible to automate deployments. We quickly realised its potential to orchestrate custom and more complicated automation Recently we were looking for a way to automate the following actions. Creating snapshots Starting and stopping instances Removing old snapshots We already had a script and cronjob to take regular snapshots, but we [&#8230;]</p>
<p>The post <a href="https://cloudar.be/awsblog/instance-and-snapshot-management-with-ansible/">Flexible Instance and Snapshot management with Ansible</a> appeared first on <a href="https://cloudar.be">Cloudar</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></br><br />
Here at Cloudar we&#8217;re using <a title="Ansible" href="http://www.ansible.com" target="_blank" rel="noopener noreferrer">Ansible</a> to automate deployments. We quickly realised its potential to orchestrate custom and more complicated automation</p>
<p>Recently we were looking for a way to automate the following actions.</p>
<ul>
<li>Creating snapshots</li>
<li>Starting and stopping instances</li>
<li>Removing old snapshots</li>
</ul>
<p>We already had a <a title="Automating snapshots of EC2 EBS volumes" href="https://cloudar.be/awsblog/automating-snapshotsbackups-of-ec2-ebs-volumes/">script and cronjob to take regular snapshots</a>, but we wanted to centralise our automation to improve visibility and logging.</p>
<p>While this is possible using the existing Ansible modules, we needed a way to specify multiple parameters on a per instance basis. Specifically we needed it to be possible to:</p>
<ul>
<li>Change the start and stop times from within the AWS Console</li>
<li>Allow users without access to (or knowledge of) Ansible to prevent the automatic shutdown of a machine</li>
</ul>
<p>We quickly decided to use tags to specify these parameters. Because there&#8217;s a limit of ten tags per instance, and we wanted to store other information (like Environment and Project) too, it wasn&#8217;t possible to store each parameter in a separate tag.</p>
<p>We solved this by writing our own Ansible modules. Each module reads the same tag, where we store a JSON dictionary with all the needed variables. This way we keep room for other tags, while allowing everyone with the right to create tags to change things if they need to.</p>
<p>The source code is <a title="Cloudar Ansible Modules on GitHub" href="https://github.com/WeAreCloudar/ansible_modules" target="_blank" rel="noopener noreferrer">available on GitHub</a>. You can install it by <a href="http://docs.ansible.com/developing_modules.html#module-paths" target="_blank" rel="noopener noreferrer">adding the path to your Ansible Library</a>. Complete usage instructions and examples are included in <a href="http://docs.ansible.com/developing_modules.html">the repository</a>.</br></br></br></p>
<p>The post <a href="https://cloudar.be/awsblog/instance-and-snapshot-management-with-ansible/">Flexible Instance and Snapshot management with Ansible</a> appeared first on <a href="https://cloudar.be">Cloudar</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://cloudar.be/awsblog/instance-and-snapshot-management-with-ansible/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
