Init commit
This commit is contained in:
34
infra/cloud-config/default.yml
Normal file
34
infra/cloud-config/default.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
#cloud-config
|
||||
# Создать passwd hash: openssl passwd -6
|
||||
|
||||
timezone: Europe/Moscow
|
||||
|
||||
users:
|
||||
- name: ubuntu
|
||||
groups: [sudo]
|
||||
shell: /bin/bash
|
||||
lock_passwd: false
|
||||
passwd: "$6$M8xzsYT0lwWjlcdH$HJRhw0rBb2WowCbqg03/WvMUlte0j5SLs9tAVCxCukEqWAt7XG0ceWYc5GRUBmRxFRTbcEDrdCVTXu5jIxN2f0"
|
||||
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
||||
ssh_authorized_keys:
|
||||
- ${ssh_key}
|
||||
|
||||
package_update: true
|
||||
|
||||
packages:
|
||||
- qemu-guest-agent
|
||||
|
||||
runcmd:
|
||||
- systemctl enable --now qemu-guest-agent
|
||||
- hostnamectl set-hostname ${hostname}
|
||||
- systemctl disable --now packagekit
|
||||
- systemctl disable --now ModemManager
|
||||
- systemctl disable --now multipathd
|
||||
|
||||
write_files:
|
||||
- path: /etc/motd
|
||||
content: |
|
||||
Managed by OpenTofu
|
||||
|
||||
|
||||
final_message: "cloud-init finished"
|
||||
34
infra/cloud-config/vm.yml
Normal file
34
infra/cloud-config/vm.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
#cloud-config
|
||||
# vpn
|
||||
|
||||
timezone: Europe/Moscow
|
||||
|
||||
users:
|
||||
- name: iurii
|
||||
groups: [sudo]
|
||||
shell: /bin/bash
|
||||
lock_passwd: false
|
||||
passwd: "$6$Zc8nwvtw0Kns5.sD$FpQ4aBSeGogefqjM4we4U5QQd4YBtC98tuG3rR4j9ZmbtC1kyFf2sY/IodYW3wG.U81aEntlZrtOTOqw3ZcOc0"
|
||||
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
|
||||
ssh_authorized_keys:
|
||||
- ${ssh_key}
|
||||
|
||||
package_update: true
|
||||
|
||||
packages:
|
||||
- qemu-guest-agent
|
||||
|
||||
runcmd:
|
||||
- systemctl enable --now qemu-guest-agent
|
||||
- hostnamectl set-hostname ${hostname}
|
||||
- systemctl disable --now packagekit
|
||||
- systemctl disable --now ModemManager
|
||||
- systemctl disable --now multipathd
|
||||
|
||||
write_files:
|
||||
- path: /etc/motd
|
||||
content: |
|
||||
Managed by OpenTofu
|
||||
|
||||
|
||||
final_message: "cloud-init finished"
|
||||
Reference in New Issue
Block a user