i have implemented this with saltstack if you're interested: https://github.com/yee379/salt-openstack/commit/4bdd8a74f8191cc9c52619d614cce288d7d31808