1. Нам важно Ваше мнение!
    и обсуждайте вместе! Нажимайте "мне нравится" и рекомендуйте друзьям ;)
    Понравилось тема? Напишите в ней свой отзыв.
    Считаете что тема не достаточно полно раскрыта? Расскажите свою точку зрения!
    С Вашей помощью сделаем форум еще лучше!

Cape Coral : jira to azure devops migration - Kabrinskiy Eduard

Тема в разделе 'Горячие новости для тех кто следит за собой', создана пользователем IZRAELEn, 13 май 2021.

  1. IZRAELEn

    IZRAELEn Member

    Kabrinskiy Eduard - Ansible continuous deployment - Рдуард Кабринский


    <h1>Ansible continuous deployment</h1>
    <p>[youtube]</p>
    Ansible continuous deployment <a href="http://remmont.com">Headlines</a> Ansible continuous deployment
    <h1>Setting up CI & Deployment Automation – Ansible | Blog</h1>
    <h5>Feb 25, 2016 Sushanth Shetty </h5>
    <p>Recently, we did some great work on Continuous Delivery and thought we should share our learnings. We implemented the solution of Continuous Integration & Auto Deployment (Continuous Delivery) for a major Australian customer in retail & ecommerce space. The challenges we faced were to maintain several instances of the site for the retail application which has approximately 25 different frontend applications for each brand or a group, and over 30 ecommerce applications built using Magento for each brand. To overcome this across the product line we used Ansible, which is a continuous integration and auto deployment tool.</p>
    <p>Configuring Ansible with custom scripts is also easy, once a developer creates an Ansible script in .YML to configure server and auto deploy builds, then this can be added in a scheduler or used by any teams to setup system or deploy new build on fly. It helps saving not only up-front costs, but making it easier to react to change over time which can be done easily.</p>
    <p>Ansible is a simple, powerful & agent less open source tool to write custom scripts for configuring the server and deploying application code to testing, staging, release & production. It gives you the power to deploy multi-tier applications reliably and consistently, all from one common framework. You can configure needed services as well as push application artifacts from one common system.</p>
    <p><strong>The typical process we had can be depicted as below</strong></p>
    <p style="clear: both"> <strong> <img src="https://www.nalashaa.com/setting-ci-deployment-automation-ansible/Images/blog-meta-images/ci-1.jpg" /></strong></p>
    <p>So now let’s get into each section mentioned in above depiction individually.</p>
    <p>The above process can be divided into 2 steps basically:</p>
    <p>– <strong>Continuous Integration</strong></p>
    <p>– <strong>Auto Deployment (Continuous Delivery)</strong></p>
    <h3><strong>CONTINOUS INTEGRATION</strong></h3>
    <h4><strong>CHALLENGES WE FACED</strong></h4>
    <p>– <strong>NEED TO SAVE CONFIGURATION TIME</strong> – If you are working on a project which has / requires multiple instances of the application to be created when ever required</p>
    <p>– <strong>REQUIRED MULTIPLE INSTANCES WITH CONSISTENCY</strong> – Our development / QA teams needed to test on different instances on different servers or multiple instances on single server with consistency.</p>
    <p>– <strong>REDUCE DEBUGGING TIME</strong> <strong>–</strong> The development team needed to spend time debugging on getting configuration right to start dev-ops which was taking out much time in starting development in an agile environment</p>
    <p>– <strong>ROLLBACK / REBUILD</strong> – In case of unfortunate crash of any environment which hosts the application, setting up new ones would consume lot of time & immense patience</p>
    <p>– <strong>REDUCE INTEGRATION FAILURE</strong> – Due to various servers on different setup of Linux or any other operating systems the general process of integration was failing and lot of time was required to getting this right</p>
    <p>– <strong>CONSISTENT WORKFLOW WITH HISTORY MAINTAINCE</strong> – We needed all the systems to be consistent and at same time need the history of different integrations done on each instance on same server or different servers then source will help you go it</p>
    <p><strong>HOW WE ACHIEVED CONTINOUS INTEGRATION?</strong></p>
    <p>Please refer to the below representation to understand the flow of process.</p>
    <p>– In brief, the <strong>B2B & B2C</strong> application we were working on was developed and tested by various developers / testers working on Multiple servers (which includes 3 development server with multiple instances, 5 QA servers, 3 release servers & 1*(3) production environment on each load balancers), All these servers are with multiple instances for each ecommerce web application. Basic example of servers and list of task needed to perform is represented by the below image.</p>
    <p style="clear: both"> <img src="https://www.nalashaa.com/setting-ci-deployment-automation-ansible/Images/blog-meta-images/ci-2.jpg" /></p>
    <p>– <strong>Custom GUI</strong> to run specific tasks or execute a particular playbook was setup, the playbooks also was run using scheduler wherever required</p>
    <p>– <strong>The history of integration logs</strong> is maintained such that at any point we could refer to the previous build and manually get back the previous build through the GUI playbook execution</p>
    <p>– We had created multiple <strong>Playbook</strong> tasks to do the following (Monitor Servers, Load Balance, Stop/Start service, Deploy Application)</p>
    <p><ul>
    <li><strong>The Playbook can have below tasks for example,</strong></li>
    </ul>
    </p>
    <p>– Install Server Dependencies (Common Libraries)</p>
    <p>– Install Database (MySQL, PostgreSQL etc.)</p>
    <p>– Install Git or other version controls</p>
    <p>– Install Drush/Other required build libraries.</p>
    <p>– Install Memcache / Redis, etc.</p>
    <p>– Check Load Balance Servers.</p>
    <p>– Maintain Scheduler Jobs.</p>
    <p>– Maintain Configuration Logs.</p>
    <p><ul>
    <li>Configuration of the above tasks on each app servers play important role in <strong>reducing the integration and debug time</strong> on multiple development / test / release server instances for different purpose specific to business.</li>
    <li>We had written scripts using YML language and were executed using Ansible tool to deploy the code across these all server. So there is always a <strong>rollback or rebuild</strong> plan if even a test server is down.</li>
    <li>Each Playbook task can have multiple roles and each role can have the script to configure certain areas of the application like (Apache, MySQL, Linux, Nginx )</li>
    </ul>
    </p>
    <p>– These Playbooks can be repeated to perform same operation on each server to get it up and running with consistency across servers.</p>
    <h3><strong>AUTO DEPLOYMENT (CONTINOUS DELIVERY)</strong></h3>
    <h4><strong>CHALLENGES WE FACED</strong></h4>
    <p>– <strong>NEEDED CONSISTENT ENVIRONMENT ACROSS SERVERS –</strong> Any successful application which needs updates to go into the production environment in a frequent set of interval or whenever the need is there to fix a critical bug (hotfix) needs the Auto-Deployment in place</p>
    <p>– <strong>FASTER DEPLOYMENT</strong> – Lot of time was spent in managing the deployment process each week to get the updates to the users. A common update needed to be pushed across various server which would take up whole day development of multiple developers and hotfix to single customer needed careful watch not to disturb other applications</p>
    <p>– <strong>TIMELY ROLLOUT OF UPDATES</strong> – You can manually do it too, but you waste lot of time doing it or waiting for someone to do it. And this can cost time as well as business and is something no customer would want. A scheduler process to timely update the application was very much in need</p>
    <p>– <strong>REPEATABLE & RELIABLE DEPLOYMENTS</strong> – Each and every team in the cycle of development of a product requires the updated system to do their process and having an auto deployment allows them to have updated application in ease and need not worry on configuring & deploying applications without worry about failures.</p>
    <p>– <strong>EASY FALLBACK & ZERO DOWN TIME</strong> – The main advantage why we need an Auto Deployment in place is because it can save lot of time and the business will have zero down time as there is a quick fallback action on failure.</p>
    <p>– <strong>VARIED RELEASE ACROSS SERVERS IN TIMEZONES</strong> – Updating releases on different environments, then you crib for auto deployment technique in place.</p>
    <h4><strong>HOW WE ACHIEVED AUTO DEPLOYMENT (CONTINOUS DELIVERY)</strong></h4>
    <p>We wrote a custom script using the YML language which includes configuration files, playbooks (variables, tasks, handlers).</p>
    <p>The playbooks can be used to achieve the below features:</p>
    <p><strong>REPEATABLE & RELIABLE</strong> – Ansible allows you to write ‘playbooks’ that are descriptions of the desired state of your systems, which are usually kept in source control. Ansible then does the work of getting your playbooks to execute on schedule basic or manual. Playbooks make your day-to-day management repeatable and reliable.</p>
    <p><strong>SIMPLE TO WRITE & MAINTAIN</strong> <strong>–</strong> Playbooks are simple to write and maintain. Most users become productive with Ansible after only a few hours. Ansible uses the same tools you likely already use on a daily basis and playbooks are written in an YML language so they are very easy to evolve and edit.</p>
    <p><strong>NO AGENT = MORE SECURE, MORE PERFORMANCE, LESS EFFORT</strong> – Thanks to its agentless design, Ansible can be introduced into your environment without any bootstrapping of remote systems or opening up additional ports.</p>
    <p style="clear: both"> <img src="https://www.nalashaa.com/setting-ci-deployment-automation-ansible/Images/blog-meta-images/ci-3.jpg" /></p>
    <p>Though Ansible doesn’t keep looking for commits on the GIT repo and automates the code pull / push as done by <strong>Jenkins ,</strong> But scripts to schedule the process which will be done in an set time interval via cron process can we written which can take care of all customization required.</p>
    <p style="clear: both"> <img src="https://www.nalashaa.com/setting-ci-deployment-automation-ansible/Images/blog-meta-images/ci-4.jpg" /></p>
    <p>Our process does the below,</p>
    <p>– Writing custom scripts using Ansible tool is one of the simplest and the easiest to get started with deployment. A lot of this is because it’s just SSH. It uses <strong>SSH to connect to servers</strong> and run the tasks in put in playbooks to setup the deployment.</p>
    <p>– We have numerous of commits going in to the test & demo branches and once test is passed the commit is moved by the developer <strong>into the release branch</strong>.</p>
    <p>– The set of commits on release branch is moved into a <strong>git tag</strong> based on the release version and these are stacked on for the <strong>Cron</strong> to pick it up.</p>
    <p>– The <strong>ansible scheduler</strong> (cron) picks ups these stacked release tags from the manager and pushes the tags into <strong>nodes</strong> for execute the deployment playbook.</p>
    <p>– The scheduler can be written to run on <strong>varied time zones</strong> such that you can deliver upgrade based on your client’s needs.</p>
    <p>– Once the code is moved into the nodes, the script to process other build process of pushed in code is executed and finally we have an <strong>updated system in place always</strong>.</p>
    <p>– If there is any failure in the playbook process steps, the changes are <strong>rolled back and notification</strong> is sent over with logging of particular data.</p>
    <p>Beyond the obvious of installing packages and configuring services, custom scripts written using YML and executed using Ansible coordinates all the deployment.</p>
    <p><ul>
    <li>Connect to any server using SSH and perform the actions listed.</li>
    <li>We were able to write scripts to add API servers to the loadbancer pool.</li>
    <li>Gracefully upgrades services in a rolling fashion for zero-downtime deployments.</li>
    <li>Push / Pull code from GIT version control repositories.</li>
    <li>Manage code files and configurations settings.</li>
    <li>Manage logs of actions executed via scheduler / GUI.</li>
    </ul>
    </p>
    <p>We hope this has been useful to some of you, and if you have any questions, do drop us a comment or reach out to us for a discussion.</p>
    <p><em>Image Source: Ansible Forums, Github</em></p>
    <p style="clear: both"><img src="https://www.nalashaa.com/images/blog-author-profile/sushanth-shetty.jpg" /></p>
    <h4><strong>Sushanth Shetty</strong></h4>
    <p>I am a web developer who loves to learn new things and play around with new stuff in my work domain. Other than writing code I am passionate about traveling and trying out new cuisines. I absolutely love to be behind the wheels anytime and enjoy clicking plenty of pictures to cherish the time spent.</p>
    <h1>Top blog post</h1>
    <p>Predictive maintenance – the journey from a break-fix service model to an unfailing one</p>
    <p>Guide for PHP 5 to PHP 7 Migration</p>
    <p style="clear: both"><img src="https://www.nalashaa.com/images/blog-meta-images/guy-with-laptop-1243596-640x480-forest.jpg" /></p>
    <p>Vagrant: Building stronger workflows in DevOps</p>
    <h1>Our Expertise</h1>
    <p style="clear: both"><img src="https://www.nalashaa.com/images/pages/blogs/md365-blog-roll.jpg" /></p>
    <p>Microsoft Dynamics 365</p>
    <p style="clear: both"><img src="https://www.nalashaa.com/images/pages/blogs/product-engineering-blog-roll.jpg" /></p>
    <p style="clear: both"><img src="https://www.nalashaa.com/images/pages/blogs/rpa-blog-roll.jpg" /></p>
    <p>Robotic Process Automation</p>
    <p style="clear: both"><img src="https://www.nalashaa.com/images/pages/blogs/as400-blog-roll.jpg" /></p>
    <h1>Related Case Studies</h1>
    <p style="clear: both"><img src="https://www.nalashaa.com/Images/pages/case-studies/tile-view/Case-Study_Wheelchair-600x417.jpg" /></p>
    <p>Activity coach for the differently-abled built for a world renowned wheelchair manufacturer</p>
    <p style="clear: both"><img src="https://www.nalashaa.com/Images/pages/case-studies/tile-view/Retail-Store.jpg" /></p>
    <p>An innovative online shopping entity to a retail store chain</p>
    <p style="clear: both"><img src="https://www.nalashaa.com/Images/pages/case-studies/tile-view/Logistics-Firm-600x431.jpg" /></p>
    <p>Application modernization and enhancing user experience for a global logistics firm</p>

    <p>Tel: 732-602-2560 Ext: 200 <br />Email Us: info@nalashaa.com </p>
    <p>Headquarters: <br />510 Thornall Street, Suite 210, <br />Edison, NJ-08837, USA</p>
    <p>India Office: <br />#73/37, 14th Cross, 9th Main, Sector 6, <br />HSR Layout, Bangalore – 560 102, India</p>
    <h2>Ansible continuous deployment</h2>

    <h3>Ansible continuous deployment</h3>
    <p>[youtube]</p>
    Ansible continuous deployment <a href="http://remmont.com">Latest hot news</a> Ansible continuous deployment
    <h4>Ansible continuous deployment</h4>
    Continuous Integration &amp;amp; Auto Deployment (Continuous Delivery) employing Ansible
    <h5>Ansible continuous deployment</h5>
    Ansible continuous deployment <a href="http://remmont.com">Ansible continuous deployment</a> Ansible continuous deployment
    SOURCE: <h6>Ansible continuous deployment</h6> <a href="https://dev-ops.engineer/">Ansible continuous deployment</a> Ansible continuous deployment
    #tags#[replace: -,-Ansible continuous deployment] Ansible continuous deployment#tags#

    Eduard Kabrinskiy
    breaking news

Поделиться этой страницей