This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
технология_terraform [2024/07/21 06:54] val [Управление проектом] |
технология_terraform [2025/02/13 12:07] (current) val [Управление проектом] |
||
---|---|---|---|
Line 192: | Line 192: | ||
~/nodes# terraform apply #-auto-approve | ~/nodes# terraform apply #-auto-approve | ||
+ | |||
+ | ~/nodes# virsh list --all | ||
~/nodes# virsh console --domain domain-node1 | ~/nodes# virsh console --domain domain-node1 | ||
Line 206: | Line 208: | ||
~/nodes# terraform destroy #-auto-approve | ~/nodes# terraform destroy #-auto-approve | ||
+ | |||
+ | ~/nodes# ###virsh destroy domain-nodeN | ||
+ | ~/nodes# ###virsh undefine --domain domain-nodeN | ||
~/nodes# ### rm -r .terraform .terraform.lock.hcl terraform.tfstate terraform.tfstate.backup | ~/nodes# ### rm -r .terraform .terraform.lock.hcl terraform.tfstate terraform.tfstate.backup | ||
Line 245: | Line 250: | ||
local-hostname: ${name} | local-hostname: ${name} | ||
</code><code> | </code><code> | ||
+ | home-computer:~/nodes# ip r | ||
+ | home-computer:~/nodes# cat /etc/resolv.conf | ||
+ | |||
home-computer:~/nodes# cat network-config.tftpl | home-computer:~/nodes# cat network-config.tftpl | ||
</code><code> | </code><code> | ||
Line 260: | Line 268: | ||
addresses: [192.168.X.10] | addresses: [192.168.X.10] | ||
</code><code> | </code><code> | ||
+ | home-computer:~/nodes# mv node1.tf nodes.tf | ||
+ | |||
home-computer:~/nodes# cat nodes.tf | home-computer:~/nodes# cat nodes.tf | ||
</code><code> | </code><code> |