CivicSpleen / ambry

A comprehensive data package manager
BSD 2-Clause "Simplified" License
4 stars 5 forks source link

Configuration Directory, Instead of File #168

Closed ericbusboom closed 8 years ago

ericbusboom commented 8 years ago

Alter the configuration system to use a .ambry directory, with more complexity in the underlying structure.

There are several files associated with configuration, and will be more as the system develop. These files should be collected into a single configuration directory, rather that disconnected files.

The base configuration directory is .ambry for users or /etc/ambry/ for root.

.ambry
    config.yaml # Main config
    accounts.yaml # Account information
    remotes.yaml # Definitions of remotes
    docker.yaml # Descriptions of remote docker installations
    certs/ # Certificate files for docker and remotes. 
ericbusboom commented 8 years ago

@nmb10, this change will be committed to develop soon, so you'll need to move your config directories. For your accounts file, which should be in your home directory: $ mkdir ~/.ambry $ mv ~/.ambry-accounts.yaml ~/.ambry/accounts.yaml

For your config file, which probably should be in a virtual env:

$ mkdir ./.ambry
$ mv ./.ambry.yaml ./.ambry/config.yaml