add instance install bundle endpoint

add scaffolding for instance install_bundle endpoint

- add instance_install_bundle view (does not do anything yet)
- add `instance_install_bundle` related field to serializer
- add `/install_bundle` to instance URL
- `/install_bundle` only available for execution and hop node
- `/install_bundle` endpoint response contain a downloadable tgz with moc data

TODO: add actual data to the install bundle response

Signed-off-by: Hao Liu <haoli@redhat.com>
This commit is contained in:
TheRealHaoLiu
2022-07-18 11:10:59 -04:00
committed by Jeff Bradberry
parent 9b034ad574
commit 7956fc3c31
4 changed files with 58 additions and 1 deletions

View File

@@ -174,6 +174,7 @@ from awx.api.views.webhooks import WebhookKeyView, GithubWebhookReceiver, Gitlab
from awx.api.pagination import UnifiedJobEventPagination
from awx.main.utils import set_environ
from awx.api.views.instance_install_bundle import InstanceInstallBundle # noqa
logger = logging.getLogger('awx.api.views')