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. (ncn-mw#) Create the empty repository in VCS.

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

    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. (ncn-mw#) Clone the empty VCS repository.

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

    cd NEW_REPO
    cp -a ~/user/EXAMPLE-config-management/*  .
    
  4. (ncn-mw#) 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.

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

    git rev-parse --verify HEAD