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

Boulder - recent world news - REMMONT.COM

Тема в разделе 'Свободное общение и OFF-топик', создана пользователем SHALOMEn, 20 май 2021.

  1. SHALOMEn

    SHALOMEn Member

    Ansible deployment automation - Eduard Kabrinskiy


    <h1>Ansible deployment automation</h1>
    <p>[youtube]</p>
    Ansible deployment automation <a href="http://remmont.com">Latest national news headlines</a> Ansible deployment automation
    <h1>Automated Deployment With Git Push Using Ansible</h1>
    <p>Deploying applications these days are really a big thing. Especially developers are already working hard for their logic and they cannot find time to login into the server and run the deployment scripts one by one. Mainly developers know their time for deployment, which mean they know the importance and priority of the deployment. So automating and leaving deployment work with developers will really help healthy IT release.</p>
    <p style="clear: both"><img style="float: left; margin: 0 10px 5px 0;" src="https://devopscube.com/wp-content/uploads/2016/07/Git-push-to-deploy.png" /> Classic way of push to deploy only with GIT</p>
    <h2>Automated Deployment With Git</h2>
    <p>GIT push based deploy will really make this possible. Let developers use their own git repository tool but by adding extra remote URL on git configuration file, which is to deploy the application.</p>
    <p>This will push the code in two different places at a time. one is for Codebase, another is for deployment.</p>
    <h3>Here is how</h3>
    <p>We just have to configure our git server in such a way that whenever git push event is happening, GIT server should run the deployment script remotely or locally. <br />so we need to configure the git server first.</p>
    <p><ul>
    <li>First, we need to install git-core on the git server.</li>
    </ul>
    <ul>
    <li>Then we need to create git user.</li>
    </ul>
    <ul>
    <li>Then adding developer?s workstation public key authorized_keys file to allow developer?s workstation to access the git server from remote.</li>
    </ul>
    <ul>
    <li>Then need to create an empty repository into git-server</li>
    </ul>
    </p>
    <p>This will create dummy git repository and you can see the folder called hooks, which is having scripts to perform respective event so by keeping deployment script inside post-receive will execute the post deployment scripts and by keeping pre-deployment script inside pre-receive file will run the pre-deploy script.</p>
    <p>so at initial, developer should add the git server?s project URL into his project.</p>
    <p><strong>like this :</strong></p>
    <p>this will deploy the developer?s code directly.</p>
    <p>Seems like a waste of time and unnecessary for developer right? So Ansible makes this very easy.</p>
    <p style="clear: both"><img style="float: left; margin: 0 10px 5px 0;" src="https://devopscube.com/wp-content/uploads/2016/07/Git-push-to-deploy2.png" /> Push to deploy with Ansible</p>
    <p>Just install the role from ansible.galaxy by</p>
    <p>Just keep the workstation machine?s public key in a file.</p>
    <p>Mention the path of this file in path_for_authorized_keys,git_repository_path,post_receive_script,pre_receive_script in the variable as mentioned below.</p>
    <p>All the configuration of the git server will be done with this ansible run.</p>
    <p>whenever a developer pushes the code to git server, the application specified script like ?puppet deploy script?, ?cap deploy?? etc.. for post-receive and pre-receive will run from there and the application will be deployed. Make the scripts in such a way that deployment script will run only after the master branch has been pushed. So that unnecessary deployment will be avoided. Example code for that is</p>
    <h3>Conclusion</h3>
    <p>GIT is really an amazing tool for IT automation, especially it connects application developers with IT operations to make things easy.</p>
    <h2>Ansible deployment automation</h2>

    <h3>Ansible deployment automation</h3>
    <p>[youtube]</p>
    Ansible deployment automation <a href="http://remmont.com">Live news</a> Ansible deployment automation
    <h4>Ansible deployment automation</h4>
    Deploying applications these days are really a big thing. Especially developers are already working hard for their logic and they cannot find time to login
    <h5>Ansible deployment automation</h5>
    Ansible deployment automation <a href="http://remmont.com">Ansible deployment automation</a> Ansible deployment automation
    SOURCE: <h6>Ansible deployment automation</h6> <a href="https://dev-ops.engineer/">Ansible deployment automation</a> Ansible deployment automation
    #tags#[replace: -,-Ansible deployment automation] Ansible deployment automation#tags#
    https://ssylki.info/?who=remmont.com/sanjay-valvani-5 https://ssylki.info/?who=used-car-values.remmont.com https://ssylki.info/?who=condos-for-sale.remmont.com https://ssylki.info/?who=remmont.com/18811 https://ssylki.info/?who=remmont.co...e-pregnant-bellies-during-protests-in-belarus

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