environment_ansible
Differences
This shows you the differences between two versions of the page.
| environment_ansible [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadm | environment_ansible [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Cenário ====== | ||
| - | <file ruby Vagrantfile> | ||
| - | $ vim Vagrantfile | ||
| - | # -*- mode: ruby -*- | ||
| - | # vi: set ft=ruby : | ||
| - | ENV[' | ||
| - | |||
| - | vms = { | ||
| - | ' | ||
| - | ' | ||
| - | ' | ||
| - | ' | ||
| - | } | ||
| - | |||
| - | Vagrant.configure(' | ||
| - | |||
| - | config.vm.box_check_update = false | ||
| - | |||
| - | vms.each do |name, conf| | ||
| - | config.vm.define "# | ||
| - | k.vm.box = "# | ||
| - | k.vm.hostname = "# | ||
| - | k.vm.network ' | ||
| - | k.vm.provider ' | ||
| - | lb.memory = conf[' | ||
| - | lb.cpus = conf[' | ||
| - | end | ||
| - | end | ||
| - | end | ||
| - | config.vm.synced_folder " | ||
| - | end | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ vagrant up | ||
| - | </ | ||
| - | |||
| - | <file bash> | ||
| - | $ vagrant status | ||
| - | Current machine states: | ||
| - | |||
| - | ansible-server | ||
| - | ub-vm-01 | ||
| - | ol-vm-02 | ||
| - | de-vm-03 | ||
| - | </ | ||
| - | ===== Referências ===== | ||
| - | - [[https:// | ||
environment_ansible.1753560543.txt.gz · Last modified: by wikiadm
