summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Reber <adrian@lisas.de>2015-12-17 18:11:51 +0000
committerAdrian Reber <adrian@lisas.de>2015-12-17 18:16:15 +0000
commit59c954e8ffeb4dc4fce77d278849c645d199022a (patch)
tree011b7acce1fd610a2b24130a29a9099f31ed6bc8
parentadc5e177b646af4a22aabb19e0cb9a84fd9c3061 (diff)
downloadansible-59c954e8ffeb4dc4fce77d278849c645d199022a.zip
ansible-59c954e8ffeb4dc4fce77d278849c645d199022a.tar.gz
ansible-59c954e8ffeb4dc4fce77d278849c645d199022a.tar.xz
First step to disable FTP in MirrorManager
As discussed in https://github.com/fedora-infra/mirrormanager2/issues/99 This is the first step to remove FTP from MirrorManager. With this change it is no longer possible to enter FTP URLs into MM. Signed-off-by: Adrian Reber <adrian@lisas.de>
-rw-r--r--roles/mirrormanager/frontend2/templates/mirrormanager2.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/mirrormanager/frontend2/templates/mirrormanager2.cfg b/roles/mirrormanager/frontend2/templates/mirrormanager2.cfg
index bcc3288..512224a 100644
--- a/roles/mirrormanager/frontend2/templates/mirrormanager2.cfg
+++ b/roles/mirrormanager/frontend2/templates/mirrormanager2.cfg
@@ -121,6 +121,13 @@ MM_COOKIE_NAME = 'MirrorManager'
# decide where to store log files.
MM_LOG_DIR = '/var/log/mirrormanager'
+# This is used to exclude certain protocols to be entered
+# for host category URLs at all.
+# The following is the default for Fedora to exclude FTP based
+# mirrors to be added. Removing this confguration option
+# or setting it to '' removes any protocol restrictions.
+MM_PROTOCOL_REGEX = '^(?!ftp)(.*)$'
+
# If not specified the application will rely on the root_url when sending
# emails, otherwise it will use this URL
# Default: ``None``.