Skip to content

Commit

Permalink
Change system ACLS to load to database rather than read from disk
Browse files Browse the repository at this point in the history
  • Loading branch information
macropin committed Jun 27, 2024
1 parent a8d7a88 commit 43471cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ansible-bootstrap/templates/configure.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ load_project_acl() {
}

load_application_acl() {
# copy acl policies to where they can be accessed by rundeck
# Load application ACL policies to database
echo "> Loading ACL $(basename "${1}")"
install -o root -g rundeck --mode=0640 "${1}" /etc/rundeck/$(basename "${1}")
rd system acls create --file "${1}" --name=$(basename "${1}")
}

contains() {
Expand All @@ -96,7 +96,7 @@ if [ -d "${CONFIG_DIR}/projects" ]; then
fi

if [ -d "${CONFIG_DIR}/acls" ]; then
# Create application ALCS (always replace)
# Create application ACLS (always replace)
for ACL in $(find "${CONFIG_DIR}/acls" -maxdepth 1 -mindepth 1 -type f -name '*.aclpolicy'); do
load_application_acl "${ACL}"
done
Expand Down

0 comments on commit 43471cf

Please sign in to comment.