Commit 72f10b12 authored by Jose Castro Leon's avatar Jose Castro Leon

Simplify project creation

parent 5cdcfe66
Pipeline #1183334 passed with stage
in 5 minutes and 8 seconds
......@@ -28,36 +28,20 @@ workflows:
name: <% $.name %>
domain: default
description: <% $.description %>
enabled: false
enabled: true
owner: <% $.owner %>
publish:
project_id: <% task(identity).result.id %>
on-success:
- service_initialize_pre
- service_initialize
service_initialize_pre:
service_initialize:
workflow: service_initialize.base
input:
id: <% $.project_id %>
on-success:
- enable_project: <% not ('Personal' in $.name) %>
- finalize_project_creation: <% 'Personal' in $.name %>
enable_project:
action: keystone.projects_update
input:
project: <% $.id %>
enabled: true
on-success:
- service_initialize_post
service_initialize_post:
workflow: service_initialize.post
input:
id: <% $.project_id %>
on-success:
- finalize_project_creation
finalize_project_creation:
action: keystone.projects_update
input:
......
......@@ -18,17 +18,6 @@ workflows:
workbook_name: service_initialize
id: <% $.id %>
post:
description: Some services need the project to be enabled to perform the initialization
type: direct
input:
- id
tasks:
update_s3_quota:
workflow: s3
input:
id: <% $.id %>
nova:
description: Initializes a project on the compute service and sets default quotas
type: direct
......@@ -289,7 +278,23 @@ workflows:
type: direct
input:
- id
- region
tasks:
check_project_type:
action: keystone.projects_get
input:
project: <% $.id %>
on-success:
- initiate_sync: <% not ('Personal' in task(check_project_type).result.name) %>
initiate_sync:
action: std.noop
on-success:
- retrieve_access_key
- retrieve_secret_key
- retrieve_ssh_key
- get_member_role_id
retrieve_access_key:
workflow: secret_retrieve
input:
......@@ -352,6 +357,7 @@ workflows:
max_buckets: 1
rgw_access: <% $.access_key %>
rgw_secret: <% $.secret_key %>
action_region: <% $.region %>
on-success:
- update_s3_quota
......@@ -371,3 +377,4 @@ workflows:
enabled: true
rgw_access: <% $.access_key %>
rgw_secret: <% $.secret_key %>
action_region: <% $.region %>
......@@ -75,6 +75,13 @@ workflows:
type: workflowv2
id: <% $.id %>
s3:
workflow: launch_per_region
input:
name: "<% $.workbook_name %>.s3"
type: object-store
id: <% $.id %>
service_dependency_per_region:
type: direct
input:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment