Add test instance for phpvms
This commit is contained in:
parent
e7f70b6da3
commit
e5ab9121b5
4 changed files with 44 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ phpvms_env:
|
||||||
# See https://filamentphp.com/docs/4.x/panel-configuration#enabling-spa-prefetching
|
# See https://filamentphp.com/docs/4.x/panel-configuration#enabling-spa-prefetching
|
||||||
USE_PREFETCHING_IN_ADMIN: false
|
USE_PREFETCHING_IN_ADMIN: false
|
||||||
|
|
||||||
phpvms_compose:
|
phpvms_compose_base:
|
||||||
watchtower: false
|
watchtower: false
|
||||||
image: caddy:2
|
image: caddy:2
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
1
playbooks/roles/phpvms/vars/main.yml
Normal file
1
playbooks/roles/phpvms/vars/main.yml
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
phpvms_compose: "{{ phpvms_compose_base }}"
|
||||||
|
|
@ -1,2 +1,43 @@
|
||||||
service_name_overwrite: phpvms_test # noqa: var-naming[no-role-prefix]
|
service_name_overwrite: phpvms_test # noqa: var-naming[no-role-prefix]
|
||||||
phpvms_domain: "test.kondor-virtual.de"
|
phpvms_domain: "test.kondor-virtual.de"
|
||||||
|
|
||||||
|
phpvms_volume_opts:
|
||||||
|
- "seal"
|
||||||
|
- "uid={{ phpvms_uid }}"
|
||||||
|
- "gid={{ phpvms_gid }}"
|
||||||
|
- "username={{ opentofu.hcloud_storage_box_accounts.phpvms_test.user }}"
|
||||||
|
- "password={{ opentofu.hcloud_storage_box_accounts.phpvms_test.pass }}"
|
||||||
|
|
||||||
|
phpvms_test_compose:
|
||||||
|
file:
|
||||||
|
services:
|
||||||
|
phpvms-app:
|
||||||
|
volumes:
|
||||||
|
- type: volume
|
||||||
|
source: layout
|
||||||
|
target: /var/www/html/resources/views/layouts/kondor-virtual
|
||||||
|
volume:
|
||||||
|
subpath: layout
|
||||||
|
copy-job:
|
||||||
|
image: bash
|
||||||
|
command: |
|
||||||
|
bash -c "while true
|
||||||
|
do
|
||||||
|
cp -rf /mnt/kondor-virtual_in /mnt/public/kondor-virtual
|
||||||
|
sleep 60
|
||||||
|
done"
|
||||||
|
volumes:
|
||||||
|
- ./public/:/mnt/public:rw
|
||||||
|
- type: volume
|
||||||
|
source: layout
|
||||||
|
target: /mnt/kondor-virtual_in
|
||||||
|
volume:
|
||||||
|
subpath: public
|
||||||
|
volumes:
|
||||||
|
layout:
|
||||||
|
driver_opts:
|
||||||
|
type: cifs
|
||||||
|
o: "{{ phpvms_volume_opts | join(',') }}"
|
||||||
|
device: "//{{ opentofu.hcloud_storage_box_accounts.phpvms_test.host }}/{{ opentofu.hcloud_storage_box_accounts.phpvms_test.user }}"
|
||||||
|
|
||||||
|
phpvms_compose: "{{ phpvms_compose_base | combine(phpvms_test_compose, list_merge='append_rp', recursive=true) }}"
|
||||||
|
|
|
||||||
|
|
@ -650,6 +650,7 @@ services = {
|
||||||
database = false
|
database = false
|
||||||
ansible_role = "phpvms"
|
ansible_role = "phpvms"
|
||||||
ansible_vars = "test"
|
ansible_vars = "test"
|
||||||
|
storage_box = true
|
||||||
}
|
}
|
||||||
|
|
||||||
"postgresql" = {
|
"postgresql" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue