This commit is contained in:
Jarosław Karcewicz 2022-05-18 19:04:58 +02:00
parent f8616e4121
commit 40344c17ad
2 changed files with 31 additions and 0 deletions

7
cloud-init/meta-data Normal file
View File

@ -0,0 +1,7 @@
local-hostname: debiansrv1.local
# jako ciekawostka poniżej konfiguracja sieci
# network-interfaces: |
# iface enp0s3 inet static
# address 192.168.101.168
# netmask 255.255.254.0
# gateway 192.168.100.254

24
cloud-init/user-data Normal file
View File

@ -0,0 +1,24 @@
#cloud-config
users:
- name: jozek
passwd: $6$PQER2ouhhVnCCBFQ$X4GhTSz/tkgl75yq9.07rjcCuE0jJshtd3kER.PgjwmLqMytuG87DxdisNajl9ecn71YeEPWiCvn0Wg4G8x8e.
shell: /bin/bash
lock_passwd: false
sudo: ALL=(ALL) NOPASSWD:ALL
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBfJ2Qjt5GPi7DKRPGxJCkvk8xNsG9dA607tnWagOk2D jozek@gmail.com
packages:
- apache2
package_upgrade: true
write_files:
- path: /var/www/html/index.html
content: |
<html>
<head>
<title>strona testowa</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<h1>Witamy na stronie firmy <strong>Contoso</strong>!</h1>
</body>
</html>