Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Move spamhaus to postgresql #13

Merged
merged 9 commits into from
Oct 4, 2017

Conversation

HugoDelval
Copy link

This commit:

  • Fix some small edge case bugs (when the DB is empty)
  • Re-word some sentences / fix some typos
  • Starts the migration from MongoDB to PostreSQL

HugoDelval added 2 commits September 25, 2017 17:10
Also change shebang from /bin/sh -> /bin/bash and improve Readme
@HugoDelval HugoDelval force-pushed the move-spamhaus-to-postgresql branch 3 times, most recently from 0e19ac8 to 203838e Compare September 26, 2017 15:57
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 63.711% when pulling 246b204 on HugoDelval:move-spamhaus-to-postgresql into 3c4a908 on ovh:devel.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0004%) to 63.589% when pulling d366a04 on HugoDelval:move-spamhaus-to-postgresql into 3c4a908 on ovh:devel.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 63.697% when pulling 2ddc621 on HugoDelval:move-spamhaus-to-postgresql into 3c4a908 on ovh:devel.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 63.737% when pulling 67d7802 on HugoDelval:move-spamhaus-to-postgresql into 3c4a908 on ovh:devel.

README.md Outdated
@@ -73,7 +79,7 @@ To setup this little tool, you'll need:
shell scripts)
* Python 2.7+
* Packages `python-dev` and `python-pip`
* A MongoDB database (2.6.x or greater with TLS support*)
* A PostgreSQL database (2.6.x or greater with TLS support*)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MongoDB is still required, isn't it?
Psql version should also be changed (9.2+)

README.md Outdated
* `MONGO_DB`: name of the MongoDB database
* `MONGO_USER`: MongoDB user
* `MONGO_PASSWORD`: MongoDB password
* `DB_HOST`: ip or domain of your PostgreSQL DB host
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about Mongo for the FBL?

@@ -34,7 +34,7 @@ class StorageServiceBase(object):
"""
Interface defining a storage service used to store documents.
For example, an implementation might store those data in OpenStack
Swift, MongoDB, RDBMS or filesystem.
Swift, a DB, RDBMS or filesystem.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • MongoDB

settings.MONGODB['host'],
settings.MONGODB['port'],
settings.MONGODB['db']
settings.DB['user'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DB -> MONGO_DB is clearer don't you think?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 63.737% when pulling 0d7b33e on HugoDelval:move-spamhaus-to-postgresql into 3c4a908 on ovh:devel.

@PandiPanda69 PandiPanda69 merged commit e6e019e into ovh:devel Oct 4, 2017
@PandiPanda69
Copy link
Member

Thank you for the PR ! 👍

@HugoDelval HugoDelval deleted the move-spamhaus-to-postgresql branch October 4, 2017 14:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants