Skip to content

Commit

Permalink
fix: add $@ to scripts where needed (rackerlabs#614)
Browse files Browse the repository at this point in the history
* fix: add $@ to scripts where needed

This change updates the scripts to allow for user input where needed.

Signed-off-by: Kevin Carter <[email protected]>

* feat: add steps to setup-openstack.sh

Signed-off-by: Kevin Carter <[email protected]>

---------

Signed-off-by: Kevin Carter <[email protected]>
  • Loading branch information
cloudnull authored Dec 9, 2024
1 parent fa6ff73 commit c1db168
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
5 changes: 5 additions & 0 deletions bin/install-libvirt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=SC2124,SC2145,SC2294

# Directory to check for YAML files
CONFIG_DIR="/etc/genestack/helm-configs/libvirt"
Expand All @@ -21,7 +22,11 @@ if compgen -G "${CONFIG_DIR}/*.yaml" > /dev/null; then
done
fi

HELM_CMD+="${@}"

# Run the helm command
echo "Executing Helm command:"
echo "${HELM_CMD}"
eval "${HELM_CMD}"

popd || exit
3 changes: 3 additions & 0 deletions bin/install-memcached.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=SC2124,SC2145,SC2294

# Default parameter value
TARGET=${1:-base}
Expand All @@ -22,6 +23,8 @@ if compgen -G "${CONFIG_DIR}/*.yaml" > /dev/null; then
done
fi

HELM_CMD+="${@}"

# Run the helm command
echo "Executing Helm command:"
echo "${HELM_CMD}"
Expand Down
6 changes: 5 additions & 1 deletion bin/install-postgres-operator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=SC2124,SC2145,SC2294

# Directory to check for YAML files
CONFIG_DIR="/etc/genestack/helm-configs/postgres-operator"
Expand All @@ -22,8 +23,11 @@ if compgen -G "${CONFIG_DIR}/*.yaml" > /dev/null; then
done
fi

HELM_CMD+="${@}"

# Run the helm command
eval "${HELM_CMD}"
echo "Executing Helm command:"
echo "${HELM_CMD}"
eval "${HELM_CMD}"

popd || exit
2 changes: 1 addition & 1 deletion bin/install-skyline.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
kubectl --namespace openstack apply -k /etc/genestack/kustomize/skyline/overlay
kubectl --namespace openstack apply -k /etc/genestack/kustomize/skyline/overlay "$@"
12 changes: 12 additions & 0 deletions bin/setup-openstack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
#Deploy Keystone
/opt/genestack/bin/install-keystone.sh

# Deploy Barbican
/opt/genestack/bin/install-barbican.sh

# Deploy Glance
/opt/genestack/bin/install-glance.sh

# Deploy Heat
/opt/genestack/bin/install-heat.sh

# Deploy Magnum
/opt/genestack/bin/install-magnum.sh

# Deploy Cinder
/opt/genestack/bin/install-cinder.sh

Expand All @@ -25,3 +31,9 @@

# Deploy SkyLine
/opt/genestack/bin/install-skyline.sh

# Deploy Ceilometer
/opt/genestack/bin/install-ceilometer.sh

# Deploy Gnocchi
/opt/genestack/bin/install-gnocchi.sh

0 comments on commit c1db168

Please sign in to comment.