Шеф-повар и PostgreSql

834
htyagi

С помощью amazon, объявляющего службу postgresql в RDS, мы можем настроить chef-server (11) с базой данных amazon rds postgresql вместо использования базы данных по умолчанию, которая устанавливается с помощью установщика omnibus. Я прочитал, что мы можем достичь того же самого, настроив файл chef-server.rb и затем перенастроив chef-сервер, но не могу получить то, что нужно указать в файле chef-server.rb. Любая помощь будет оценена.

1

1 ответ на вопрос

0
Gleb M Borisov

Not sure that it's actual for you since question asked 5 months ago, but you need to disable local pgsql service:

postgresql['enable'] = false 

And set connection options:

postgresql['vip'] = '<IP ADDRESS or HOSTNAME of DB server>' postgresql['port'] = PGSQL_PORT postgresql['sql_user'] = '<USERNAME>' postgresql['sql_password'] = '<PASSWORD>' 

And finally run reconfiguration to generate new configuration files and restart necessary services:

chef-server-ctl reconfigure 

Don't forget to import DB dump to your RDS instance, I'm not sure that chef will create all the things in this case.

Похожие вопросы