diff options
| -rw-r--r-- | doc/forum/Adding_support_for_a_SQL_server.mdwn | 17 | ||||
| -rw-r--r-- | doc/forum/Adding_support_for_a_SQL_server/comment_1_6dc3fa35fb61bd53a5f5c88ea5bdbb45._comment | 19 |
2 files changed, 36 insertions, 0 deletions
diff --git a/doc/forum/Adding_support_for_a_SQL_server.mdwn b/doc/forum/Adding_support_for_a_SQL_server.mdwn new file mode 100644 index 00000000..00ec42ad --- /dev/null +++ b/doc/forum/Adding_support_for_a_SQL_server.mdwn @@ -0,0 +1,17 @@ +Hello, + +I would like to add support for MySQL/MariaDB and I have some questions about it. + +I suppose the nicest way to do it would be to use some haskell binding and to +connect directly to the server from propellor. However, this would add a +dependency to build it. Is it acceptable? + +Another solution is to use a command line client and parse its output, but the +SQL syntax is so strange that I fear this will be painful. + +Another question is about password generation as I will need many passwords, I +would like to generate them using a crypto hash of a secret combined with a +public part in the propellor config. Do you have a suggestion to compute this +hash? I think a dependency on a hash library is easier to accept. + +Thanks. diff --git a/doc/forum/Adding_support_for_a_SQL_server/comment_1_6dc3fa35fb61bd53a5f5c88ea5bdbb45._comment b/doc/forum/Adding_support_for_a_SQL_server/comment_1_6dc3fa35fb61bd53a5f5c88ea5bdbb45._comment new file mode 100644 index 00000000..5376b576 --- /dev/null +++ b/doc/forum/Adding_support_for_a_SQL_server/comment_1_6dc3fa35fb61bd53a5f5c88ea5bdbb45._comment @@ -0,0 +1,19 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2018-06-12T14:38:22Z" + content=""" +We want to avoid adding heavy dependencies to propellor since that makes +propellor more expensive to bootstrap and adds a point of failure. + +But, it should be easy enough to add dependencies to your own +~/.propellor/config.cabal and write your properties using them. It would +also be fine to have additional libraries of propellor properties extending +propellor. + +As for crypto hashes, it's certianly general enough to consider adding to +propellor, but it's also striking that propellor has mostly avoided needing +any hashes (except for some small uses of hashable and one place that +shells out to sha1). If there's a general purpose property that uses a +crypto hash, we could talk about adding it. +"""]] |
