diff options
author | elijah <elijah@riseup.net> | 2016-03-04 15:54:26 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-03-04 15:54:26 -0800 |
commit | 40d2289f8e10625cd45fdccdf492b5fb6490e66d (patch) | |
tree | b06b8f1899972f9b49405b1429ed44ae3119ca7c /templates | |
parent | 53a4c75ae09feb6d89b3535886663356d9ef4287 (diff) |
keep couchdb admin.ini from changing on each puppet run
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin.ini.erb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/admin.ini.erb b/templates/admin.ini.erb new file mode 100644 index 0000000..479f8bf --- /dev/null +++ b/templates/admin.ini.erb @@ -0,0 +1,9 @@ +<%- require 'digest' -%> +[admins] +admin = <%= @admin_hash %> + +[couchdb] +<%- # uuid uniquely identifies this couchdb instance. if not set, couchdb will set a random one + # but we want a stable one so that this config file doesn't change all the time. + # Md5 of hostname and ipaddress seems reasonable, but it could be based on anything. -%> +uuid = <%= Digest::MD5.hexdigest(Facter.value("hostname") + Facter.value("ipaddress")) %> |