<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ines ATTIA</title>
    <description>The latest articles on DEV Community by Ines ATTIA (@inesattia).</description>
    <link>https://dev.to/inesattia</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F332241%2F38a802fc-30a6-44af-9e2f-295a4d4ea53b.jpeg</url>
      <title>DEV Community: Ines ATTIA</title>
      <link>https://dev.to/inesattia</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/inesattia"/>
    <language>en</language>
    <item>
      <title>Openstack</title>
      <dc:creator>Ines ATTIA</dc:creator>
      <pubDate>Wed, 04 Nov 2020 09:00:06 +0000</pubDate>
      <link>https://dev.to/inesattia/openstack-11pd</link>
      <guid>https://dev.to/inesattia/openstack-11pd</guid>
      <description>&lt;h1&gt;
  
  
  What is Cloud computing?
&lt;/h1&gt;

&lt;p&gt;Cloud these days is spreading out everywhere, is a hot topic , is the trend, is the future, is the continuity of IT ,is the automation , is the magic .&lt;/p&gt;

&lt;p&gt;there is different defintion of Cloud computing but I prefer the definition of NIST "Cloud computing is a model for enabling ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction. This cloud model is composed of five essential characteristics, three service models, and four deployment models."&lt;/p&gt;

&lt;h3&gt;
  
  
  Cloud services
&lt;/h3&gt;

&lt;p&gt;There is three basics models of cloud service, explained in this schema The Pizza-as-a-Service metaphor was firstly introduced by Albert Barron in 2014 as a visualization of the differences between Infrastructure-as-a-service (IaaS), Platform-as-a-service (PaaS) and Software-as-a-service (SaaS).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmuathw52esuyo7gsvqcd.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmuathw52esuyo7gsvqcd.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Why the need to the cloud and turning IT infrastructure over to expert providers?
&lt;/h1&gt;

&lt;h3&gt;
  
  
  there is a lot of reasons :
&lt;/h3&gt;

&lt;p&gt;1-Security&lt;br&gt;
2-On-demand Access&lt;br&gt;
3-Quick Implementation&lt;br&gt;
4-Advanced Technology&lt;br&gt;
5-Strategic Focus&lt;br&gt;
6- Flexibility&lt;br&gt;
7- Scalability&lt;br&gt;
8-Pay-as-you-go&lt;/p&gt;
&lt;h4&gt;
  
  
  "With IaaS, you can buy what you need, as you need it, and purchase more as your business grows."
&lt;/h4&gt;
&lt;h1&gt;
  
  
  What is the best solution for building an IaaS?
&lt;/h1&gt;

&lt;p&gt;Openstack is the best solution to build your own IaaS !&lt;br&gt;
It is a collection of open source software modules that provides a framework to create and manage public and private cloud .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fl4g7ogai96cx7kw3weu8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fl4g7ogai96cx7kw3weu8.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  Let me introduce you our team of openstack  who will afford you an IaaS with minimal deployment :
&lt;/h1&gt;

&lt;p&gt;Restaurant as a Service is our Infrastructure as a service , &lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; * the receptionist: keystone
 * the menu : horizon
 * the waiter : neutron
 * the dish : glance
 * nova : the chef
 * cinder&amp;amp;swift : the shop
 * heat : the manager
 * ansible : the supervisor 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;we'll choose from the menu Instance openstack centos automated contains web service ,video conference service ,dns ,monitoring service ,Firewalls , security rules ,security services &lt;br&gt;
With one or more compute node (nova + neutron components), controller node (keystone , horizon , neutron , glance and heat) and storage node (cinder + swift) &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2d0xyjkk19o40wzquo5u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2d0xyjkk19o40wzquo5u.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
In the end  of this post you 'll have an infrastructure composed by this team , working in harmony together , automated and orchestrated !&lt;br&gt;
&lt;a href="https://docs.openstack.org/victoria/install/" rel="noopener noreferrer"&gt;you have to follow only this link to build your IaaS&lt;/a&gt;&lt;br&gt;
with openstack documentation you can do it without the need for any other source &lt;/p&gt;
&lt;h1&gt;
  
  
  Who is the right-hand of the chef in our Restaurant as a Service?
