2023-02-14 13:56:28 +01:00
|
|
|
version: '0.10'
|
|
|
|
services:
|
|
|
|
- service:
|
|
|
|
- name: nginx
|
|
|
|
override: null
|
|
|
|
- name: site_update
|
2023-03-02 21:41:57 +01:00
|
|
|
engine: cheetah
|
2023-02-14 18:10:35 +01:00
|
|
|
target: timers
|
2023-02-14 13:56:28 +01:00
|
|
|
file:
|
|
|
|
- text: /sbin/site_update
|
|
|
|
mode: 755
|
|
|
|
- name: site_update
|
|
|
|
type: timer
|
|
|
|
engine: none
|
2023-02-14 18:10:35 +01:00
|
|
|
target: multi-user
|
2023-02-14 13:56:28 +01:00
|
|
|
variables:
|
|
|
|
- family:
|
|
|
|
- name: nginx
|
|
|
|
variables:
|
|
|
|
- variable:
|
|
|
|
- name: nginx_root
|
|
|
|
redefine: true
|
|
|
|
value:
|
|
|
|
- text: /srv/git/site/static
|
|
|
|
- name: forgejo
|
|
|
|
variables:
|
|
|
|
- variable:
|
|
|
|
- name: site_domain_name
|
|
|
|
hidden: true
|
2023-03-02 21:41:57 +01:00
|
|
|
supplier: SiteRepo
|
|
|
|
mandatory: true
|
2023-02-14 13:56:28 +01:00
|
|
|
- name: site_user_name
|
|
|
|
type: unix_user
|
|
|
|
hidden: true
|
2023-03-02 21:41:57 +01:00
|
|
|
supplier: SiteRepo:username
|
2023-02-14 13:56:28 +01:00
|
|
|
value:
|
|
|
|
- text: site
|
|
|
|
- name: site_user_mail
|
|
|
|
type: mail
|
2023-03-02 21:41:57 +01:00
|
|
|
description: Email de l'utilisateur "site" dans Forgejo
|
|
|
|
supplier: SiteRepo:email
|
2023-02-14 13:56:28 +01:00
|
|
|
- name: site_user_password
|
|
|
|
type: password
|
|
|
|
hidden: true
|
2023-03-02 21:41:57 +01:00
|
|
|
supplier: SiteRepo:password
|
2023-02-14 13:56:28 +01:00
|
|
|
constraints:
|
|
|
|
- fill:
|
|
|
|
- name: get_password
|
|
|
|
param:
|
|
|
|
- type: variable
|
|
|
|
name: server_name
|
|
|
|
text: domain_name_eth0
|
|
|
|
- type: variable
|
|
|
|
name: username
|
|
|
|
text: site_user_name
|
|
|
|
- name: description
|
|
|
|
text: site
|
|
|
|
- name: type
|
|
|
|
text: cleartext
|
|
|
|
- name: hide
|
|
|
|
type: variable
|
|
|
|
text: hide_secret
|
|
|
|
target:
|
|
|
|
- text: site_user_password
|