How to use Ansible and Vagrant for Windows — различия между версиями
Материал из DISCOPAL
StasFomin (обсуждение | вклад) (Новая страница: «<slideshow title="" style="custis" scaled="true" font="Calibri, Segoe Print, cursive" footer="" headingmark="⌘⌘" /> === No Easy and Right Way === * Install s…») |
StasFomin (обсуждение | вклад) (→References ⌘⌘) |
||
(не показано 10 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
− | <slideshow title="" style=" | + | <slideshow title="" style="ispras" scaled="true" font="Calibri, Segoe Print, cursive" footer="" headingmark="⌘⌘" /> |
− | === No Easy and Right Way === | + | === No Easy and Right Way ⌘⌘ === |
* Install standard Vagrand for Windows | * Install standard Vagrand for Windows | ||
** Put <tt>vagrand</tt> in PATH | ** Put <tt>vagrand</tt> in PATH | ||
* For installing Ansible | * For installing Ansible | ||
− | ** Need {{@|Cygwin}} | + | ** Need {{@|Cygwin}} — arrr… |
** Use [http://babun.github.io/ Babun] — {{!|Humanized Cygwin}}. | ** Use [http://babun.github.io/ Babun] — {{!|Humanized Cygwin}}. | ||
*** Install [http://babun.github.io/ Babun] | *** Install [http://babun.github.io/ Babun] | ||
*** A Little Magic: run | *** A Little Magic: run | ||
"%USERPROFILE%\.babun\cygwin\bin\dash.exe" -c '/usr/bin/rebaseall -v' | "%USERPROFILE%\.babun\cygwin\bin\dash.exe" -c '/usr/bin/rebaseall -v' | ||
− | |||
− | |||
− | === Install Ansible on Babun === | + | === Install Ansible on Babun ⌘⌘ === |
Now, run | Now, run | ||
%USERPROFILE%\.babun\babun.bat | %USERPROFILE%\.babun\babun.bat | ||
<code-bash> | <code-bash> | ||
wget https://bootstrap.pypa.io/ez_setup.py -O - | python | wget https://bootstrap.pypa.io/ez_setup.py -O - | python | ||
− | /bin/easy_install pip | + | /bin/easy_install pip |
/bin/pip install ansible | /bin/pip install ansible | ||
</code-bash> | </code-bash> | ||
− | === ansible-playbook.bat === | + | === ansible-playbook.bat ⌘⌘ === |
<pre> | <pre> | ||
@echo off | @echo off | ||
Строка 31: | Строка 29: | ||
put <tt>ansible-playbook.bat</tt> somewhere in path | put <tt>ansible-playbook.bat</tt> somewhere in path | ||
+ | |||
+ | === Useful Magic ⌘⌘ === | ||
+ | * Last working VB for Win and OpenVPN → [http://download.virtualbox.org/virtualbox/4.3.24/VirtualBox-4.3.24-98716-Win.exe 4.3.24] | ||
+ | |||
+ | [https://www.virtualbox.org/ticket/13839]: | ||
+ | VBoxManage setextradata global VBoxInternal2/HostDNSSuffixesIgnore 1 | ||
=== References ⌘⌘ === | === References ⌘⌘ === | ||
+ | See also: | ||
* http://www.azavea.com/blogs/labs/2014/10/running-vagrant-with-ansible-provisioning-on-windows/ | * http://www.azavea.com/blogs/labs/2014/10/running-vagrant-with-ansible-provisioning-on-windows/ | ||
* https://habrahabr.ru/post/224047/ | * https://habrahabr.ru/post/224047/ |
Текущая версия на 13:17, 9 марта 2016
- Автор
- Стас Фомин
- Дополнительный нижний колонтитул
- Стас Фомин, 13:17, 9 марта 2016
Содержание
No Easy and Right Way ⌘⌘
- Install standard Vagrand for Windows
- Put vagrand in PATH
- For installing Ansible
"%USERPROFILE%\.babun\cygwin\bin\dash.exe" -c '/usr/bin/rebaseall -v'
Install Ansible on Babun ⌘⌘
Now, run
%USERPROFILE%\.babun\babun.bat
wget https://bootstrap.pypa.io/ez_setup.py -O - | python /bin/easy_install pip /bin/pip install ansible
ansible-playbook.bat ⌘⌘
@echo off set CYGWIN=%USERPROFILE%\.babun\cygwin set SH=%CYGWIN%\bin\bash.exe "%SH%" -c "/bin/ansible-playbook %*"
put ansible-playbook.bat somewhere in path
Useful Magic ⌘⌘
- Last working VB for Win and OpenVPN → 4.3.24
[1]:
VBoxManage setextradata global VBoxInternal2/HostDNSSuffixesIgnore 1
References ⌘⌘
See also: