diff --git a/roles/web-app-attendize/README.md b/roles/web-app-attendize/README.md index c8d4d6c8..c2a97aa5 100644 --- a/roles/web-app-attendize/README.md +++ b/roles/web-app-attendize/README.md @@ -1,8 +1,9 @@ -# Attendize +# Attendize (Deprecated) ## Warning > **Note:** This role is a work in progress. Use with caution and check for updates. +> The role wasn't updated since over 3 years. propably it makes sense to focus on the **web-app-pretix** app instead ## Description diff --git a/roles/web-app-attendize/TODO.md b/roles/web-app-attendize/TODO.md index 435bdfb4..4e718501 100644 --- a/roles/web-app-attendize/TODO.md +++ b/roles/web-app-attendize/TODO.md @@ -1,3 +1,2 @@ # Todo -- Implement this role -- refactore main.yml \ No newline at end of file +- Remove as soon as pretix app is included \ No newline at end of file diff --git a/roles/web-app-attendize/config/main.yml b/roles/web-app-attendize/config/main.yml index 2c513542..8de9f478 100644 --- a/roles/web-app-attendize/config/main.yml +++ b/roles/web-app-attendize/config/main.yml @@ -1,6 +1,3 @@ -image: - web: "attendize_web:latest" - worker: "attendize_worker:latest" features: matomo: true css: true @@ -13,6 +10,12 @@ docker: enabled: true database: enabled: true + web: + image: "attendize_web" + version: "latest" + worker: + image: "attendize_worker" + version: "latest" server: domains: canonical: diff --git a/roles/web-app-attendize/tasks/main.yml b/roles/web-app-attendize/tasks/main.yml index d1183ac4..43be8b1e 100644 --- a/roles/web-app-attendize/tasks/main.yml +++ b/roles/web-app-attendize/tasks/main.yml @@ -20,9 +20,3 @@ src: roles/srv-proxy-core/templates/vhost/basic.conf.j2 dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ domains | get_domain(application_id) }}.conf" notify: restart openresty - -- name: "For '{{ application_id }}': include tasks update-repository-with-files.yml" - include_tasks: utils/update-repository-with-files.yml - vars: - detached_files: - - "docker-compose.yml" \ No newline at end of file diff --git a/roles/web-app-attendize/templates/docker-compose.yml.j2 b/roles/web-app-attendize/templates/docker-compose.yml.j2 index 023ea7df..047e9697 100644 --- a/roles/web-app-attendize/templates/docker-compose.yml.j2 +++ b/roles/web-app-attendize/templates/docker-compose.yml.j2 @@ -1,7 +1,7 @@ {% include 'roles/docker-compose/templates/base.yml.j2' %} web: - image: "{{ applications | get_app_conf(application_id, 'images.web', True) }}" + image: "{{ ATTENDIZE_WEB_IMAGE }}:{{ ATTENDIZE_WEB_VERSION }}" ports: - "{{ ports.localhost.http[application_id] }}:80" volumes: @@ -15,7 +15,7 @@ {% include 'roles/docker-container/templates/networks.yml.j2' %} worker: - image: "{{ applications | get_app_conf(application_id, 'images.worker', True) }}" + image: "{{ ATTENDIZE_WORKER_IMAGE }}:{{ ATTENDIZE_WORKER_VERSION }}" {% include 'roles/docker-container/templates/depends_on/dmbs_incl.yml.j2' %} maildev: {% include 'roles/docker-container/templates/networks.yml.j2' %} diff --git a/roles/web-app-attendize/templates/env.j2 b/roles/web-app-attendize/templates/env.j2 new file mode 100644 index 00000000..ab461882 --- /dev/null +++ b/roles/web-app-attendize/templates/env.j2 @@ -0,0 +1,76 @@ +# https://github.com/Attendize/Attendize/blob/develop/.env.example + +ATTENDIZE_DEV=true +ATTENDIZE_CLOUD=false + +APP_NAME=Attendize +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=https://localhost:8081 + +LOG_CHANNEL=stack + +DB_CONNECTION=mysql +DB_HOST=db +DB_PORT=3306 +DB_DATABASE=attendize +DB_USERNAME=attendize +DB_PASSWORD=attendize + +BROADCAST_DRIVER=log +CACHE_DRIVER=file +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_DRIVER=smtp +MAIL_HOST=maildev +MAIL_PORT=1025 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_ENCRYPTION=null + +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= + +PUSHER_APP_ID= +PUSHER_APP_KEY= +PUSHER_APP_SECRET= +PUSHER_APP_CLUSTER=mt1 + +MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" +MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" + +# Attendize Variables +DEFAULT_DATEPICKER_SEPERATOR="-" +DEFAULT_DATEPICKER_FORMAT="yyyy-MM-dd HH:mm" +DEFAULT_DATETIME_FORMAT="Y-m-d H:i" +APP_TIMEZONE= + +MAIL_FROM_ADDRESS=testing@attendize.com +MAIL_FROM_NAME=testing_service + +# https://github.com/NitMedia/wkhtml2pdf#driver-types +WKHTML2PDF_BIN_FILE=wkhtmltopdf-amd64 + +# Google Analytics +GOOGLE_ANALYTICS_ID= +GOOGLE_MAPS_GEOCODING_KEY= + +# Captcha Configuration +CAPTCHA_IS_ON=false +# can be recaptcha or hcaptcha +CAPTCHA_TYPE= +CAPTCHA_KEY= +CAPTCHA_SECRET= + +TWITTER_WIDGET_ID= + +LOG=errorlog \ No newline at end of file diff --git a/roles/web-app-attendize/vars/main.yml b/roles/web-app-attendize/vars/main.yml index 0e93b3c1..b6d18b6c 100644 --- a/roles/web-app-attendize/vars/main.yml +++ b/roles/web-app-attendize/vars/main.yml @@ -1,4 +1,14 @@ ---- +# General application_id: "web-app-attendize" + +# Database database_type: "mariadb" -docker_repository_address: "https://github.com/Attendize/Attendize.git" \ No newline at end of file + +# Docker +docker_repository_address: "https://github.com/Attendize/Attendize.git" + +# Attendize +ATTENDIZE_WEB_IMAGE: "{{ applications | get_app_conf(application_id, 'docker.services.web.image') }}" +ATTENDIZE_WEB_VERSION: "{{ applications | get_app_conf(application_id, 'docker.services.web.version') }}" +ATTENDIZE_WORKER_IMAGE: "{{ applications | get_app_conf(application_id, 'docker.services.worker.image') }}" +ATTENDIZE_WORKER_VERSION: "{{ applications | get_app_conf(application_id, 'docker.services.worker.version') }}" \ No newline at end of file