-
Notifications
You must be signed in to change notification settings - Fork 32
/
crowbar.yml
160 lines (150 loc) · 5.64 KB
/
crowbar.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# Copyright 2011, Dell
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Author: RobHirschfeld
#
# This file directs the installation of the barclamp by the Crowbar Framework
# The major compoents are
# barclamp: detalis about the barclamp
# crowbar: installation instructions
# nav: (optional) injects items into the Crowbar UI menu
# debs/rpms/gems: components needs by the barclamp
barclamp:
name: ha_service
display: Ha service
description: A way to maximize awesomeness for Ha service
version: 0
# Requires allows you to declare that this barclamp relies on
# another barclamp to provide some of its functionality.
# All barclamps implicitly rely on the crowbar barclamp.
#requires:
# - another-barclamp # rely on a single other barclamp
# - @barclamp-group # rely on another group of barclamps.
# Member allows you to declare that this barclamp is a member
# of a group of related barclamp. A barclamp can be a member of
# muliple groups, and a group name can be used instead of a barclamp
# in a requires: clause by prefixing it with an @ sign.
member:
- barclamp-group
- another-barclamp-group
# Os_support allows you to declare that this barclamp only supports
# specific operating systems. If you don't have an os_support
# section, Crowbar will assume the barclamp works on all the operating
# systems it supports.
os_support:
- ubuntu-10.10
crowbar:
layout: 1
order: 1000
nav:
add:
ha_service: barclamp_modules_path(:id=>'ha_service')
# debs, gems, rpms and extra_files allow you declare the OS packages,
# gems, and raw files that this barclamp needs.
# debs allows you to declare extra repositories to pull packages from
# and delare that packages that you need for systems that use Debian-style
# packaging.
debs:
# repos allows you to add an apt repository that the build system
# should pull packages from. Each entry is formatted in the standard
# sources.list format.
repos:
# pull from internet:
# - deb http://www.rabbitmq.com/debian/ testing main
# ppas allows you to declare Ubuntu personal package archives that
# the build should try to pull from.
ppas:
- ppa_username/ppa_name
# pkgs is a list of extra packages that the build system will try to pull
# and cache on the crowbar iso image. You only have to list top-level packages
# here -- if apt-get install gets all the dependencies, you do not need to list
# them here.
pkgs:
- libcluster-glue
- libnet1
- libopenhpi2
- libopenipmi0
- cluster-glue
- cluster-agents
- libcorosync4
- corosync
- libesmtp5
- libheartbeat2
- libxslt1.1
- openhpid
- pacemaker
- haveged
- drbd8-utils
- xfsprogs
- xfsdump
- xfslibs-dev
# put your packages here
# - mod_fcgid
# raw_pkgs is a list of URLs to .deb packages that the build system will try to
# download and add to the iso. It does not do dependency checking, and it uses
# curl to handle the actual download process.
raw_pkgs:
- http://your_site/your_special_deb.deb
# rpms does the same thing that debs does, except for RPM-based systems.
rpms:
repos:
# rpm repos allow you to declare that you want to use a repo that
# is set up using an RPM. EPEL is a good example of such a repo.
- rpm http://repo_addr/repo.rpm
# bare allows you to declare that you want to use a repository that
# does not allow easy installation via rpm.
# It has a slightly more complex declaration:
# bare repo_name numeric_repo_priority repo_url
- bare epel5-nagios3 10 http://repos.fedorapeople.org/repos/peter/nagios3/epel-5/x86_64/
pkgs:
# put your rpms here
# - httpd
raw_pkgs:
- http://your_site/your_special_rpm.rpm
# gems allows you to declare the gems you need.
# Unlike the other package types, you can ask for a specific version of a gem
# The build system will solve dependencies as best it can, but if a gem you have
# requires extra packages to install you will need to add them to the appropriate
# build_pkgs section of rpms and debs above.
gems:
pkgs:
# put your gems here.
- i18n
- rails-2.3.12 # Will try and pull rails-2.3.12 exactly.
# extra_files downloads and saves a file to be slipstreamed on to the
# crowbar .iso in the extra/files directory (or a subdirectory thereof).
# The build system will try to extract the .rpm files from
# anything that looks like an Oracle java rpm.bin and treat the extracted
# .rpm files as if they were provided by raw_pkgs.
extra_files:
# will place file into extra/files
- http://some/file
# will place file into extra/files/foo
- http://some/file foo
# will place image.tar.gz in extra/files/ami.
# For backwards compatibility, it will also be available at /ami
- http://some/amazon/image.tar.gz ami
# Will download a java package and try to install its RPMS
# if bulding Crowbar staged on Redhat.
- http://java.oracle.com/java-version-x64-rpm.bin java
locale_additions:
en:
nav:
ha_service: Ha service
barclamp:
ha_service_edit_attributes:
attributes: Attributes
foo: Comic Choice
ha_service_edit_deployment:
deployment: Deployment