User Tools

Site Tools


технология_vagrant

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
технология_vagrant [2023/09/18 08:54]
val [Управление образами]
технология_vagrant [2024/04/09 16:59] (current)
val [Provision с использованием внешних скриптов]
Line 11: Line 11:
  
 ===== Установка ===== ===== Установка =====
 +
 +  * [[https://​hashicorp-releases.yandexcloud.net/​vagrant/​]]
  
   * [[https://​val.bmstu.ru/​unix/​HashiCorp/​vagrant_2.2.10_x86_64.msi]] ​   * [[https://​val.bmstu.ru/​unix/​HashiCorp/​vagrant_2.2.10_x86_64.msi]] ​
Line 179: Line 181:
  
   * [[https://​stackoverflow.com/​questions/​15461898/​passing-variable-to-a-shell-script-provisioner-in-vagrant|Passing variable to a shell script provisioner in vagrant]]   * [[https://​stackoverflow.com/​questions/​15461898/​passing-variable-to-a-shell-script-provisioner-in-vagrant|Passing variable to a shell script provisioner in vagrant]]
 +
 +<​code>​
 +vagrant.exe ssh node2 -c 'sudo apt install open-iscsi -y'
 +
 +vagrant.exe ssh node3 -c 'sudo apt install open-iscsi -y'
 +</​code>​
  
 <​code>​ <​code>​
Line 314: Line 322:
  
 λ vagrant ssh node2 λ vagrant ssh node2
 +
 +λ vagrant halt node2
  
 λ vagrant destroy node1 λ vagrant destroy node1
Line 321: Line 331:
 λ cd ~/​conf/​vagrant/​nodes λ cd ~/​conf/​vagrant/​nodes
  
-λ nano Vagrantfile ​  #!!! set X+λ nano Vagrantfile ​  #!!! set X and mem 1024
  
 λ cat provision_once.sh ​  # look passwords λ cat provision_once.sh ​  # look passwords
технология_vagrant.1695016441.txt.gz · Last modified: 2023/09/18 08:54 by val