bbg-cookbooks / razor

Chef cookbook to install and manage Razor. An LWRP is provided to manage OS and micro kernel images.
http://bbg-cookbooks.github.io/razor
14 stars 13 forks source link

Support :postgres Persist Plugin #1

Closed fnichol closed 11 years ago

fnichol commented 11 years ago

Seems like the way to accomplish this is by mirroring the attributes in the updated conf/razor_server.conf file. Currently, my proposal is to add the following attributes:

node.default['razor']['persist_mode'] = "mongo" # could also support `"postgres"`
node.default['razor']['persist_host'] = "127.0.0.1"
node.default['razor']['persist_port'] = 27017
node.default['razor']['persist_timeout'] = 10

The :persist_mode attribute logically conflicts with the existing :mongodb_address attribute, so it should be dropped or at least deprecated with a warning log message and note in the README.