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 [2024/09/09 11:19]
val [Provision с использованием внешних скриптов]
технология_vagrant [2025/02/11 13:00] (current)
val [Provision с использованием внешних скриптов]
Line 14: Line 14:
   * [[https://​hashicorp-releases.yandexcloud.net/​vagrant/​]]   * [[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.4.3_windows_amd64.msi]] ​
-  * [[http://​gate.isp.un/​unix/​HashiCorp/​vagrant_2.2.10_x86_64.msi]] ​+
   * Можно не перезагружать систему,​ но нужно перезапустить Cmder   * Можно не перезагружать систему,​ но нужно перезапустить Cmder
  
Line 48: Line 47:
 $ vagrant box list $ vagrant box list
  
-$ vagrant box add /​c/​distrs/​ubuntu_20.04.box --name specialist/​ubuntu20+### vagrant box add /​c/​distrs/​ubuntu_20.04.box --name specialist/​ubuntu20
  
 $ ### vagrant box add generic/​debian12 $ ### vagrant box add generic/​debian12
-### vagrant box add /​c/​distrs/​debian12-generic.box --name generic/​debian12+ 
 +$ vagrant box add /​c/​distrs/​debian12-generic.box --name generic/​debian12
  
 $ vagrant box list $ vagrant box list
Line 63: Line 63:
 $ cd ~/nodes $ cd ~/nodes
  
-$ vagrant init specialist/​ubuntu20 +###vagrant init specialist/​ubuntu20 
-###vagrant init generic/​debian12+$ vagrant init generic/​debian12
  
 $ less Vagrantfile $ less Vagrantfile
Line 169: Line 169:
  
 λ vagrant up --provision λ vagrant up --provision
-λ ###vagrant provision ​--provision-with provision_once--provision-with provision_once+λ ###vagrant provision --provision-with provision_once
 λ ###vagrant reload --provision λ ###vagrant reload --provision
  
 λ vagrant ssh λ vagrant ssh
 +
 $ date $ date
 +$ ip a
 </​code>​ </​code>​
  
Line 201: Line 203:
 timedatectl set-timezone Europe/​Moscow timedatectl set-timezone Europe/​Moscow
  
-apt update +apt-get update 
-#apt install -y docker.io+ 
 +apt-get purge resolvconf 
 +rm /​etc/​resolv.conf 
 +touch /​etc/​resolv.conf 
 + 
 +#apt-get install -y docker.io
 </​code><​code>​ </​code><​code>​
 λ touch provision_onstart.sh λ touch provision_onstart.sh
технология_vagrant.1725869977.txt.gz · Last modified: 2024/09/09 11:19 by val