Create a new repository in the VCS and populate it with content for site customizations in a custom Configuration Framework Service (CFS) configuration layer.
crayvcs
user are set up.
See VCS Administrative User in
Version Control Service (VCS) for more information.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"
Clone the empty VCS repository.
ncn-mw# git clone https://api-gw-service-nmn.local/vcs/cray/NEW_REPO.git
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/* .
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
Retrieve the Git hash for the CFS layer definition.
ncn-mw# git rev-parse --verify HEAD