Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: melserngawy <[email protected]>
  • Loading branch information
serngawy authored and yrobla committed Feb 4, 2021
1 parent bc92348 commit 4bf835a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ztp-ran-manifests
This repository contain all the manifests to configure RAN clusters that used with the ACM manifest at https://github.com/redhat-ztp/ztp-acm-manifests
The purpose of this repository is to contain all the RAN manifests that is used with the ACM manifest at https://github.com/redhat-ztp/ztp-acm-manifests

# For external use with ACM manifest
- You will need to fork this repository and execute the [site_gen.sh](https://github.com/redhat-ztp/ztp-ran-manifests/blob/main/site_gen.sh) script in order to generate your cluster profile.

- The [site_gen.sh](https://github.com/redhat-ztp/ztp-ran-manifests/blob/main/site_gen.sh) script take 2 parameters with the following order to execute:
- The [site_gen.sh](https://github.com/redhat-ztp/ztp-ran-manifests/blob/main/site_gen.sh) script takes 2 parameters with the following order:
- Cluster_name (your cluster name)
- Note: the cluste name should be the same as the cluster name you used with ACM manifest to create the cluster profile.
- Note: the cluste name should match the cluster name you used with ACM manifest.
- Profile (which profile you want to apply to your cluster. It is either cu or du)
- Note: the cluste profile should be the same as the cluster profile you used with ACM manifest.
- Note: the cluste profile should match the cluster profile you used with ACM manifest.

- After executing the site_gen.sh script you will find a directory created under the manifest/sites/{with_YOUR_CLUSTER_NAME}.

Expand Down
8 changes: 4 additions & 4 deletions site_gen.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/usr/bin/env bash

CLUSTER_NAME=$1
profile=$2
PROFILE=$2

if [ $profile == "cu" ]; then
if [ $PROFILE == "cu" ]; then
cp -rf manifests/sites/sample-site-cu manifests/sites/${CLUSTER_NAME}
sed -i "s/sample-site-cu/$CLUSTER_NAME/g" manifests/sites/${CLUSTER_NAME}/*
elif [ $profile == "du" ]; then
elif [ $PROFILE == "du" ]; then
cp -rf manifests/sites/sample-site-du manifests/sites/${CLUSTER_NAME}
sed -i "s/sample-site-du/$CLUSTER_NAME/g" manifests/sites/${CLUSTER_NAME}/*
else
echo "Profile should be either cu or du. Profile=" $profile
echo "Profile should be either cu or du. Profile=" $PROFILE
exit 0
fi

Expand Down

0 comments on commit 4bf835a

Please sign in to comment.