mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 14:16:52 +02:00
feat: Add 2martens realm
This commit is contained in:
@@ -9,7 +9,7 @@ api_client = ApiClient(api_url=ApiClient.API_LIVE_URL, debug_mode=True)
|
||||
login_result = api_client.login(username, password)
|
||||
|
||||
if login_result['code'] == 1000:
|
||||
record_result = api_client.call_api(api_method='nameserver.info', method_params={'domain': domain})
|
||||
record_result = api_client.call_api(api_method='nameserver.list')
|
||||
|
||||
if record_result['code'] == 1000:
|
||||
records = record_result['resData']['record']
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
resource "keycloak_realm" "2martens_realm" {
|
||||
realm = "2martens"
|
||||
enabled = true
|
||||
|
||||
display_name = "2martens Applications"
|
||||
display_name_html = "<div class=\"kc-logo-text\"><span>2martens</span></div>"
|
||||
|
||||
login_theme = "keycloak.v2"
|
||||
account_theme = "keycloak.v3"
|
||||
admin_theme = "keycloak.v2"
|
||||
email_theme = "keycloak"
|
||||
|
||||
# Security settings
|
||||
password_policy = "upperCase(1) and length(12) and forceExpiredPasswordChange(365) and notUsername"
|
||||
|
||||
# Brute force protection
|
||||
security_defenses {
|
||||
brute_force_detection {
|
||||
max_login_failures = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user