This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
технология_vagrant [2024/03/11 19:00] val [Multi-Machine Vagrant Environments] |
технология_vagrant [2024/04/09 16:59] 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 325: | 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 |