Use CFEngine to orchestrate containers

11 views
Skip to first unread message

visquis

unread,
Aug 25, 2015, 8:01:30 PM8/25/15
to help-cfengine


How can we generate Docker containers with CFEngine ? I followed the specifyed in reference but it seems that CFEngine does not recongnize "guest_details" and "guest_state"

bundle agent service_children(name,state)
+{
+
+guest_environments:
+
+   parent.!cleanup::
+
+    "$(my.jobs)"
+        guest_details => stem_cell,## here
+        guest_state => "create"; ## here
+  
+   cleanup::
+
+    "$(my.jobs)" 
+        guest_details => stem_cell, ## here
+        guest_state => "delete"; ## here
+     
+  reports:
+
+    !cleanup:: 
+     "CONTAINERS running";
+    cleanup::
+     "CONTAINERS stoped";
+}

Reply all
Reply to author
Forward
0 new messages