Solved Snipe IT bug

This commit is contained in:
Kevin Veen-Birkenbach 2025-02-05 12:53:06 +01:00
parent 26942a9265
commit 53af17b2ab
11 changed files with 17 additions and 19 deletions

View File

@ -3,7 +3,7 @@ pause_duration: "120" # Database delay to wait for the central d
backups_folder_path: "/Backups/" # Path to the backups folder backups_folder_path: "/Backups/" # Path to the backups folder
timezone: "UTC" timezone: "UTC"
locale: "locale" locale: "en"
## Domain ## Domain
primary_domain_tld: "localhost" # Top Level Domain of the server primary_domain_tld: "localhost" # Top Level Domain of the server
@ -43,4 +43,7 @@ nginx_matomo_tracking: false # Activates matomo tracking on all
# To enable, update your inventory file. # To enable, update your inventory file.
# For detailed setup instructions, visit: # For detailed setup instructions, visit:
# https://github.com/kevinveenbirkenbach/cymais/tree/master/roles/nginx-docker-cert-deploy # https://github.com/kevinveenbirkenbach/cymais/tree/master/roles/nginx-docker-cert-deploy
enable_wildcard_certificate: false enable_wildcard_certificate: false
# This enables debugging in ansible and in the apps
enable_debug: false

View File

@ -2,7 +2,6 @@
# The following modes can be combined with each other # The following modes can be combined with each other
mode_reset: false # Cleans up all CyMaIS files. It's necessary to run to whole playbook and not particial roles when using this function. mode_reset: false # Cleans up all CyMaIS files. It's necessary to run to whole playbook and not particial roles when using this function.
mode_debug: false # Prints well formated debug information
mode_test: false # Executes test routines instead of productive routines mode_test: false # Executes test routines instead of productive routines
mode_update: true # Executes updates mode_update: true # Executes updates
mode_backup: true # Activates the backup before the update procedure mode_backup: true # Activates the backup before the update procedure

View File

@ -70,7 +70,7 @@
- name: show variable information - name: show variable information
debug: debug:
msg: "hosts_path: {{hosts_path}}\nmatrix_inventory_tmp_dir:{{ matrix_inventory_tmp_dir }}" msg: "hosts_path: {{hosts_path}}\nmatrix_inventory_tmp_dir:{{ matrix_inventory_tmp_dir }}"
when: mode_debug | bool when: enable_debug | bool
- name: install requirements - name: install requirements
local_action: command just roles local_action: command just roles

View File

@ -10,4 +10,4 @@ MOODLE_REVERSE_PROXY=yes
MOODLE_USERNAME={{applications.moodle.administrator_name}} MOODLE_USERNAME={{applications.moodle.administrator_name}}
MOODLE_PASSWORD={{moodle_user_password}} MOODLE_PASSWORD={{moodle_user_password}}
MOODLE_EMAIL={{applications.moodle.administrator_email}} MOODLE_EMAIL={{applications.moodle.administrator_email}}
BITNAMI_DEBUG={% if mode_debug | bool %}true{% else %}false{% endif %} BITNAMI_DEBUG={% if enable_debug | bool %}true{% else %}false{% endif %}

View File

@ -4,7 +4,7 @@ APP_KEY={{pixelfed_app_key}}
## General Settings ## General Settings
APP_NAME="{{applications.pixelfed.titel}}" APP_NAME="{{applications.pixelfed.titel}}"
APP_ENV=production APP_ENV=production
APP_DEBUG={{mode_debug | string | lower }} APP_DEBUG={{enable_debug | string | lower }}
APP_URL=https://{{domain}} APP_URL=https://{{domain}}
APP_DOMAIN="{{domain}}" APP_DOMAIN="{{domain}}"
ADMIN_DOMAIN="{{domain}}" ADMIN_DOMAIN="{{domain}}"

View File

@ -2,4 +2,5 @@
## more ## more
- https://github.com/snipe/snipe-it - https://github.com/snipe/snipe-it
- https://snipeitapp.com/ - https://snipeitapp.com/
- https://snipe-it.readme.io/docs/ldap-sync-login - https://snipe-it.readme.io/docs/ldap-sync-login
- https://snipe-it.readme.io/docs/saml

View File

@ -2,7 +2,7 @@
# REQUIRED: BASIC APP SETTINGS # REQUIRED: BASIC APP SETTINGS
# -------------------------------------------- # --------------------------------------------
APP_ENV=production APP_ENV=production
APP_DEBUG={{mode_debug | string | lower }} APP_DEBUG={{enable_debug | string | lower }}
# Please regenerate the APP_KEY value by calling `docker compose run --rm app php artisan key:generate --show`. Copy paste the value here # Please regenerate the APP_KEY value by calling `docker compose run --rm app php artisan key:generate --show`. Copy paste the value here
APP_KEY={{applications.snipe_it.app_key}} APP_KEY={{applications.snipe_it.app_key}}
APP_URL=http://{{domain}} APP_URL=http://{{domain}}

View File

@ -1,8 +1,3 @@
application_id: "snipe_it" application_id: "snipe_it"
database_password: "{{applications.snipe_it.database_password}}" database_password: "{{applications.snipe_it.database_password}}"
database_type: "mariadb" database_type: "mariadb"
# deactivated due to error
# SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'locale'
# alter table `users` add `locale` varchar(5) null default 'locale'
enable_central_database: false

View File

@ -8,7 +8,7 @@
- name: The domains for which a www. redirect will be implemented - name: The domains for which a www. redirect will be implemented
debug: debug:
var: domain_mappings var: domain_mappings
when: mode_debug | bool when: enable_debug | bool
- name: configure nginx redirect configurations - name: configure nginx redirect configurations
vars: vars:

View File

@ -17,7 +17,7 @@
- name: The domains for which a www. redirect will be implemented - name: The domains for which a www. redirect will be implemented
debug: debug:
var: filtered_domains var: filtered_domains
when: mode_debug | bool when: enable_debug | bool
# Routine for domains with primary domain included # Routine for domains with primary domain included
@ -28,7 +28,7 @@
- name: Debug with primary domain - name: Debug with primary domain
debug: debug:
var: filtered_domains_with_primary_domain var: filtered_domains_with_primary_domain
when: mode_debug | bool when: enable_debug | bool
- name: Include nginx-domain-redirect role with dynamic domain mappings for domains with {{primary_domain}} included - name: Include nginx-domain-redirect role with dynamic domain mappings for domains with {{primary_domain}} included
include_role: include_role:
@ -55,7 +55,7 @@
- name: Debug domains without primary domain - name: Debug domains without primary domain
debug: debug:
var: filtered_domains_without_primary_domain var: filtered_domains_without_primary_domain
when: mode_debug | bool when: enable_debug | bool
- name: Include nginx-domain-redirect role with dynamic domain mappings for domains without primary domain - name: Include nginx-domain-redirect role with dynamic domain mappings for domains without primary domain
include_role: include_role:

View File

@ -5,7 +5,7 @@
database_name: "{{ database_name | default('undefined') }}" database_name: "{{ database_name | default('undefined') }}"
database_username: "{{ database_username | default('undefined') }}" database_username: "{{ database_username | default('undefined') }}"
database_password: "{{ database_password | default('undefined') }}" database_password: "{{ database_password | default('undefined') }}"
when: mode_debug | bool when: enable_debug | bool
- name: seed database values - name: seed database values
command: command: