Skip to content

Publish docs pr 2.x #2174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 138 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
c5d4613
Altering workflow in GitHub Actions for building wiki2pages files.
gregharvey Jan 3, 2025
c3a23d5
Merging devel.
gregharvey Jan 3, 2025
8476101
Attempting to set a hosts file for Ansible in CI.
gregharvey Jan 3, 2025
142a368
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
327db08
Trying to force Ansible host.
gregharvey Jan 3, 2025
b5d201a
Trying to force Ansible host.
gregharvey Jan 3, 2025
6d531c9
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
64530b1
Trying with an inventory file instead.
gregharvey Jan 3, 2025
d9067fb
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a8ba1c4
Running Ansible as the 'ce-dev' user.
gregharvey Jan 3, 2025
4fa8896
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
9d8b47c
Fixing path to playbook.
gregharvey Jan 3, 2025
b2527c6
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
c87bbd0
Disabling host key checking.
gregharvey Jan 3, 2025
1ec568f
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
5bd801e
Disabling host checking in SSH.
gregharvey Jan 3, 2025
5549a10
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
7f08219
Trying to use ce-dev user instead of root.
gregharvey Jan 3, 2025
7466bc3
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
f9e29fc
Fixing path to scripts.
gregharvey Jan 3, 2025
1226ca4
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
c120476
Adding some debug lines to check playbooks.
gregharvey Jan 3, 2025
acafa39
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
caa1b90
Fixing workspace volume mount point.
gregharvey Jan 3, 2025
cf524fd
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
6366701
Trying a whole new /build location.
gregharvey Jan 3, 2025
0eef216
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
15af1c3
Setting permissions on mounted disk.
gregharvey Jan 3, 2025
aca17d1
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a5f04de
Checking ce-dev dir contents.
gregharvey Jan 3, 2025
7ac35e3
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
6bc2055
Changing mount point to not destroy ce-dev files.
gregharvey Jan 3, 2025
3ce8fd5
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
c562607
Commenting permissions line.
gregharvey Jan 3, 2025
763bcf1
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
9502efe
Fixing playbook paths.
gregharvey Jan 3, 2025
52e2f26
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
88a7b12
Outputting hosts and SSH config for debug.
gregharvey Jan 3, 2025
1b83d48
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
084eaa3
Checking SSH settings.
gregharvey Jan 3, 2025
d069d96
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
53b00d7
Manually creating authorized_keys.
gregharvey Jan 3, 2025
2e7d1ab
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
4e02937
Fixing path to set-current.
gregharvey Jan 3, 2025
d4ac0e9
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
36c0aeb
Refactoring SSH set-up and looking at set-current script.
gregharvey Jan 3, 2025
8506c61
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
5c4d4eb
Trying to fix mount point.
gregharvey Jan 3, 2025
45b58be
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a16ec18
Updating paths to generated docs.
gregharvey Jan 3, 2025
9794ecb
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
5c83f82
Trying to pass in path to wiki2pages.
gregharvey Jan 3, 2025
bcc9939
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
a077a5f
Removing obsolete debug line.
gregharvey Jan 3, 2025
47fb34e
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
9ce237e
Correcting path to script.
gregharvey Jan 3, 2025
0f7d413
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
06c8b08
Changing path we execute from.
gregharvey Jan 3, 2025
d5f79ee
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 3, 2025
0f8be8b
Adding first pass at docs publish step.
gregharvey Jan 6, 2025
4660e07
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
cdb28c2
Repairing working dir paths.
gregharvey Jan 6, 2025
ef847a8
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
93751a4
Incorrect repo path.
gregharvey Jan 6, 2025
f9e702d
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
d8f3908
Removing most of the debug lines.
gregharvey Jan 6, 2025
e0ba0c6
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
932234e
Catching up devel. (#2163)
gregharvey Jan 6, 2025
8817473
Merge branch '2.x' into publish_docs
gregharvey Jan 6, 2025
4475d2c
Adding more debug to try to find where 1.x is coming from.
gregharvey Jan 6, 2025
15f8dc5
Merge branch 'devel-2.x' of github.com:codeenigma/ce-provision into p…
gregharvey Jan 6, 2025
c4323bd
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
c160c4a
Merge branch '2.x' of github.com:codeenigma/ce-provision into publish…
gregharvey Jan 6, 2025
ffa9d84
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
106eba2
Moving the hugo script check.
gregharvey Jan 6, 2025
f222906
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
034e9cc
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
6046249
More debug.
gregharvey Jan 6, 2025
fd3bd5c
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
eba6deb
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
45bdf53
Moving the config.toml debug line.
gregharvey Jan 6, 2025
0da09a8
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
3220cdc
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
ab4fb33
Checking the entire disk for 2.x.
gregharvey Jan 6, 2025
a0002e1
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
c771e74
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
2ca4c86
Trying a find instead of a grep.
gregharvey Jan 6, 2025
792b8af
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
31c8114
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
c0c4ecb
Trying to update ce-provision and ce-deploy.
gregharvey Jan 6, 2025
a40c2c9
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
67faf7e
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
1a3a477
Getting more debug info.
gregharvey Jan 6, 2025
93c3408
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
09ff288
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
3d28ca9
Adding --verbose to Ansible.
gregharvey Jan 6, 2025
e6720b4
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
c6790ab
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
552afee
Trying running Hugo directly.
gregharvey Jan 6, 2025
49f205a
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
cdc0a80
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
60c41d5
Changed the Hugo start script.
gregharvey Jan 6, 2025
d4756f7
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
f6d05ac
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
e6fe660
Trying just running 'hugo' in the right directory.
gregharvey Jan 6, 2025
44cfc48
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
15c8108
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
df6648f
Adding ce-deploy back in with option to not run Hugo.
gregharvey Jan 6, 2025
defd36a
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 6, 2025
5a111db
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 6, 2025
d93a1ce
Updating docs to make _Sidebar.md lose the starting slash.
gregharvey Jan 7, 2025
a263192
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 7, 2025
c6a098a
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 7, 2025
c103b43
Publish docs pr devel 2.x (#2165)
gregharvey Jan 7, 2025
eacd10b
Changing sidebar paths didn't fix Hugo.
gregharvey Jan 7, 2025
f472eb8
Merge branch 'devel-2.x' of github.com:codeenigma/ce-provision into p…
gregharvey Jan 7, 2025
8f29992
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 7, 2025
ff0978c
Merge branch '2.x' of github.com:codeenigma/ce-provision into publish…
gregharvey Jan 7, 2025
6927243
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 7, 2025
b7adb17
Merge branch '2.x' into publish_docs
gregharvey Jan 7, 2025
e0537aa
Re-removing opening slash to fix Hugo.
gregharvey Jan 7, 2025
45549ae
Merge branch 'publish_docs' into publish_docs-PR-devel-2.x
gregharvey Jan 7, 2025
7b78e1d
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 7, 2025
5ab3362
Merge remote-tracking branch 'origin/publish_docs-PR-devel-2.x' into …
gregharvey Jan 7, 2025
1a0c962
Fixing Sidebar merge issues.
gregharvey Jan 7, 2025
946442f
Making the publish docs CI work with 1.x and 2.x.
gregharvey Jan 7, 2025
dc19b05
Merge branch '2.x' of github.com:codeenigma/ce-provision into publish…
gregharvey Jan 7, 2025
25b6c40
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 7, 2025
d71d4b7
Merge branch '2.x' into publish_docs
gregharvey Jan 7, 2025
031254b
Only run when PRs are closed.
gregharvey Jan 7, 2025
8b87fe2
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 7, 2025
9bfb93f
Simplifying installer script.
gregharvey Jan 8, 2025
065b109
Separating script to build table of contents for Hugo and enhancing CI.
gregharvey Jan 8, 2025
c6eea38
Merge branch '2.x' of github.com:codeenigma/ce-provision into publish…
gregharvey Jan 8, 2025
af96e69
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 8, 2025
b640e62
Merge branch '2.x' into publish_docs
gregharvey Jan 8, 2025
5846900
Forgot to add and commit changes to docs.
gregharvey Jan 8, 2025
67c196f
Merge branch 'publish_docs' into publish_docs-PR-2.x
gregharvey Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/ce-provision-publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@ jobs:
- ${{ github.workspace }}:/home/controller

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}

# First build and publish the markdown docs
- name: Build the table of contents
run: /bin/sh contribute/toc.sh

# Configures global Git variables for committing
- name: Configure Git
run: |
/usr/bin/git config --global user.email "sysadm@codeenigma.com"
/usr/bin/git config --global user.name "Code Enigma CI"
/usr/bin/git config --global pull.rebase false

- name: Commit new table of contents back to the repo
run: |
/usr/bin/git add docs/.
/usr/bin/git commit -m "GitHub Actions - updating markdown docs - ${{ steps.date.outputs.date }}"
/usr/bin/git push

# Now build and publish the version of the docs
- name: Install wiki2pages
run: /usr/bin/su - ce-dev -c "/usr/bin/git clone https://github.com/codeenigma/wikis2pages.git /home/ce-dev/build/wiki2pages"

Expand Down Expand Up @@ -56,6 +78,7 @@ jobs:
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /home/ce-dev/ansible/bin/ansible-playbook -e 'wiki2pages_build_path=/home/ce-dev/build/wiki2pages' -i /home/ce-dev/ansible/bin/hosts /home/ce-dev/build/wiki2pages/ce-dev/ansible/provision.yml"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /bin/sh set-current.sh --project ce-provision-${{ github.event.pull_request.base.ref }} --no-ce-dev"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages && /home/ce-dev/ansible/bin/ansible-playbook -e 'wiki2pages_build_path=/home/ce-dev/build/wiki2pages launch_hugo_server=false' -i /home/ce-dev/ansible/bin/hosts /home/ce-dev/build/wiki2pages/ce-dev/ansible/deploy.yml"
/usr/bin/su - ce-dev -c "cd /home/ce-dev/build/wiki2pages/content/ce-provision-${{ github.event.pull_request.base.ref }} && /bin/sh contribute/toc_hugo.sh"

- name: Run Hugo
run: |
Expand Down
2 changes: 1 addition & 1 deletion contribute/toc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ parse_roles_toc(){
"# "*)
if [ "$WRITE" = "true" ]; then
TITLE=$(echo "$LINE" | cut -c 3-)
echo "$INDENT"" - [$TITLE]($RELATIVE)" >> "$TMP_SIDEBAR"
echo "$INDENT"" - [$TITLE](/$RELATIVE)" >> "$TMP_SIDEBAR"
WRITE="false"
fi
;;
Expand Down
140 changes: 140 additions & 0 deletions contribute/toc_hugo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
#!/bin/sh
# shellcheck disable=SC2094
# shellcheck disable=SC2129
IFS=$(printf '\n\t')
set -e
OWN_DIR=$(dirname "$0")
cd "$OWN_DIR" || exit 1
OWN_DIR=$(git rev-parse --show-toplevel)
cd "$OWN_DIR" || exit 1
OWN_DIR=$(pwd -P)

# @param
# $1 string filepath
cp_role_page(){
RELATIVE=$(realpath --relative-to="$OWN_DIR" "$(dirname "$1")")
if [ ! -d "$OWN_DIR/docs/$RELATIVE" ]; then
mkdir -p "$OWN_DIR/docs/$RELATIVE"
fi
cp "$1" "$OWN_DIR/docs/$RELATIVE.md"
}

# @param
# $1 string folder
cp_single_page(){
if [ ! -d "$OWN_DIR/docs/$1" ]; then
mkdir "$OWN_DIR/docs/$1"
fi
cp "$OWN_DIR/$1/README.md" "$OWN_DIR/docs/$1.md"
}

# @param
# $1 (string) filename
parse_role_variables(){
TMP_MD=$(mktemp)
WRITE=1
# Ensure we have a trailing line.
echo "" >> "$1"
while read -r LINE; do
case $LINE in
'<!--ROLEVARS-->')
echo "$LINE" >> "$TMP_MD"
generate_role_variables "$1"
WRITE=0
;;
'<!--ENDROLEVARS-->')
echo "$LINE" >> "$TMP_MD"
WRITE=1
;;
'<!--TOC-->')
echo "$LINE" >> "$TMP_MD"
WRITE=0
;;
'<!--ENDTOC-->')
echo "$LINE" >> "$TMP_MD"
WRITE=1
;;
*)
if [ $WRITE = 1 ]; then
echo "$LINE" >> "$TMP_MD"
fi
;;
esac
done < "$1"
printf '%s\n' "$(cat "$TMP_MD")" > "$1"
rm "$TMP_MD"
}

