Permalink
Browse files

Merge "Add openstack bat template"

  • Loading branch information...
2 parents 00a9bb5 + f1821a6 commit 9f3f41e8276998c0ec32e1b3ebb20ae8cf812ee3 @frodenas frodenas committed with Gerrit Code Review Oct 29, 2012
Showing with 59 additions and 0 deletions.
  1. +59 −0 bat/templates/openstack.yml.erb
View
59 bat/templates/openstack.yml.erb
@@ -0,0 +1,59 @@
+---
+name: <%= properties.name || "bat" %>
+director_uuid: <%= properties.uuid %>
+
+release:
+ name: bat
+ version: <%= properties.release || "latest" %>
+
+compilation:
+ workers: 1
+ network: default
+ reuse_compilation_vms: true
+ cloud_properties:
+ instance_type: m1.small
+
+update:
+ canaries: <%= properties.canaries || 1 %>
+ canary_watch_time: 3000-90000
+ update_watch_time: 3000-90000
+ max_in_flight: <%= properties.max_in_flight || 1 %>
+ max_errors: 1
+
+networks:
+- name: default
+ type: dynamic
+ cloud_properties: {}
+- name: static
+ type: vip
+ cloud_properties: {}
+
+resource_pools:
+ - name: common
+ network: default
+ size: <%= properties.pool_size %>
+ stemcell:
+ name: <%= properties.stemcell.name %>
+ version: <%= properties.stemcell.version %>
+ cloud_properties:
+ instance_type: m1.small
+
+jobs:
+ - name: <%= properties.job || "batlight" %>
+ template: <%= properties.job || "batlight" %>
+ instances: <%= properties.jobs %>
+ resource_pool: common
+ <% if properties.persistent_disk %>
+ persistent_disk: <%= properties.persistent_disk %>
+ <% end %>
+ networks:
+ - name: default
+ default: [dns, gateway]
+ <% if properties.use_static_ip %>
+ - name: static
+ static_ips:
+ - <%= properties.static_ip %>
+ <% end %>
+
+properties:
+ mbus: <%= properties.mbus %>

0 comments on commit 9f3f41e

Please sign in to comment.