From ba9892941de84df2f1e548ee5b4b6b78c55c43c9 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Mon, 15 May 2023 12:57:41 -0400 Subject: [PATCH] relax login rate limiting when testing --- setup/so-functions | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index 86a56abd8..a0dbe2ffc 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -910,7 +910,7 @@ create_manager_pillars() { influxdb_pillar logrotate_pillar patch_pillar - + nginx_pillar } create_repo() { @@ -1395,6 +1395,19 @@ idstools_pillar() { touch $adv_idstools_pillar_file } +nginx_pillar() { + title "Creating the NGINX pillar" + [[ -z "$TESTING" ]] && return + + # When testing, set the login rate limiting to high values to avoid failing automated logins + printf '%s\n'\ + "nginx:"\ + " config:"\ + " throttle_login_burst: 9999"\ + " throttle_login_rate: 9999"\ + "" > "$nginx_pillar_file" +} + soc_pillar() { title "Creating the SOC pillar" touch $adv_soc_pillar_file