Skip to content

Commit

Permalink
add injectors for aap
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-m-sullivan committed Dec 6, 2024
1 parent 76918e5 commit cffafd7
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/aap_eda/core/management/commands/create_initial_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,30 @@
"type": "boolean",
"secret": False,
},
{
"id": "request_timeout",
"label": ("Request Timeout"),
"type": "string",
"secret": False,
"default": "10",
"help_text": (
"Specify the timeout Ansible should use in requests to"
"the host. Defaults to 10s",
),
},
],
"required": ["host"],
}

AAP_INJECTORS = {
"extra_vars": {
"aap_hostname": "{{host}}",
"aap_username": "{{username}}",
"aap_password": "{{password}}",
"aap_token": "{{oauth_token}}",
"aap_request_timeout": "{{request_timeout}}",
"aap_validate_certs": "{{verify_ssl}}",
},
"env": {
"TOWER_HOST": "{{host}}",
"TOWER_USERNAME": "{{username}}",
Expand All @@ -311,7 +330,14 @@
"CONTROLLER_PASSWORD": "{{password}}",
"CONTROLLER_VERIFY_SSL": "{{verify_ssl}}",
"CONTROLLER_OAUTH_TOKEN": "{{oauth_token}}",
}
"CONTROLLER_REQUEST_TIMEOUT": "{{request_timeout}}",
"AAP_HOSTNAME": "{{host}}",
"AAP_USERNAME": "{{username}}",
"AAP_PASSWORD": "{{password}}",
"AAP_VALIDATE_CERTS": "{{verify_ssl}}",
"AAP_TOKEN": "{{oauth_token}}",
"AAP_REQUEST_TIMEOUT": "{{request_timeout}}",
},
}

VAULT_INPUTS = {
Expand Down

0 comments on commit cffafd7

Please sign in to comment.