summaryrefslogtreecommitdiffstats
path: root/laas-fog/pharoslaas/actions/workflows/deployment_workflow.yaml
blob: c32d60d8b6965c4422690348749f57d001f1e5bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
version: '2.0'
pharoslaas.deployment_workflow:
    description: The master workflow to provision, install, deploy hosts
    input:
        - host
        - installer
        - scenario
        - os
        - booking
    tasks:
        image_host:
            action: pharoslaas.fog_imageWorkflow host=<% $.host %> os=<% $.os %>
            on-success:
                - install_fuel: <% $.installer = 'Fuel' %>
                - install_joid: <% $.installer = 'Joid' %>
                - install_apex: <% $.installer = 'Apex' %>
                - install_compass: <% $.installer = 'Compass' %>
                - change_password: <% not $.installer in list('Fuel','Joid','Apex','Compass') %>

        install_fuel:
            action: pharoslaas.fuel_workflow host=<% $.host %> scenario=<% $.scenario %>
            on-success:
                - change_password

        install_joid:
            action: pharoslaas.joid_workflow host=<% $.host %> scenario=<% $.scenario %>
            on-success:
                - change_password

        install_apex:
            action: pharoslaas.apex_workflow host=<% $.host %> scenario=<% $.scenario %>
            on-success:
                - change_password

        install_compass:
            action: pharoslaas.compass_workflow host=<% $.host %> scenario=<% $.scenario %>
            on-success:
                - change_password

        change_password:
            action: pharoslaas.password_workflow host=<% $.host %>
            on-success:
                - make_vpn_user

        make_vpn_user:
            action: pharoslaas.vpn_make_user booking=<% $.booking %>