lpic-305-306/cloud-init/user-data
2022-05-18 19:04:58 +02:00

24 lines
725 B
Plaintext

#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>