- Mar 18, 2019
-
-
Benjamin Bertrand authored
launch_awx_job function was updated to trigger an inventory update.
-
Benjamin Bertrand authored
A job running in AWX prevents an inventory sync (of the same inventory). This restricts AWX to run only one job at a time as the inventory is always updated on launch. To prevent this issue, the inventory is updated from AWX when needed. - The update is triggered on any model modification that is used in the inventory (AnsibleGroup, Cname, Domain, Host, Network, NetworkScope) - For Interface, the inventory sync is triggered by the trigger_core_services function as it depends on it - The inventory update job is put on the "high" queue so that it takes precedence over all other jobs. JIRA INFRA-887 #action In Progress
-
Benjamin Bertrand authored
Ensure that the trigger_core_services_update job is always processed before the other jobs (low queue). JIRA INFRA-887
-
Benjamin Bertrand authored
Add awx_resource field to the task table. The field is None for local tasks (like excel file creation). It's the awx resource used to launch the job otherwise. Currently job or workflow_job. JIRA INFRA-886 #action In Progress
-
Benjamin Bertrand authored
- vm_osversion is passed as extra variables to the create_vm job template - vm_cores/vm_memory/vm_disk_size are also passed as extra variables instead of saving them as host variables. Saving the variables in the host when submitting the form forces to update the inventory before to trigger the job to create the VM. This can be avoided using extra variables. Furthermore those variables don't need to be in the inventory, they can be retrieved as facts. JIRA INFRA-877
-
- Mar 07, 2019
-
-
Benjamin Bertrand authored
The domain used as key must be a string (and not a model). Regression from JIRA INFRA-870
-
Benjamin Bertrand authored
No need to pass interface/memory/cores to trigger_vm_creation JIRA INFRA-870
-
Benjamin Bertrand authored
Only vmname and domain are required for the ics-ans-deploy-on-proxmox playbook. All other variables are taken from the inventory. JIRA INFRA-870 #action In Progress
-
- Mar 05, 2019
-
-
Benjamin Bertrand authored
New resource argument can be passed to launch_job_template. It is optional and is set to "job" by default. Shall be set to "workflow_job" to run a workflow template. Note that passing the workflow name didn't work during my test. The id had to be used instead. JIRA INFRA-867 #action In Progress
-
- Jan 28, 2019
-
-
Benjamin Bertrand authored
After a VM or VIOC creation, a post install job can be triggered. The job to trigger is based on the domain and defined in the AWX_POST_INSTALL dictionary. Admin users have the option to skip this post job if required. The job is enqueued in RQ with a dependency on the creation job. So it's only triggered after successful completion of the first one. JIRA INFRA-769
-
- Nov 09, 2018
-
-
Benjamin Bertrand authored
- mac is now a column - the id of the input field changed from #mac_address to #mac JIRA INFRA-639
-
Benjamin Bertrand authored
dns parameter removed (retrieved dynamically by the playbook) JIRA INFRA-651 #action In Progress
-
- Sep 28, 2018
-
-
Benjamin Bertrand authored
Retrieving all items from the database takes some time. The task is thus handled by the RQ worker. We use ajax to periodically monitor the status of the job and redirect to the file when ready. A progress bar is displayed to let the user see the progress. The mechanism put in place could be re-used for other use cases. JIRA INFRA-545 #action In Progress
-
- Sep 21, 2018
-
-
Benjamin Bertrand authored
ztp_stack can be empty. We pass it as extra vars only if it's not. The survey of the AWX_ZTP_CONFIGURATION template shall be updated to set the ztp_stack parameter as not required. JIRA INFRA-547
-
- Aug 21, 2018
-
-
Benjamin Bertrand authored
New variable required to generate ZTP configuration. Note that we can only pass strings with extra_vars in AWX API (no list or dict). JIRA INFRA-458 #action In Progress
-
- Aug 08, 2018
-
-
Benjamin Bertrand authored
Using flask-login request_loader, we can validate jwt tokens. This allows to use the same decorators for the web UI (using cookies) and the API (using JWT) as well as the current_user local proxy.
-
- Jul 17, 2018
-
-
Benjamin Bertrand authored
JIRA INFRA-414
-
- Jul 09, 2018
-
-
Benjamin Bertrand authored
Use the before_flush hook to trigger the core services update. It's much nicer than having to call a method in several places. The core services update is triggered on creation/modification/deletion of an Interface. In the before_flush we can manipulate the session (add objects) but we shouldn't call commit. The db.session.commit() was removed from the launch_task method.
-
- Jul 06, 2018
-
-
- Jul 03, 2018
-
-
Benjamin Bertrand authored
Avoid calling the database several times. Several attributes can be updated in one call.
-
Benjamin Bertrand authored
Only save exceptions that occur before the AWX job was triggered. If the AWX job failed, we can refer to the logs on AWX.
-
- Jul 02, 2018
-
-
Benjamin Bertrand authored
-
Benjamin Bertrand authored
Table used to save the RQ background jobs JIRA INFRA-403
-
- May 23, 2018
-
-
Benjamin Bertrand authored
Both AWX_VM_CREATION_ENABLED and AWX_JOB_ENABLED shall be set to True to enable VM creation. An extra variable is used because the core services can be updated from csentry-test but VM creation shouldn't (for now)
-
Benjamin Bertrand authored
Allow to create a VM or Virtual IOC
-
- May 09, 2018
-
-
Benjamin Bertrand authored
AWX jobs should only be triggered on the production server (not from staging). At least until we get a full staging environment.
-
- Apr 27, 2018
-
-
Benjamin Bertrand authored
-