Update appwrite provitioning

This commit is contained in:
2024-05-20 18:50:02 -04:00
parent 80c82d7b73
commit 8382bbc5e5
26 changed files with 251 additions and 51 deletions

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Act Runner for automatic builds from Gitea.
[Service]
Environment="DOCKER_HOST=unix://{{ lookup('ansible.builtin.env','XDG_RUNTIME_DIR') }}/podman/podman.sock"
Type=simple
ExecStart=/home/ptoal/act_runner daemon
Restart=on-failure
StandardOutput=file:%h/log_file
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,11 @@
{
"key": "{{ item[1].key }}",
"required": {{ item[1].required }},
{% if item[1].default is defined and item[1].default and item[1].default != "null" %}"default": "{{ item[1].default }}",{% endif %}
{% if item[1].array is defined %}"array": {{ item[1].array }}, {% endif %}
{% if item[1].elements is defined %}"elements": [{% for e in item[1].elements %}"{{ e }}"{%- if not loop.last %},{% endif %}{% endfor %}],{% endif %}
{% if item[1].min is defined %}"min": {{ item[1].min | int }},{% endif %}
{% if item[1].max is defined %}"max": {{ item[1].max | int }},{% endif %}
{% if item[1].size is defined %}"size": {{ item[1].size | int }},{% endif %}
{% if item[1].encrypt is defined %}"encrypt": {{ item[1].encrypt }}{% endif%}
}

View File

@@ -0,0 +1,19 @@
= CPUHog Report =
A high CPU event was triggered from AlertManager.
{% if ansible_eda is defined %}
Annotations: "{{ ansible_eda.event.alert.annotations }}"
Generator URL: "{{ ansible_eda.event.alert.generatorURL }}"
Severity: "{{ ansible_eda.event.alert.labels.severity }}"
Instance: "{{ ansible_eda.event.alert.labels.instance }}"
{% endif %}
** Top CPU Consumers **
{% for line in processes_cpu.stdout_lines[0:10] %}
{{ line }}
{% endfor %}
** Top Memory Consumers **
{% for line in processes_mem.stdout_lines[0:10] %}
{{ line }}
{% endfor %}