This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
технология_vagrant [2024/02/19 10:35] val [Установка] |
технология_vagrant [2024/04/09 16:59] (current) val [Provision с использованием внешних скриптов] |
||
---|---|---|---|
Line 181: | 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 316: | Line 322: | ||
λ vagrant ssh node2 | λ vagrant ssh node2 | ||
+ | |||
+ | λ vagrant halt node2 | ||
λ vagrant destroy node1 | λ vagrant destroy node1 | ||
Line 323: | 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 |