Skip to content
Snippets Groups Projects
Unverified Commit 6f5eb808 authored by Varac's avatar Varac
Browse files

Use generic script to install optional apps

parent 4451a322
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ include:
- changes:
- flux2/apps/$APP/*.yaml
- flux2/cluster/optional/$APP/*.yaml
- install/install-${APP}.sh
- install/install-app.sh
- test/taiko/*
- if: '$TRIGGER_JOBS =~ /enable-nextcloud/'
- if: '$CI_COMMIT_MESSAGE =~ /TRIGGER_JOBS=.*enable-nextcloud/'
......@@ -116,7 +116,7 @@ include:
- changes:
- flux2/apps/$APP/*.yaml
- flux2/cluster/optional/$APP/*.yaml
- install/install-${APP}.sh
- install/install-app.sh
- test/taiko/*
- if: '$TRIGGER_JOBS =~ /enable-rocketchat/'
- if: '$CI_COMMIT_MESSAGE =~ /TRIGGER_JOBS=.*enable-rocketchat/'
......@@ -138,7 +138,7 @@ include:
- flux2/apps/$APP/*.yaml
- flux2/cluster/optional/$APP/*.yaml
- flux2/infrastructure/sources/wordpress.yaml
- install/install-${APP}.sh
- install/install-app.sh
- test/taiko/*
- if: '$TRIGGER_JOBS =~ /enable-wordpress/'
- if: '$CI_COMMIT_MESSAGE =~ /TRIGGER_JOBS=.*enable-wordpress/'
......@@ -434,7 +434,7 @@ single-sign-on-helm-release:
- *debug_information
# Add optional override values we need for the CI pipeline only
- '[ -f ./install/overrides/oas-${APP}-override.yaml ] && kubectl apply -n oas-apps -f ./install/overrides/oas-${APP}-override.yaml'
- bash ./install/install-${APP}.sh
- bash ./install/install-app.sh ${APP}
extends:
- .ssh_setup
interruptible: true
......
......@@ -352,7 +352,7 @@ directory **on your provisioning machine**. Don't forget to replace
# This inserts the configuration from .flux.env into your cluster as a "secret"
kubectl apply -k $CLUSTER_DIR
After you have executed that code, your terminal should show:
After you have executed that code, your terminal should show:
.. code:: bash
......@@ -372,10 +372,10 @@ After the script completes, you can install applications by running the other
installation scripts in the ``install`` folder. At the moment, we have scripts
to install:
- Nextcloud and Onlyoffice with ``install-nextcloud.sh``
- Rocket.Chat with ``install-rocketchat.sh``
- WordPress with ``install-wordpress.sh``
- Velero with ``install-velero.sh`` (only if you have configured it in
- Nextcloud and Onlyoffice with ``install-app.sh nextcloud``
- Rocket.Chat with ``install-app.sh rocketchat``
- WordPress with ``install-app.sh wordpress``
- Velero with ``install-app.sh velero`` (only if you have configured it in
:ref:`backups-with-velero`).
When the installation scripts complete, the application installation may still
......
......@@ -2,14 +2,17 @@
set -euo pipefail
. $(dirname "$0")/flux-version-check.sh
app=$1
# shellcheck disable=SC1090
. "$(dirname "$0")/flux-version-check.sh"
# This kustomization's only purpose is to add the kustomization that is in the
# flxu2/cluster/optional/nextcloud folder. After this kustomization is applied
# an `add-nextcloud` kustomization will be present on the cluster, as well as a
# `nextcloud` kustomization that adds the actual app
flux create kustomization add-nextcloud \
# flxu2/cluster/optional/$app folder. After this kustomization is applied
# an `add-$app` kustomization will be present on the cluster, as well as a
# `$app` kustomization that adds the actual app
flux create kustomization "add-${app}" \
--source=GitRepository/openappstack \
--path="./flux2/cluster/optional/nextcloud" \
--path="./flux2/cluster/optional/${app}" \
--prune=true \
--interval=1h
#!/usr/bin/env bash
set -euo pipefail
. $(dirname "$0")/flux-version-check.sh
# This kustomization's only purpose is to add the kustomization that is in the
# flxu2/cluster/optional/rocketchat folder. After this kustomization is applied
# an `add-rocketchat` kustomization will be present on the cluster, as well as a
# `rocketchat` kustomization that adds the actual app
flux create kustomization add-rocketchat \
--source=GitRepository/openappstack \
--path="./flux2/cluster/optional/rocketchat" \
--prune=true \
--interval=1h
#!/usr/bin/env bash
set -euo pipefail
. $(dirname "$0")/flux-version-check.sh
# This kustomization's only purpose is to add the kustomization that is in the
# flxu2/cluster/optional/velero folder. After this kustomization is applied
# an `add-velero` kustomization will be present on the cluster, as well as a
# `velero` kustomization that adds the actual app
flux create kustomization add-velero \
--source=GitRepository/openappstack \
--path="./flux2/cluster/optional/velero" \
--prune=true \
--interval=1h
#!/usr/bin/env bash
set -euo pipefail
. $(dirname "$0")/flux-version-check.sh
# This kustomization's only purpose is to add the kustomization that is in the
# flxu2/cluster/optional/wordpress folder. After this kustomization is applied
# an `add-wordpress` kustomization will be present on the cluster, as well as a
# `wordpress` kustomization that adds the actual app
flux create kustomization add-wordpress \
--source=GitRepository/openappstack \
--path="./flux2/cluster/optional/wordpress" \
--prune=true \
--interval=1h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment