<?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>Balzabu | Blog</title>
    <link>https://blog.balzabu.io/tags/cloud-init/</link>
    <description>Recent content on Balzabu | Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Fri, 29 Dec 2023 13:39:50 +0100</lastBuildDate>
    <atom:link href="https://blog.balzabu.io/tags/cloud-init/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Automating cloud-init Disabling on Ubuntu Servers</title>
      <link>https://blog.balzabu.io/posts/disable-cloud-init/</link>
      <pubDate>Fri, 29 Dec 2023 13:39:50 +0100</pubDate>
      <guid>https://blog.balzabu.io/posts/disable-cloud-init/</guid>
      <description>&lt;hr&gt;
&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Managing cloud infrastructure often involves dealing with various initialization and configuration tasks. For Ubuntu servers, the &lt;code&gt;cloud-init&lt;/code&gt; package plays a crucial role in handling these tasks during the instance boot process. However, there may be scenarios where you want to disable &lt;code&gt;cloud-init&lt;/code&gt; for specific use cases or configurations.&lt;/p&gt;
&lt;p&gt;To simplify this process, I&amp;rsquo;ve created a Bash script called &lt;code&gt;disable-cloud-init&lt;/code&gt;. This script automates the task of disabling &lt;code&gt;cloud-init&lt;/code&gt; on Ubuntu servers in a non-interactive manner, streamlining the configuration process.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<hr>
<h2 id="introduction">Introduction</h2>
<p>Managing cloud infrastructure often involves dealing with various initialization and configuration tasks. For Ubuntu servers, the <code>cloud-init</code> package plays a crucial role in handling these tasks during the instance boot process. However, there may be scenarios where you want to disable <code>cloud-init</code> for specific use cases or configurations.</p>
<p>To simplify this process, I&rsquo;ve created a Bash script called <code>disable-cloud-init</code>. This script automates the task of disabling <code>cloud-init</code> on Ubuntu servers in a non-interactive manner, streamlining the configuration process.</p>
<h2 id="features">Features</h2>
<ul>
<li><strong>Automation</strong>: The script automates the process of disabling <code>cloud-init</code>, saving time and effort.</li>
<li><strong>Non-Interactive</strong>: Designed to be run in a non-interactive environment, so you won&rsquo;t have to specify or do anything.</li>
<li><strong>Based on Gist</strong>: The script is based on <a href="https://gist.github.com/zoilomora/f862f76335f5f53644a1b8e55fe98320">this Gist</a>, providing a reliable foundation.</li>
</ul>
<h2 id="usage">Usage</h2>
<h3 id="prerequisites">Prerequisites</h3>
<p>Before using the script, ensure:</p>
<ul>
<li>You are using an Ubuntu server.</li>
<li>You have the necessary privileges (root access) to execute the script.</li>
</ul>
<h3 id="running-the-script">Running the Script</h3>
<p>Execute the following one-liner in your terminal to run the script:</p>






<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>bash -c <span style="color:#e6db74">&#34;</span><span style="color:#66d9ef">$(</span>curl -fsSL https://raw.githubusercontent.com/balzabu/disable-cloud-init/main/disable-cloud-init.sh<span style="color:#66d9ef">)</span><span style="color:#e6db74">&#34;</span></span></span></code></pre></div>
<blockquote>
<p>Note: after running the script, consider performing a manual reboot to ensure that the changes take effect.</p>
</blockquote>
<h2 id="conclusion">Conclusion</h2>
<p>Feel free to <a href="https://github.com/balzabu/disable-cloud-init">check out the project on GitHub</a> and give it a try on your Ubuntu servers. Your feedback and contributions are highly appreciated!</p>
<p>Happy scripting!</p>
<h2 id="contacts">Contacts</h2>
<p>For questions or suggestions, contact: <a href="mailto:noc@balzabu.io">noc@balzabu.io</a>.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
