X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7e60563ccd6a241f05271f1b558a43f01e79dedc..61dbc4445159c9140b0744bf5526ce0f71f4f374:/doc/install/install-api-server.html.textile.liquid diff --git a/doc/install/install-api-server.html.textile.liquid b/doc/install/install-api-server.html.textile.liquid index 91e2c69892..b4019a418a 100644 --- a/doc/install/install-api-server.html.textile.liquid +++ b/doc/install/install-api-server.html.textile.liquid @@ -12,10 +12,6 @@ h3(#install_ruby_and_bundler). Install Ruby and Bundler {% include 'install_ruby_and_bundler' %} -h3(#install_postgres). Install PostgreSQL - -{% include 'install_postgres' %} - h2(#install_apiserver). Install API server and dependencies On a Debian-based system, install the following packages: @@ -36,37 +32,12 @@ On a Red Hat-based system, install the following packages: h2(#configure). Set up the database -Generate a new database password. Nobody ever needs to memorize it or type it, so we'll make a strong one: +Configure the API server to connect to your database by updating @/etc/arvados/api/database.yml@. Replace the @xxxxxxxx@ database password placeholder with the "password you generated during database setup":install-postgresql.html#api. Be sure to update the @production@ section. -
~$ ruby -e 'puts rand(2**128).to_s(36)'
-6gqa1vu492idd7yca9tfandj3
+
~$ editor /etc/arvados/api/database.yml
 
-Create a new database user. - - -
~$ sudo -u postgres createuser --encrypted -R -S --pwprompt arvados
-[sudo] password for you: yourpassword
-Enter password for new role: paste-password-you-generated
-Enter it again: paste-password-again
-
- -{% assign pg_hba_path = "/opt/rh/postgresql92/root/var/lib/pgsql/data/pg_hba.conf" %} -{% assign pg_service = "postgresql92-postgresql" %} -{% include 'install_redhat_postgres_auth' %} - -Create the database: - - -
~$ sudo -u postgres createdb arvados_production -T template0 -E UTF8 -O arvados
-
-
- -h2. Configure the database connection - -Edit @/etc/arvados/api/database.yml@ and replace the @xxxxxxxx@ database password placeholders with the PostgreSQL password you generated above. - h2(#configure_application). Configure the API server Edit @/etc/arvados/api/application.yml@ to configure the settings described in the following sections. The API server reads both @application.yml@ and its own @config/application.default.yml@ file. The settings in @application.yml@ take precedence over the defaults that are defined in @config/application.default.yml@. The @config/application.yml.example@ file is not read by the API server and is provided as a starting template only.