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
Next revision Both sides next revision
технология_vagrant [2022/09/08 14:29]
val [Provision с использованием внешних скриптов]
технология_vagrant [2022/09/11 20:38]
val [Multi-Machine Vagrant Environments]
Line 160: Line 160:
 λ npp provision_once.sh & λ npp provision_once.sh &
 </​code><​code>​ </​code><​code>​
-sed -i '​s/​PasswordAuthentication no/​PasswordAuthentication yes/g' /​etc/​ssh/​sshd_config +#sed -i '​s/​PasswordAuthentication no/​PasswordAuthentication yes/g' /​etc/​ssh/​sshd_config 
-service ssh restart+#service ssh restart
  
 echo '​vagrant:​strongpassword'​ | chpasswd echo '​vagrant:​strongpassword'​ | chpasswd
 #echo '​root:​strongpassword'​ | chpasswd #echo '​root:​strongpassword'​ | chpasswd
  
 +(echo '"​\e[A":​ history-search-backward';​ echo '"​\e[B":​ history-search-forward'​) >> /​etc/​inputrc
  
 timedatectl set-timezone Europe/​Moscow timedatectl set-timezone Europe/​Moscow
Line 279: Line 280:
 λ vagrant ssh node2 λ vagrant ssh node2
  
-λ vagrant destroy ​node3+λ vagrant destroy ​node1
  
 λ vagrant destroy -f λ vagrant destroy -f
технология_vagrant.txt · Last modified: 2024/06/29 13:17 by val