debops / ansible-apache

Manage and configure the Apache HTTP Server
GNU General Public License v3.0
2 stars 6 forks source link

Wheezy not support ? #17

Closed ikus060 closed 6 years ago

ikus060 commented 7 years ago

Tried to run the role on a Debian Wheezy installation. It seams the directory structure is a bit different in /etc/apache2. The folder "conf-available" and "conf-enabled" doesn't exists by default.

I've create the directories so the role can run successfully, but the folder "conf-enabled" doesn't get included by apache.conf.

TASK [debops.apache : Create conf-available snippets] **************************************************************************************
failed: [sestican] (item={'key': u'local-debops_apache', 'value': True}) => {"changed": true, "failed": true, "item": {"key": "local-debops_apache", "value": true}, "msg": "Destination directory /etc/apache2/conf-available does not exist"}
failed: [sestican] (item={'key': u'security', 'value': {u'raw': u'# This file exists here to make Debian package scripts happy.\n# For the actual security directives enabled in server context refer to\n# the `local-debops_apache.conf` file.\n#\n# `postinst` of the `apache2` package normally tries to enable the\n# `security` snippet in server context without checking if it is actually\n# there. The package provided `security.conf` snippet has been diverted\n# to `package-security.conf` and is not enabled to allow `debops.apache`\n# to configure and change security related settings.\n', u'divert_filename': u'package-security', u'type': u'divert', u'divert_suffix': u''}}) => {"changed": true, "failed": true, "item": {"key": "security", "value": {"divert_filename": "package-security", "divert_suffix": "", "raw": "# This file exists here to make Debian package scripts happy.\n# For the actual security directives enabled in server context refer to\n# the `local-debops_apache.conf` file.\n#\n# `postinst` of the `apache2` package normally tries to enable the\n# `security` snippet in server context without checking if it is actually\n# there. The package provided `security.conf` snippet has been diverted\n# to `package-security.conf` and is not enabled to allow `debops.apache`\n# to configure and change security related settings.\n", "type": "divert"}}, "msg": "Destination directory /etc/apache2/conf-available does not exist"}
ypid commented 7 years ago

Wheezy is not explicitly listed in meta/main.yml yet and I have not tested/used the role with it. I don’t need wheezy support, if you do, feel free to open a PR. The version dependent config generation and other mechanisms the role provides should make this possible.

ypid commented 6 years ago

Closing because Long Term Support for Debian Wheezy ends at the end of May 2018. Ref: https://www.debian.org/releases/wheezy/