Skip to content

Commit

Permalink
Merge pull request #35 from tuxmea/idempotent_admin_api
Browse files Browse the repository at this point in the history
Make setting for admin-api idempotent
  • Loading branch information
tuxmea authored Dec 14, 2023
2 parents e3f96d8 + 2022a7d commit ab9e883
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
#
if [[ "$PUPPETSERVER_ENABLE_ENV_CACHE_DEL_API" == true ]]; then
/opt/puppetlabs/puppet/bin/ruby /add_cache_del_api_auth_rules.rb
if [ $(grep 'puppet-admin-api' /etc/puppetlabs/puppetserver/conf.d/auth.conf) ]; then
echo "Admin API already set"
else
/opt/puppetlabs/puppet/bin/ruby /add_cache_del_api_auth_rules.rb
fi
fi

0 comments on commit ab9e883

Please sign in to comment.