Create and Populate a VCS Configuration Repository

Create a new repository in the VCS and populate it with content for site customizations in a custom Configuration Framework Service (CFS) configuration layer.

Prerequisites

Procedure

  1. Create the empty repository in VCS.

    Replace the CRAYVCS_PASSWORD value in the following command before running it.

    ncn-mw# curl -X POST https://api-gw-service-nmn.local/vcs/api/v1/org/cray/repos \
                -d '{"name": "NEW_REPO", "private": true}' -u crayvcs:CRAYVCS_PASSWORD \
                -H "Content-Type: application/json"
    
  2. Clone the empty VCS repository.

    ncn-mw# git clone https://api-gw-service-nmn.local/vcs/cray/NEW_REPO.git
    
  3. Change to the directory of the empty Git repository and populate it with content.

    ncn-mw# cd NEW_REPO
    ncn-mw# cp -a ~/user/EXAMPLE-config-management/*  .
    
  4. Add the new content, commit it, and push it to VCS.

    The following command will move the content to the master branch of the repository.

    ncn-mw# git add --all && git commit -m "Initial config" && git push
    
  5. Retrieve the Git hash for the CFS layer definition.

    ncn-mw# git rev-parse --verify HEAD