&lt;/h1&gt;

&lt;p&gt;When it comes to glance you can follow me as the right-hand of the chef, to build an instance with centos or any other &lt;a href="https://docs.openstack.org/image-guide/obtain-images.html" rel="noopener noreferrer"&gt;image you wish from this link&lt;/a&gt;&lt;br&gt;
you'll need #guestfish#. It is a shell and command-line tool for examining and editing virtual machine filesystems. It uses libguestfs and exposes all of the functionality of the guestfs API, You have just to install it&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt install  libguestfs-tools&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;then we'll have to use the command virt-customize to customize a virtual machine&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo virt-customize -a CentOS-7-x86_64-GenericCloud.qcow2 --root-password password:centos&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Now you have instances of VMs running on your IaaS .&lt;br&gt;
We can constomize them more by automating the creation of this instances and services with Ansible. &lt;br&gt;
&lt;a href="https://dev.to/inesattia/ansible-4jlg"&gt;check my Ansible's post to get your dish&lt;/a&gt; &lt;/p&gt;

</description>
      <category>iaas</category>
      <category>womenintech</category>
      <category>openstack</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Ansible</title>
      <dc:creator>Ines ATTIA</dc:creator>
      <pubDate>Fri, 10 Apr 2020 23:20:06 +0000</pubDate>
      <link>https://dev.to/inesattia/ansible-4jlg</link>
      <guid>https://dev.to/inesattia/ansible-4jlg</guid>
      <description>&lt;h1&gt;
  
  
  &lt;strong&gt;Let ’s begin with automation’s meaning&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;In general automation means completing a single task or function without human intervention. Executed wisely, automation makes traditionally time-intensive, manual processes more efficient.In IT, it’s possible to automate a wide range of processes and tasks, from app deployment and integration, to securing endpoints .&lt;br&gt;
In cloud automation, for instance, you might use automation tools and machine learning to dynamically deploy assets to the cloud, manage cloud computing workloads. &lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;What is ansible?&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;Ansible is a simple &lt;em&gt;IT automation platform&lt;/em&gt; that makes your applications and systems easier to deploy.Let's avoid writing scripts or custom code to deploy and update your applications we can automate in a human-readable data-serialization language 'YAML’, using SSH, with no agents to install on remote systems.&lt;/p&gt;

&lt;h4&gt;
  
  
  &lt;strong&gt;Developers describe Ansible as "Radically simple configuration-management, application deployment, task-execution, and multi-node orchestration engine”&lt;/strong&gt;
&lt;/h4&gt;

&lt;h3&gt;
  
  
  &lt;em&gt;ABRA Ansible DABRA&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;em&gt;IT WORKS LIKE MAGIC!!&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F175V17oJjV84iTnykI_kT5JZKPdee3Cc2%2Fview%3Fusp%3Dsharing" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F175V17oJjV84iTnykI_kT5JZKPdee3Cc2%2Fview%3Fusp%3Dsharing" alt="Alt text of image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;What we can automate with Ansible ?&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt; Ansible automates cloud provisioning, configuration management, application deployment, infrastructure , applications, networks, security and even cloud , orchestrate more advanced IT tasks such as continuous deployments.&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Ansible's mechanism&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;One Ansible Control Node( configured to automate,First it connects to your nodes,second it pushes out small program finally it executes program over ssh by default) connected to  one or more Ansible Hosts&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Why Ansible is “mon coup de coeur” my favorite automation’s tool?&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;What if I told you that there is a tool :  open-source,with simple command you install it and with yaml language you write your playbooks .&lt;/p&gt;

&lt;h5&gt;
  
  
  Ansible is:
