1.4 KiB
Set up a Git repository
You need to create a Git repository to store and modify the required configuration files, as well as configure the repository to work with the Fuel Nailgun configuration service.
Note
Fuel can work with multiple Git repositories. However, limit one repository and one branch per an OpenStack environment.
To set up a Git repository:
Create a Git repository in any Git repository management system or web-based service, such as GitHub.
Add the public SSH key located in
.ssh/id_rsa.pub
to your Git repository.Create a repository object within Nailgun and register the repository with Nailgun:
fuel2 gitrepo create <ENV_ID> --name <NAME_OF_NAILGUN_OBJECT> \ --url <URL_TO_REPO> --ref <BRANCH_TO_GRAB_CONFIG_FROM> --key \ <PATH_TO_SSH_KEY>
Example:
fuel2 gitrepo create --env 1 --name oscnf1 --url \ git@github.com:dukov/oscnf.git --ref master --key .ssh/id_rsa
Create a repository structure similar to the one described in
repo-structure
by adding the required files in the repository and committing the changes.Optionally, configure the Git repository to track changes in your OpenStack environment in a separate branch:
fuel2 gitrepo get configs --env <ENV_ID>
You must have write permissions to the Git repository.