How to use Ansible and Vagrant for Windows — различия между версиями

Материал из DISCOPAL
Перейти к: навигация, поиск
Строка 23: Строка 23:
  
 
=== Useful Magic ⌘⌘ ===
 
=== 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]:
 
[https://www.virtualbox.org/ticket/13839]:
 
  VBoxManage setextradata global VBoxInternal2/HostDNSSuffixesIgnore 1
 
  VBoxManage setextradata global VBoxInternal2/HostDNSSuffixesIgnore 1

Версия 08:07, 9 марта 2016

Автор

Стас Фомин
Дополнительный нижний колонтитул

Стас Фомин, 13:17, 9 марта 2016

No Easy and Right Way ⌘⌘

  • Install standard Vagrand for Windows
    • Put vagrand in PATH
  • For installing Ansible
    • Need Cygwin
    • Use BabunHumanized Cygwin.
      • Install Babun
      • A Little Magic: run
"%USERPROFILE%\.babun\cygwin\bin\dash.exe" -c '/usr/bin/rebaseall -v'
      • Now, run
%USERPROFILE%\.babun\babun.bat

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

Useful Magic ⌘⌘

  • Last working VB for Win and OpenVPN → 4.3.24

[1]:

VBoxManage setextradata global VBoxInternal2/HostDNSSuffixesIgnore 1

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

References ⌘⌘