# @param
# $1 (string) filename
generate_role_variables(){
VAR_FILE="$(dirname "$1")/defaults/main.yml"
if [ -f "$VAR_FILE" ]; then
echo "## Default variables" >> "$TMP_MD"
echo '```yaml' >> "$TMP_MD"
cat "$VAR_FILE" >> "$TMP_MD"
echo "" >> "$TMP_MD"
echo '```' >> "$TMP_MD"
echo "" >> "$TMP_MD"
fi
}

generate_roles_toc(){
TMP_SIDEBAR=$(mktemp)
WRITE="true"
while read -r LINE; do
case $LINE in
" - [Roles](roles)")
echo "$LINE" >> "$TMP_SIDEBAR"
parse_roles_toc roles 2
WRITE="false"
;;
" -"*)
WRITE="true"
echo "$LINE" >> "$TMP_SIDEBAR"
;;
*)
if [ "$WRITE" = "true" ]; then
echo "$LINE" >> "$TMP_SIDEBAR"
fi
;;
esac
done < "$OWN_DIR/docs/_Sidebar.md"
mv "$TMP_SIDEBAR" "$OWN_DIR/docs/_Sidebar.md"
}

parse_roles_toc(){
ROLES=$(find "$OWN_DIR/$1" -mindepth 2 -maxdepth 2 -name "README.md" | sort)
for ROLE in $ROLES; do
WRITE="true"
INDENT=$(printf %$(($2 * 2))s)
RELATIVE=$(realpath --relative-to="$OWN_DIR" "$(dirname "$ROLE")")
while read -r LINE; do
case $LINE in
"# "*)
if [ "$WRITE" = "true" ]; then
TITLE=$(echo "$LINE" | cut -c 3-)
echo "$INDENT"" - [$TITLE]($RELATIVE)" >> "$TMP_SIDEBAR"
WRITE="false"
fi
;;
esac
done < "$ROLE"
parse_roles_toc "$RELATIVE" $(($2 + 1))
done
}

