feat: Ajout des profiles

This commit is contained in:
xavier committed 2024-02-10 01:13:40 +00:00
1 parent 9be5866a4d
commit 0a62df7352
12 files changed
+354

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
name: gitea
description: Install gitea
config:
cloud-init.vendor-data: |
#cloud-config
timezone: Europe/Paris
locale: fr_FR.UTF-8
# Packages
package_update: true
package_upgrade: true
packages:
- unzip
# Users
users:
- default
- name: gitea
groups: sudo
shell: /bin/bash
sudo: ['ALL=(ALL) NOPASSWD:ALL']
# Configure second network interface
write_files:
- path: "/etc/netplan/eth1.yaml"
permissions: "0755"
content: |
network:
version: 2
ethernets:
eth1:
dhcp4: true
runcmd:
# Apply network config
- [ netplan, generate ]
- [ netplan, apply ]
# Install gitea
- [ snap, install, gitea ]