<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://dokuwiki.webmastermsk.ru/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://dokuwiki.webmastermsk.ru/feed.php">
        <title> linux:vagrant</title>
        <description></description>
        <link>https://dokuwiki.webmastermsk.ru/</link>
        <image rdf:resource="https://dokuwiki.webmastermsk.ru/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-08-12T12:04:09+0000</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:create_virtual_machine&amp;rev=1746183824&amp;do=diff"/>
                <rdf:li rdf:resource="https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:install&amp;rev=1701381227&amp;do=diff"/>
                <rdf:li rdf:resource="https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:preparation_servers&amp;rev=1701457379&amp;do=diff"/>
                <rdf:li rdf:resource="https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:ready_vagrantfile&amp;rev=1746211852&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://dokuwiki.webmastermsk.ru/lib/tpl/dokuwiki/images/favicon.ico">
        <title></title>
        <link>https://dokuwiki.webmastermsk.ru/</link>
        <url>https://dokuwiki.webmastermsk.ru/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:create_virtual_machine&amp;rev=1746183824&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-02T11:03:44+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:vagrant:create_virtual_machine</title>
        <link>https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:create_virtual_machine&amp;rev=1746183824&amp;do=diff</link>
        <description>Развёртка машин

структура проекта


📁 home
 \---Vagrantfile


Развертываем 5 машин vagrant@127.0.0.1 с убунтой, с портами 2223..27 и паролем vagrant

Vagrantfile


Vagrant.configure(&quot;2&quot;) do |config|
    (1..5).each do |i|
        config.vm.define &quot;server#{i}&quot; do |web|
            web.vm.box = &quot;ubuntu/focal64&quot;
            web.vm.network &quot;forwarded_port&quot;, id: &quot;ssh&quot;, host: 2222 + i, guest: 22
            web.vm.network &quot;private_network&quot;, ip: &quot;10.11.10.#{i}&quot;, virtualbox__intnet: true
            we…</description>
    </item>
    <item rdf:about="https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:install&amp;rev=1701381227&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-30T21:53:47+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:vagrant:install</title>
        <link>https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:install&amp;rev=1701381227&amp;do=diff</link>
        <description>Как установить Vagrant на Ubuntu

Vagrant — это инструмент командной строки для создания виртуальных машин и управления ими.

По умолчанию Vagrant может подготавливать машины поверх VirtualBox, Hyper-V и Docker. Другие поставщики, такие как Libvirt (KVM), VMware и AWS, могут быть установлены через систему плагинов Vagrant.…</description>
    </item>
    <item rdf:about="https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:preparation_servers&amp;rev=1701457379&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-12-01T19:02:59+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:vagrant:preparation_servers</title>
        <link>https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:preparation_servers&amp;rev=1701457379&amp;do=diff</link>
        <description>Подготовка серверов

Запуск сборки:


ansible-playbook -i inventory config.yaml -K


Структура данных:



📁 ansible-demo
 +---📁 inventory
 |    +---cluster
 \---config.yaml


inventor:

cluster


[cluster]
server1 ansible_host=127.0.0.1 ansible_user=vagrant ansible_port=2223
server2 ansible_host=127.0.0.1 ansible_user=vagrant ansible_port=2224
server3 ansible_host=127.0.0.1 ansible_user=vagrant ansible_port=2225
server4 ansible_host=127.0.0.1 ansible_user=vagrant ansible_port=2226
server5 ansibl…</description>
    </item>
    <item rdf:about="https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:ready_vagrantfile&amp;rev=1746211852&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-02T18:50:52+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>linux:vagrant:ready_vagrantfile</title>
        <link>https://dokuwiki.webmastermsk.ru/doku.php?id=linux:vagrant:ready_vagrantfile&amp;rev=1746211852&amp;do=diff</link>
        <description>Готвые конфигурации

1. CentOS 9 server с предустановленными программами и Guest Additions

Запуск:


cd ./project
vagrant up


Удалить виртуальную машину


cd ./project
vagrant destroy</description>
    </item>
</rdf:RDF>