&lt;/h5&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    * Free&lt;br&gt;
    * Simple to setup and use &lt;br&gt;
    * Powerful&lt;br&gt;
    * Flexible&lt;br&gt;
    * Agentless&lt;br&gt;
    * Efficient&lt;br&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Not only for me Ansible is the favorite automation's tool !!!&lt;br&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Every single week, both the full and mobile versions of &lt;a href="http://www.nasa.gov" rel="noopener noreferrer"&gt;www.nasa.gov&lt;/a&gt; are updated via Ansible, generally only taking about 5 minutes to do. &lt;/li&gt;
&lt;li&gt;It is also being used to re-mediate security issues and was leveraged to re-mediate OpenSSL issues.&lt;/li&gt;
&lt;li&gt;NASA web app servers are being patched routinely and automatically through Ansible Tower with a very simple 10-line Ansible playbook.&lt;/li&gt;
&lt;/ul&gt;

&lt;h6&gt;
  
  
  &lt;em&gt;“Let’s let the computers do the tasks that are mundane and that we shouldn’t be spending time on … so that way we can focus on the things that are important to us,” Barr says.&lt;/em&gt;
&lt;/h6&gt;

&lt;h6&gt;
  
  
  &lt;em&gt;“One of the reasons Ansible is winning the day against other automation mechanisms is that it is significantly easier for an untrained operations-type person that is not a coder to be able to automate using Ansible,” explains Steven Carter, chief cloud architect for Red Hat’s public sector.&lt;/em&gt;
&lt;/h6&gt;

&lt;h4&gt;
  
  
  Let’s save time and make our life easier , let’s write our own playbooks and automate with Ansible .
&lt;/h4&gt;

&lt;p&gt;Beginning with installing and configuring Ansible&lt;br&gt;
&lt;a href="https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html" rel="noopener noreferrer"&gt;For all major platforms you can follow this link&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;Terms to know before writing your playbooks&lt;/strong&gt;
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Playbook&lt;/strong&gt;&lt;/em&gt; :  The yml file where ansible commands are written .&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Tasks:&lt;/strong&gt;&lt;/em&gt;  An action managed by ansible .&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Inventory:&lt;/strong&gt;&lt;/em&gt;  It is a configuration file where you define the host information.&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Plays:&lt;/strong&gt;&lt;/em&gt;  Essentially groups of tasks that are performed on defined hosts to enforce your defined functions ; example: – hosts: all&lt;br&gt;
&lt;strong&gt;&lt;em&gt;Roles:&lt;/em&gt;&lt;/strong&gt;  It is the Ansible way of bundling automation content and making it reusable.&lt;br&gt;
&lt;strong&gt;&lt;em&gt;Handlers:&lt;/em&gt;&lt;/strong&gt;  It is similar to tasks except that a handler will be executed only when it is called by an event, like restarting or stopping a service.&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Package management:&lt;/strong&gt;&lt;/em&gt; There is a module for most popular package managers, like YUM and APT …, to enable you to install any package on a system. Functionality depends entirely on the package manager, but usually these modules can install, upgrade, downgrade, remove, and list packages.&lt;/p&gt;

&lt;p&gt;In conclusion here is my example ;&lt;br&gt;
The controller machine (ubuntu 18.04) and the target hosts are Centos VMs, many instances running on private cloud infrastructure made with openstack. &lt;br&gt;
Every centos VM contains : &lt;br&gt;
*webserver "Apache".&lt;br&gt;
*Management logs service "ELK" (used to manage logs of apache).&lt;br&gt;
*Video conference Service "Openmeetings"&lt;br&gt;
With raspberry working as "Pihole" like traffic light managed from dashboard.All these services are automated via playbooks and even the creationg of the Centos instance is automated .&lt;br&gt;
&lt;a href="https://github.com/ines10/ansible" rel="noopener noreferrer"&gt;Follow this link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>automationansible</category>
    </item>
  </channel>
</rss>
