Fixes the idf and pdf templates so that we can deploy opnfv
[pharos-tools.git] / laas-fog / pharoslaas / actions / workflows / deployment_workflow.yaml
1 ---
2 version: '2.0'
3 pharoslaas.deployment_workflow:
4     description: The master workflow to provision, install, deploy hosts
5     input:
6         - host
7         - installer
8         - scenario
9         - os
10         - booking
11     tasks:
12         image_host:
13             action: pharoslaas.fog_imageWorkflow host=<% $.host %> os=<% $.os %>
14             on-success:
15                 - install_fuel: <% $.installer = 'Fuel' %>
16                 - install_joid: <% $.installer = 'Joid' %>
17                 - install_apex: <% $.installer = 'Apex' %>
18                 - install_compass: <% $.installer = 'Compass' %>
19                 - change_password: <% not $.installer in list('Fuel','Joid','Apex','Compass') %>
20
21         install_fuel:
22             action: pharoslaas.fuel_workflow host=<% $.host %> scenario=<% $.scenario %>
23             on-success:
24                 - change_password
25
26         install_joid:
27             action: pharoslaas.joid_workflow host=<% $.host %> scenario=<% $.scenario %>
28             on-success:
29                 - change_password
30
31         install_apex:
32             action: pharoslaas.apex_workflow host=<% $.host %> scenario=<% $.scenario %>
33             on-success:
34                 - change_password
35
36         install_compass:
37             action: pharoslaas.compass_workflow host=<% $.host %> scenario=<% $.scenario %>
38             on-success:
39                 - change_password
40
41         change_password:
42             action: pharoslaas.password_workflow host=<% $.host %>
43             on-success:
44                 - make_vpn_user
45
46         make_vpn_user:
47             action: pharoslaas.vpn_make_user booking=<% $.booking %>