summaryrefslogtreecommitdiffstats
path: root/laas-fog/pharoslaas/actions/workflows/update_workflow.yaml
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2017-12-20 13:26:23 -0500
committerParker Berberian <pberberian@iol.unh.edu>2017-12-20 13:26:23 -0500
commitb8c13cecb4a8a4eff301c6cbc1ffa4d181aae410 (patch)
tree74a571598d5c7fc718f7cdf98cd3d1f0a5d6f49d /laas-fog/pharoslaas/actions/workflows/update_workflow.yaml
parent786079a1057edd45cd5b929b75d7d2f968d6e4e6 (diff)
Adds update workflow
JIRA: None Adds a workflow and code that installs the chosen operating system on a free host, updates it, and captures the new disk image. This ensures that when we provision a new host, it is relatively up to date. Change-Id: I553e4c8c1715add47ebfe7d853f884f242813ab2 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'laas-fog/pharoslaas/actions/workflows/update_workflow.yaml')
-rw-r--r--laas-fog/pharoslaas/actions/workflows/update_workflow.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/laas-fog/pharoslaas/actions/workflows/update_workflow.yaml b/laas-fog/pharoslaas/actions/workflows/update_workflow.yaml
new file mode 100644
index 0000000..132266f
--- /dev/null
+++ b/laas-fog/pharoslaas/actions/workflows/update_workflow.yaml
@@ -0,0 +1,24 @@
+---
+chain:
+
+ -
+ name: "imageHost"
+ ref: "pharoslaas.fog_imageWorkflow"
+ parameters:
+ image: "{{image}}"
+ os: "{{os}}"
+ host: "{{host}}"
+ on-success: "updateHost"
+
+ -
+ name: "updateHost"
+ ref: "pharoslaas.update"
+ parameters:
+ hosts: "{{host}}"
+ on-success: "captureHost"
+
+ -
+ name: "captureHost"
+ ref: "pharoslaas.fog_captureWorkflow"
+ parameters:
+ host: "{{host}}"