Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Configuration

smcclellan edited this page May 20, 2016 · 3 revisions

Razor reads its configuration from a YAML file. The location of that file can be set through the RAZOR_CONFIG environment variable. If that is not set, Razor looks for the file config.yaml in its top level directory (the one containing config.ru).

The settings that can be changed with this file are documented in the sample configuration file config.yaml.sample

These are the most important settings:

protect_new_nodes
Whether unknown nodes that boot to Razor server are considered eligible for installation (`false`) or already installed (`true`).
database_url
The location of the database, a URL of the form `jdbc:postgresql:DBNAME?user=USER&password=PASSWORD`. See the [Sequel documentation](http://sequel.rubyforge.org/rdoc/files/doc/opening_databases_rdoc.html) for more details.
repo_store_root
The location of the directory where Razor should store the contents of images imported via the `create-repo` command. It must point to a directory that is writable by the Razor server, and has enough space to store all the ISO content that will be imported.

The active configuration settings can be viewed via the config collection in the Razor API. This is visible in the razor-client via razor config.

Clone this wiki locally