Skip to content

Update deleting default.conf #99

@MScharnagl

Description

@MScharnagl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions