Set up a Git repository

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:

  1. Create a Git repository in any Git repository management system or web-based service, such as GitHub.

  2. Add the public SSH key located in .ssh/id_rsa.pub to your Git repository.

  3. 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
    
  4. Create a repository structure similar to the one described in Git repository structure by adding the required files in the repository and committing the changes.

  5. 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.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

Contents