ceph-cookbook
ceph-cookbook copied to clipboard
Automated OSD HDD setup
There should be an optional attribute that allows you to specify that you want the osd's prepared automatically.
It should then allow you to specify a regex for the drives that should be automatically allocated (wholly) for OSD's. eg: [hvs]d[^a]
Based on this regex, the node's attributes should automatically be populated with the required structure as per the recipe:
"ceph": { "osd_devices": [ { "device": "/dev/sdb" }, { "device": "/dev/sdc" }, { "device": "/dev/sdd" }, { "device": "/dev/sde" }, { "device": "/dev/sdf" } ] }
This will be a good starting point - later it can be extended to allow automation for the way journaling is done and special attributes like dmcrypt.
Sounds like a good idea. It's very painful to write the JSON, and everything that aims at simplifying the process is very welcome.
This functionality should probably be best located in a policy wrapper cookbook. I'll work on describing how to do this in the documentation.