Update appwrite provitioning
This commit is contained in:
12
playbooks/templates/act_runner.service
Normal file
12
playbooks/templates/act_runner.service
Normal 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
|
||||
11
playbooks/templates/appwrite_attribute_template.json.j2
Normal file
11
playbooks/templates/appwrite_attribute_template.json.j2
Normal 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%}
|
||||
}
|
||||
19
playbooks/templates/cpuhog_ticket.j2
Normal file
19
playbooks/templates/cpuhog_ticket.j2
Normal 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 %}
|
||||
Reference in New Issue
Block a user