rm -rf "$OWN_DIR/docs/roles"
ROLE_PAGES=$(find "$OWN_DIR/roles" -name "README.md")
for ROLE_PAGE in $ROLE_PAGES; do
parse_role_variables "$ROLE_PAGE"
done
for ROLE_PAGE in $ROLE_PAGES; do
cp_role_page "$ROLE_PAGE"
done
generate_roles_toc


cp_single_page install
cp_single_page contribute
cp_single_page scripts
13 changes: 3 additions & 10 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ FIREWALL="true"
AWS_SUPPORT="false"
IS_LOCAL="false"
SERVER_HOSTNAME=$(hostname)
ANSIBLE_COMMAND=""

# Parse options.
parse_options "$@"
Expand Down Expand Up @@ -254,14 +253,8 @@ firewall_config:
- "443"
EOL

# Tell Ansible this is a Docker container
if [ "$IS_LOCAL" = "true" ]; then
ANSIBLE_COMMAND="ansible-playbook --extra-vars \"{is_local: $IS_LOCAL}\" /home/$CONTROLLER_USER/ce-provision/provision.yml"
else
ANSIBLE_COMMAND="ansible-playbook /home/$CONTROLLER_USER/ce-provision/provision.yml"
fi
# Configure ce-provision
/usr/bin/su - "$CONTROLLER_USER" -c "cd /home/$CONTROLLER_USER/ce-provision && /home/$CONTROLLER_USER/ce-python/bin/$ANSIBLE_COMMAND"
/usr/bin/su - "$CONTROLLER_USER" -c "cd /home/$CONTROLLER_USER/ce-provision && /home/$CONTROLLER_USER/ce-python/bin/ansible-playbook --extra-vars \"{is_local: $IS_LOCAL}\" /home/$CONTROLLER_USER/ce-provision/provision.yml"
/usr/bin/rm "/home/$CONTROLLER_USER/ce-provision/provision.yml"

