Fuel IaC: Git repository management commands

Fuel IaC: Git repository management commands

Caution

The Fuel command-line interface has been updated. Although old fuel commands are still available, we recommend that you use the new fuel2 commands instead. See the Fuel CLI commands comparison matrix.

The following table describes the usage of the fuel2 gitrepo command available in the Fuel CLI. This command is available after you install the Fuel Infrastructure-as-Code extension. For more information, see: Modify configurations from a Git repository.

Repository management commands
Description Command
Associate an OpenStack environment with a Git repository.

fuel gitrepo create [-h] --env <ENV_ID> --name <REPO_NAME> --url --ref <REF> [--key <KEY>]

Example:

fuel2 gitrepo create --env 1 --name test --url \
git@github.com:user/test.git --ref master --key .ssh/id_rsa
  • --env - an OpenStack environment ID.
  • --name - the name of the Git repository. It will be used as a directory name for the repository.
  • --url - URL to the Git repository. For example, git@github.com:user/repo.git.
  • ref - a Git reference, such as a branch or Gerrit refspec.
  • key - a path to the private SSH key.
Download configuration files from an OpenStack environment and upload them to the configured Git repository.

fuel2 gitrepo get configs [-h] [--env <ENV_ID>] [--key_path <PATH>] [--repo_dir <REPO_DIR>]

  • --env - an OpenStack environment ID.
  • --key_path - a path to the private SSH key file on the selected node.
  • --repo_dir - a directory in the Git repository to upload the files.
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