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.(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"
(ncn-mw#
) Clone the empty VCS repository.
git clone https://api-gw-service-nmn.local/vcs/cray/NEW_REPO.git
(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/* .
(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
(ncn-mw#
) Retrieve the Git hash for the CFS layer definition.
git rev-parse --verify HEAD