bflad/chef-stash

Setting LDAP configurations

cstewart87 opened this issue · 3 comments

Are LDAP configurations something that can be handled by Chef? I'm having troubles determining how those are persisted. Is that information in the database, or in a configuration file located on the server?

I'm fairly confident that its stored in the database. How deep are you looking to manage the configuration? Just the server/attribute properties or users/permissions as well? Let me poke around the database to see how difficult either would be.

I'd imagine they can set in here:

mysql> use stash;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from app_property;
+---------------+----------------------------------------------+
| prop_key      | prop_value                                   |
+---------------+----------------------------------------------+
| instance.home | /var/atlassian/application-data/stash/shared |
| instance.name | Stash                                        |
| server.id     | XXXX-XXXX-XXXX-XXXX                          |
+---------------+----------------------------------------------+
3 rows in set (0.00 sec)

It's not pretty, but theoretically it would be possible to do something like this: https://github.com/bflad/chef-cacti/blob/master/recipes/database.rb#L60-L90

Hopefully someone's come up with a better way to ensure a database value is updated for multiple databases.

@cstewart87 any luck diving into this more?