Skip to content

Commit

Permalink
Merge "Add openstack bat template"
Browse files Browse the repository at this point in the history
  • Loading branch information
frodenas authored and Gerrit Code Review committed Oct 29, 2012
2 parents 00a9bb5 + f1821a6 commit 9f3f41e
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions 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.