# Install firewall
Expand All @@ -281,7 +274,7 @@ if [ "$FIREWALL" = "true" ]; then
ansible.builtin.import_role:
name: debian/firewall_config
EOL
/usr/bin/su - "$CONTROLLER_USER" -c "cd /home/$CONTROLLER_USER/ce-provision && /home/$CONTROLLER_USER/ce-python/bin/ansible-playbook /home/$CONTROLLER_USER/ce-provision/provision.yml"
/usr/bin/su - "$CONTROLLER_USER" -c "cd /home/$CONTROLLER_USER/ce-provision && /home/$CONTROLLER_USER/ce-python/bin/ansible-playbook --extra-vars \"{is_local: $IS_LOCAL}\" /home/$CONTROLLER_USER/ce-provision/provision.yml"
/usr/bin/echo "-------------------------------------------------"
else
/usr/bin/echo "-------------------------------------------------"
Expand Down Expand Up @@ -399,7 +392,7 @@ EOT
EOT
/usr/bin/echo "-------------------------------------------------"
fi
/usr/bin/su - "$CONTROLLER_USER" -c "cd /home/$CONTROLLER_USER/ce-provision && /home/$CONTROLLER_USER/ce-python/bin/ansible-playbook /home/$CONTROLLER_USER/ce-provision/provision.yml"
/usr/bin/su - "$CONTROLLER_USER" -c "cd /home/$CONTROLLER_USER/ce-provision && /home/$CONTROLLER_USER/ce-python/bin/ansible-playbook --extra-vars \"{is_local: $IS_LOCAL}\" /home/$CONTROLLER_USER/ce-provision/provision.yml"
/usr/bin/echo "-------------------------------------------------"
else
/usr/bin/echo "GitLab not requested. Skipping."
Expand Down
Loading