diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ca36d1c1..da390d5d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +18.05.2015 + +* Added Registrant database example file: config/database-example-registrant.yml + 16.05.2015 * Security config update. Please replace all Location and RedirectMatch diff --git a/config/database-example-development.yml b/config/database-example-development.yml new file mode 100644 index 000000000..6cfce0d79 --- /dev/null +++ b/config/database-example-development.yml @@ -0,0 +1,23 @@ +default: &default + host: localhost + adapter: postgresql + encoding: unicode + pool: 5 + username: registry + password: registry_pwd + +development: + <<: *default + database: registry_development + +whois_development: + <<: *default + database: registry_whois_development + +api_log_development: + <<: *default + database: registry_api_log_development + +registrant_write_development: + <<: *default + database: registry_development diff --git a/config/database-example-registrant.yml b/config/database-example-registrant.yml new file mode 100644 index 000000000..693c25115 --- /dev/null +++ b/config/database-example-registrant.yml @@ -0,0 +1,52 @@ +# +# Registrant config +# + +# Registrant should: +# * only read registry mirror database. +# * only write to registry table 'registrant_verification' + +default: &default + host: localhost + adapter: postgresql + encoding: unicode + pool: 5 + username: registry + password: registry_pwd + +# +# Staging config for Registrant +# + +staging: + <<: *default + database: registry_staging # registry staging mirror + host: localhost + username: registrant_read_only + password: registrant_read_only_pwd + +registrant_write_staging: + <<: *default + database: registry_development # registry real database + host: localhost + username: registrant_write # user should have write access only to registrant_verifications table + password: registrant_write_pwd + + +# +# Production config for Registrant +# + +production: + <<: *default + database: registry_production # registry production mirror database name + host: localhost # registry production mirror location + username: registrant_read_only + password: registrant_read_only_pwd + +registrant_write_production: + <<: *default + database: registry_production # registry production database name + host: localhost # registry database location + username: registrant_write # user should have write access only to registrant_verifications table + password: registrant_write_pwd diff --git a/config/database-example.yml b/config/database-example.yml index a38f6001f..8def2a36f 100644 --- a/config/database-example.yml +++ b/config/database-example.yml @@ -1,3 +1,8 @@ +# +# EPP, REPP, Admin and Registrar config +# +# Registrant example is at database-example-registrant.yml file + default: &default host: localhost adapter: postgresql @@ -6,45 +11,9 @@ default: &default username: registry password: registry_pwd - -development: - <<: *default - database: registry_development - -whois_development: - <<: *default - database: registry_whois_development - -api_log_development: - <<: *default - database: registry_api_log_development - - -test: - <<: *default - database: registry_test - -whois_test: - <<: *default - database: registry_whois_test - -api_log_test: - <<: *default - database: registry_api_log_test - - -alpha: - <<: *default - database: registry_alpha - -whois_alpha: - <<: *default - database: registry_whois_alpha - -api_log_alpha: - <<: *default - database: registry_api_log_alpha - +# +# Staging config For EPP, REPP, Admin, Registrar +# staging: <<: *default @@ -58,7 +27,9 @@ api_log_staging: <<: *default database: registry_api_log_staging - +# +# Production config For EPP, REPP, Admin, Registrar +# production: <<: *default database: registry_production diff --git a/config/database-robot.yml b/config/database-robot.yml index b38a048a2..0ee3ab0e1 100644 --- a/config/database-robot.yml +++ b/config/database-robot.yml @@ -17,3 +17,7 @@ whois_test: api_log_test: <<: *default database: registry_api_log_test + +registrant_write_test: + <<: *default + database: registry_test