Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deleting default.conf #99

Open
MScharnagl opened this issue Jul 19, 2023 · 0 comments
Open

Update deleting default.conf #99

MScharnagl opened this issue Jul 19, 2023 · 0 comments

Comments

@MScharnagl
Copy link

MScharnagl commented Jul 19, 2023

Summary

Updating a Mattermost-Omnibus install on a bare-metal server with multiple subdomains deletes the (edited) default.conf in nginx conf.d folder, changing the default forward from www to the mattermost subdomain.

Steps to reproduce

Updating Mattermost using "apt upgrade"

Expected behavior

Other configurations should not be altered, not to mention removed without asking.

Observed behavior (that appears unintentional)

Ansible update script seen using "absent" state after new cert was requested.
Relevant syslog:
Jul 19 21:13:46 machinename python3[1071217]: ansible-file Invoked with path=/etc/nginx/conf.d/default.conf state=absent recurse=False force=False follow=True modification_time_format=%Y%m%d%H%M.%S access_time_format=%Y%m%d%H%M.%S _original_basename=None _diff_peek=None src=None modification_time=None access_time=None mode=None owner=None group=None seuser=None serole=None selevel=None setype=None attributes=None content=NOT_LOGGING_PARAMETER backup=None remote_src=None regexp=None delimiter=None directory_mode=None unsafe_writes=None
Jul 19 21:13:46 machinename python3[1071242]: ansible-systemd Invoked with name=nginx state=restarted daemon_reload=False daemon_reexec=False no_block=False enabled=None force=None masked=None user=None scope=None

Possible fixes

Remove/change "absent" keyword for default.conf or alternatively give option to select.
https://github.com/mattermost/mattermost-omnibus/blob/2c593aac57d4c8e0af5275cc4dcd88c7d78b5cd1/mmomni/ansible/playbooks/reconfigure.yml#L61C8-L61C8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant