bosh-gen 0.13.3 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/.gitignore +2 -1
- data/ChangeLog.md +5 -0
- data/Gemfile +2 -3
- data/bin/bosh-gen +1 -1
- data/lib/bosh/gen/cli.rb +0 -1
- data/lib/bosh/gen/generators/new_release_generator.rb +16 -2
- data/lib/bosh/gen/generators/new_release_generator/templates/README.md.tt +41 -4
- data/lib/bosh/gen/generators/new_release_generator/templates/templates/deployment.yml.tt +34 -0
- data/lib/bosh/gen/generators/new_release_generator/templates/templates/infrastructure-aws-ec2.yml.tt +40 -0
- data/lib/bosh/gen/generators/new_release_generator/templates/templates/infrastructure-warden.yml.tt +107 -0
- data/lib/bosh/gen/generators/new_release_generator/templates/templates/jobs.yml.tt +27 -0
- data/lib/bosh/gen/generators/new_release_generator/templates/templates/make_manifest.tt +63 -0
- data/lib/bosh/gen/generators/new_release_generator/templates/templates/properties.yml.tt +5 -0
- data/lib/bosh/gen/generators/new_release_generator/templates/templates/stub.yml.tt +13 -0
- data/lib/bosh/gen/generators/package_generator.rb +4 -2
- data/lib/bosh/gen/generators/package_source_generator.rb +1 -2
- data/lib/bosh/gen/version.rb +1 -1
- metadata +10 -5
- data/lib/bosh/gen/generators/new_release_generator/templates/examples/bosh-lite-cluster.yml.tt +0 -67
- data/lib/bosh/gen/generators/new_release_generator/templates/examples/bosh-lite-solo.yml.tt +0 -65
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGY3MjdjNjc4MzQ1Y2Q0MjNmZTM1Mzg4ODYxNDJlNzFjMjdmMGRiNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWE2ZWFjMGY5MmZiYWI4NTU0MjU2MmY4NGRmMDdiODc0MThkYjIxMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjAxNTliZDc2M2Y4ZWFiNjA0ZTgwYjI5Zjg2NjI1ODY1NTc2ZWJkMDBkNDNk
|
10
|
+
MWM4OWE0NTE3MTFhNDY1NzE3MzZkMjQxYzliOWRiMzYyZDk4MDlkMzZhZDEx
|
11
|
+
MmY0OGVkNDYwMTk3MzgxYmIyOWI4NDA1MTRjNjkwNmNkZWQ0ZjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWJlMzBlYzY2OTlmMjEwNGE3YTA3YWEyNzk3OTMxOWRhNDBmZDYyNzZiMzg3
|
14
|
+
MjBjNTRkM2U2Y2I3ODZkMGNiOWVmYjE4NzM1NzUyZjg4NGVjNDJlNWVjZjgw
|
15
|
+
ZWY4NzlhNWY3MGRlMWYxYmJiMDhjZDRiMDVmNDE1YjY1NWI0OWY=
|
data/.gitignore
CHANGED
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
source 'https://s3.amazonaws.com/bosh-jenkins-gems/' # for bosh 1.5.0.pre gems
|
3
2
|
|
4
3
|
# Specify your gem's dependencies in bosh-gen.gemspec
|
5
4
|
gemspec
|
6
5
|
|
7
|
-
gem 'bosh_cli', '~> 1.
|
8
|
-
gem 'bosh_common', '~> 1.
|
6
|
+
gem 'bosh_cli', '~> 1.1750.0'
|
7
|
+
gem 'bosh_common', '~> 1.1750.0'
|
data/bin/bosh-gen
CHANGED
data/lib/bosh/gen/cli.rb
CHANGED
@@ -28,11 +28,15 @@ module Bosh::Gen
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def directories
|
31
|
-
%w[jobs packages src blobs
|
31
|
+
%w[jobs packages src blobs templates].each do |dir|
|
32
32
|
directory dir
|
33
33
|
end
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
|
+
def executables
|
37
|
+
chmod "templates/make_manifest", 0755
|
38
|
+
end
|
39
|
+
|
36
40
|
def blobs_yaml
|
37
41
|
create_file "config/blobs.yml", YAML.dump({})
|
38
42
|
end
|
@@ -149,6 +153,8 @@ module Bosh::Gen
|
|
149
153
|
*~
|
150
154
|
*#
|
151
155
|
#*
|
156
|
+
tmp
|
157
|
+
my*.yml
|
152
158
|
IGNORE
|
153
159
|
end
|
154
160
|
|
@@ -179,6 +185,14 @@ module Bosh::Gen
|
|
179
185
|
@project_name ||= File.basename(proposed_app_path).gsub(/-(?:boshrelease|release)$/, '')
|
180
186
|
end
|
181
187
|
|
188
|
+
def project_name_hyphenated
|
189
|
+
project_name.gsub(/[^A-Za-z]+/, '-')
|
190
|
+
end
|
191
|
+
|
192
|
+
def project_name_underscored
|
193
|
+
project_name.gsub(/[^A-Za-z]+/, '_')
|
194
|
+
end
|
195
|
+
|
182
196
|
def blobstore_type
|
183
197
|
return :s3 if s3?
|
184
198
|
return :atmos if atmos?
|
@@ -11,11 +11,48 @@ cd <%= repository_name %>
|
|
11
11
|
bosh upload release releases/<%= project_name %>-1.yml
|
12
12
|
```
|
13
13
|
|
14
|
-
For [bosh-lite](https://github.com/cloudfoundry/bosh-lite), you can quickly create a deployment manifest:
|
14
|
+
For [bosh-lite](https://github.com/cloudfoundry/bosh-lite), you can quickly create a deployment manifest & deploy a 3 VM cluster:
|
15
15
|
|
16
16
|
```
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
templates/make_manifest warden
|
18
|
+
bosh -n deploy
|
19
|
+
```
|
20
|
+
|
21
|
+
For Openstack (Nova Networks), create a single VM:
|
22
|
+
|
23
|
+
```
|
24
|
+
templates/make_manifest openstack-nova
|
25
|
+
bosh -n deploy
|
26
|
+
```
|
27
|
+
|
28
|
+
For AWS EC2, create a single VM:
|
29
|
+
|
30
|
+
```
|
31
|
+
templates/make_manifest aws-ec2
|
32
|
+
bosh -n deploy
|
33
|
+
```
|
34
|
+
|
35
|
+
### Override security groups
|
36
|
+
|
37
|
+
For AWS & Openstack, the default deployment assumes there is a `default` security group. If you wish to use a different security group(s) then you can pass in additional configuration when running `make_manifest` above.
|
38
|
+
|
39
|
+
Create a file `my-networking.yml`:
|
40
|
+
|
41
|
+
``` yaml
|
42
|
+
---
|
43
|
+
networks:
|
44
|
+
- name: <%= project_name %>1
|
45
|
+
type: dynamic
|
46
|
+
cloud_properties:
|
47
|
+
security_groups:
|
48
|
+
- <%= project_name %>
|
49
|
+
```
|
50
|
+
|
51
|
+
Where `- <%= project_name %>` means you wish to use an existing security group called `<%= project_name %>`.
|
52
|
+
|
53
|
+
You now suffix this file path to the `make_manifest` command:
|
54
|
+
|
55
|
+
```
|
56
|
+
templates/make_manifest openstack-nova my-networking.yml
|
20
57
|
bosh -n deploy
|
21
58
|
```
|
@@ -0,0 +1,34 @@
|
|
1
|
+
meta:
|
2
|
+
environment: (( merge ))
|
3
|
+
stemcell: (( merge ))
|
4
|
+
|
5
|
+
name: (( meta.environment ))
|
6
|
+
|
7
|
+
director_uuid: (( merge ))
|
8
|
+
|
9
|
+
releases: (( merge ))
|
10
|
+
|
11
|
+
networks: (( merge ))
|
12
|
+
|
13
|
+
jobs: (( merge ))
|
14
|
+
|
15
|
+
properties: (( merge ))
|
16
|
+
|
17
|
+
compilation:
|
18
|
+
workers: 6
|
19
|
+
network: <%= project_name_underscored %>1
|
20
|
+
reuse_compilation_vms: true
|
21
|
+
cloud_properties: (( merge ))
|
22
|
+
|
23
|
+
update:
|
24
|
+
canaries: 1
|
25
|
+
max_in_flight: 1
|
26
|
+
canary_watch_time: 30000-60000
|
27
|
+
update_watch_time: 5000-60000
|
28
|
+
|
29
|
+
resource_pools:
|
30
|
+
- name: small_z1
|
31
|
+
network: <%= project_name_underscored %>1
|
32
|
+
size: (( auto ))
|
33
|
+
stemcell: (( meta.stemcell ))
|
34
|
+
cloud_properties: (( merge ))
|
data/lib/bosh/gen/generators/new_release_generator/templates/templates/infrastructure-aws-ec2.yml.tt
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
meta:
|
2
|
+
environment: (( merge ))
|
3
|
+
dns_root: (( merge ))
|
4
|
+
security_groups: (( merge ))
|
5
|
+
network_name: (( merge ))
|
6
|
+
|
7
|
+
stemcell:
|
8
|
+
name: bosh-aws-xen-ubuntu
|
9
|
+
version: 1722
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
- name: <%= project_name_underscored %>_leader_z1
|
13
|
+
instances: 1
|
14
|
+
networks:
|
15
|
+
- name: (( meta.network_name ))
|
16
|
+
- name: <%= project_name %>_z1
|
17
|
+
instances: 2
|
18
|
+
networks:
|
19
|
+
- name: (( meta.network_name ))
|
20
|
+
properties:
|
21
|
+
etcd:
|
22
|
+
leader_address: (( "0.<%= project_name_hyphenated %>-leader-z1.<%= project_name_hyphenated %>1." meta.environment "." meta.dns_root ))
|
23
|
+
|
24
|
+
compilation:
|
25
|
+
cloud_properties:
|
26
|
+
instance_type: m1.small
|
27
|
+
|
28
|
+
resource_pools:
|
29
|
+
- name: small_z1
|
30
|
+
cloud_properties:
|
31
|
+
instance_type: m1.small
|
32
|
+
|
33
|
+
networks:
|
34
|
+
- name: floating
|
35
|
+
type: vip
|
36
|
+
cloud_properties: {}
|
37
|
+
- name: (( meta.network_name ))
|
38
|
+
type: dynamic
|
39
|
+
cloud_properties:
|
40
|
+
security_groups: (( meta.security_groups ))
|
data/lib/bosh/gen/generators/new_release_generator/templates/templates/infrastructure-warden.yml.tt
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
meta:
|
2
|
+
environment: <%= project_name_hyphenated %>-warden
|
3
|
+
network_name: (( merge ))
|
4
|
+
|
5
|
+
stemcell:
|
6
|
+
name: bosh-warden-boshlite-ubuntu
|
7
|
+
version: 24
|
8
|
+
|
9
|
+
update:
|
10
|
+
canaries: 1
|
11
|
+
max_in_flight: 50
|
12
|
+
canary_watch_time: 1000-30000
|
13
|
+
update_watch_time: 1000-30000
|
14
|
+
|
15
|
+
jobs:
|
16
|
+
- name: <%= project_name_underscored %>_leader_z1
|
17
|
+
instances: 1
|
18
|
+
networks:
|
19
|
+
- name: (( meta.network_name ))
|
20
|
+
static_ips: (( static_ips(0) ))
|
21
|
+
- name: <%= project_name_underscored %>_z1
|
22
|
+
instances: 2
|
23
|
+
networks:
|
24
|
+
- name: (( meta.network_name ))
|
25
|
+
static_ips: ~
|
26
|
+
properties:
|
27
|
+
<%= project_name_underscored %>:
|
28
|
+
master: (( jobs.<%= project_name_underscored %>_leader_z1.networks.<%= project_name_underscored %>1.static_ips.[0] ))
|
29
|
+
|
30
|
+
compilation:
|
31
|
+
cloud_properties:
|
32
|
+
name: random
|
33
|
+
|
34
|
+
resource_pools:
|
35
|
+
- name: small_z1
|
36
|
+
cloud_properties:
|
37
|
+
name: random
|
38
|
+
|
39
|
+
networks:
|
40
|
+
- name: (( meta.network_name ))
|
41
|
+
# Assumes up to 5 VMs, including 1 static and 4 dynamic.
|
42
|
+
# Plus 5 (double the size) unused IPs, due to BOSH bug/quirk.
|
43
|
+
subnets:
|
44
|
+
- cloud_properties:
|
45
|
+
name: random
|
46
|
+
range: 10.244.2.0/30
|
47
|
+
reserved:
|
48
|
+
- 10.244.2.1
|
49
|
+
static:
|
50
|
+
- 10.244.2.2
|
51
|
+
|
52
|
+
- cloud_properties:
|
53
|
+
name: random
|
54
|
+
range: 10.244.2.4/30
|
55
|
+
reserved:
|
56
|
+
- 10.244.2.5
|
57
|
+
static: []
|
58
|
+
- cloud_properties:
|
59
|
+
name: random
|
60
|
+
range: 10.244.2.8/30
|
61
|
+
reserved:
|
62
|
+
- 10.244.2.9
|
63
|
+
static: []
|
64
|
+
- cloud_properties:
|
65
|
+
name: random
|
66
|
+
range: 10.244.2.12/30
|
67
|
+
reserved:
|
68
|
+
- 10.244.2.13
|
69
|
+
static: []
|
70
|
+
- cloud_properties:
|
71
|
+
name: random
|
72
|
+
range: 10.244.2.16/30
|
73
|
+
reserved:
|
74
|
+
- 10.244.2.17
|
75
|
+
static: []
|
76
|
+
|
77
|
+
# Bonus double-sized network required due to BOSH oddity
|
78
|
+
- cloud_properties:
|
79
|
+
name: random
|
80
|
+
range: 10.244.2.20/30
|
81
|
+
reserved:
|
82
|
+
- 10.244.2.21
|
83
|
+
static: []
|
84
|
+
- cloud_properties:
|
85
|
+
name: random
|
86
|
+
range: 10.244.2.24/30
|
87
|
+
reserved:
|
88
|
+
- 10.244.2.25
|
89
|
+
static: []
|
90
|
+
- cloud_properties:
|
91
|
+
name: random
|
92
|
+
range: 10.244.2.28/30
|
93
|
+
reserved:
|
94
|
+
- 10.244.2.29
|
95
|
+
static: []
|
96
|
+
- cloud_properties:
|
97
|
+
name: random
|
98
|
+
range: 10.244.2.32/30
|
99
|
+
reserved:
|
100
|
+
- 10.244.2.33
|
101
|
+
static: []
|
102
|
+
- cloud_properties:
|
103
|
+
name: random
|
104
|
+
range: 10.244.2.36/30
|
105
|
+
reserved:
|
106
|
+
- 10.244.2.37
|
107
|
+
static: []
|
@@ -0,0 +1,27 @@
|
|
1
|
+
meta:
|
2
|
+
environment: ~
|
3
|
+
|
4
|
+
update:
|
5
|
+
canaries: 1
|
6
|
+
max_in_flight: 50
|
7
|
+
canary_watch_time: 1000-30000
|
8
|
+
update_watch_time: 1000-30000
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
- name: <%= project_name_underscored %>_leader_z1
|
12
|
+
template: <%= project_name_underscored %>
|
13
|
+
instances: 0
|
14
|
+
resource_pool: small_z1
|
15
|
+
networks: (( merge ))
|
16
|
+
- name: <%= project_name_underscored %>_z1
|
17
|
+
template: <%= project_name_underscored %>
|
18
|
+
instances: 0
|
19
|
+
resource_pool: small_z1
|
20
|
+
networks: (( merge ))
|
21
|
+
update:
|
22
|
+
canaries: 10
|
23
|
+
properties:
|
24
|
+
<%= project_name_underscored %>:
|
25
|
+
master: (( merge ))
|
26
|
+
|
27
|
+
networks: (( merge ))
|
@@ -0,0 +1,63 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
set -e
|
4
|
+
|
5
|
+
infrastructure=$1
|
6
|
+
template_prefix="<%= project_name %>"
|
7
|
+
|
8
|
+
if [ "$infrastructure" != "openstack-nova" ] && \
|
9
|
+
[ "$infrastructure" != "aws-ec2" ] && \
|
10
|
+
[ "$infrastructure" != "warden" ] ; then
|
11
|
+
echo "usage: ./make_manifest <openstack-nova|warden>"
|
12
|
+
exit 1
|
13
|
+
fi
|
14
|
+
|
15
|
+
shift
|
16
|
+
|
17
|
+
BOSH_STATUS=$(bosh status)
|
18
|
+
DIRECTOR_UUID=$(echo "$BOSH_STATUS" | grep UUID | awk '{print $2}')
|
19
|
+
DIRECTOR_CPI=$(echo "$BOSH_STATUS" | grep CPI | awk '{print $2}')
|
20
|
+
DIRECTOR_NAME=$(echo "$BOSH_STATUS" | grep Name | awk '{print $2}')
|
21
|
+
NAME=$template_prefix-$infrastructure
|
22
|
+
|
23
|
+
if [[ $DIRECTOR_NAME = "warden" ]]; then
|
24
|
+
if [[ $infrastructure != "warden" ]]; then
|
25
|
+
echo "Not targeting bosh-lite with warden CPI. Please use 'bosh target' before running this script."
|
26
|
+
exit 1
|
27
|
+
fi
|
28
|
+
fi
|
29
|
+
|
30
|
+
if [[ $DIRECTOR_CPI = "aws" ]]; then
|
31
|
+
if [[ $infrastructure = "aws-ec2" ]]; then
|
32
|
+
echo "Not targeting an AWS BOSH. Please use 'bosh target' before running this script."
|
33
|
+
exit 1
|
34
|
+
fi
|
35
|
+
fi
|
36
|
+
|
37
|
+
if [[ $DIRECTOR_CPI != "openstack" ]]; then
|
38
|
+
if [[ $infrastructure = "openstack-nova" ]]; then
|
39
|
+
echo "Not targeting an OpenStack BOSH. Please use 'bosh target' before running this script."
|
40
|
+
exit 1
|
41
|
+
fi
|
42
|
+
fi
|
43
|
+
|
44
|
+
templates=$(dirname $0)
|
45
|
+
release=$templates/..
|
46
|
+
tmpdir=$release/tmp
|
47
|
+
|
48
|
+
mkdir -p $tmpdir
|
49
|
+
cp $templates/stub.yml $tmpdir/stub-with-uuid.yml
|
50
|
+
echo $DIRECTOR_NAME $DIRECTOR_CPI $DIRECTOR_UUID
|
51
|
+
perl -pi -e "s/PLACEHOLDER-DIRECTOR-UUID/$DIRECTOR_UUID/g" $tmpdir/stub-with-uuid.yml
|
52
|
+
perl -pi -e "s/NAME/$NAME/g" $tmpdir/stub-with-uuid.yml
|
53
|
+
|
54
|
+
spiff merge \
|
55
|
+
$templates/deployment.yml \
|
56
|
+
$templates/jobs.yml \
|
57
|
+
$templates/properties.yml \
|
58
|
+
$templates/infrastructure-${infrastructure}.yml \
|
59
|
+
$tmpdir/stub-with-uuid.yml \
|
60
|
+
$* > $tmpdir/$NAME-manifest.yml
|
61
|
+
|
62
|
+
bosh deployment $tmpdir/$NAME-manifest.yml
|
63
|
+
bosh status
|
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
meta:
|
3
|
+
environment: NAME
|
4
|
+
dns_root: microbosh
|
5
|
+
network_name: <%= project_name_underscored %>1
|
6
|
+
security_groups:
|
7
|
+
- <%= project_name_underscored %>
|
8
|
+
|
9
|
+
director_uuid: PLACEHOLDER-DIRECTOR-UUID
|
10
|
+
|
11
|
+
releases:
|
12
|
+
- name: <%= project_name_underscored %>
|
13
|
+
version: latest
|
@@ -42,6 +42,9 @@ module Bosh::Gen
|
|
42
42
|
set -e # exit immediately if a simple command exits with a non-zero status
|
43
43
|
set -u # report the usage of uninitialized variables
|
44
44
|
|
45
|
+
# Detect # of CPUs so make jobs can be parallelized
|
46
|
+
CPUS=`grep -c ^processor /proc/cpuinfo`
|
47
|
+
|
45
48
|
# Available variables
|
46
49
|
# $BOSH_COMPILE_TARGET - where this package & spec'd source files are available
|
47
50
|
# $BOSH_INSTALL_TARGET - where you copy/install files to be included in package
|
@@ -60,8 +63,7 @@ module Bosh::Gen
|
|
60
63
|
#{unpack_command} #{name}/#{archive_file}
|
61
64
|
cd #{unpack_base_path}
|
62
65
|
./configure --prefix=${BOSH_INSTALL_TARGET}
|
63
|
-
make
|
64
|
-
make install
|
66
|
+
make -j${CPUS} && make install
|
65
67
|
# Alternatively, to copy archive contents:
|
66
68
|
# cp -a #{unpack_base_path}/* $BOSH_INSTALL_TARGET
|
67
69
|
SHELL
|
data/lib/bosh/gen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh-gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dr Nic Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -162,11 +162,16 @@ files:
|
|
162
162
|
- lib/bosh/gen/generators/new_release_generator/templates/README.md.tt
|
163
163
|
- lib/bosh/gen/generators/new_release_generator/templates/Rakefile
|
164
164
|
- lib/bosh/gen/generators/new_release_generator/templates/blobs/.gitkeep
|
165
|
-
- lib/bosh/gen/generators/new_release_generator/templates/examples/bosh-lite-cluster.yml.tt
|
166
|
-
- lib/bosh/gen/generators/new_release_generator/templates/examples/bosh-lite-solo.yml.tt
|
167
165
|
- lib/bosh/gen/generators/new_release_generator/templates/jobs/.gitkeep
|
168
166
|
- lib/bosh/gen/generators/new_release_generator/templates/packages/.gitkeep
|
169
167
|
- lib/bosh/gen/generators/new_release_generator/templates/src/.gitkeep
|
168
|
+
- lib/bosh/gen/generators/new_release_generator/templates/templates/deployment.yml.tt
|
169
|
+
- lib/bosh/gen/generators/new_release_generator/templates/templates/infrastructure-aws-ec2.yml.tt
|
170
|
+
- lib/bosh/gen/generators/new_release_generator/templates/templates/infrastructure-warden.yml.tt
|
171
|
+
- lib/bosh/gen/generators/new_release_generator/templates/templates/jobs.yml.tt
|
172
|
+
- lib/bosh/gen/generators/new_release_generator/templates/templates/make_manifest.tt
|
173
|
+
- lib/bosh/gen/generators/new_release_generator/templates/templates/properties.yml.tt
|
174
|
+
- lib/bosh/gen/generators/new_release_generator/templates/templates/stub.yml.tt
|
170
175
|
- lib/bosh/gen/generators/package_generator.rb
|
171
176
|
- lib/bosh/gen/generators/package_generator/templates/.gitkeep
|
172
177
|
- lib/bosh/gen/generators/package_source_generator.rb
|
@@ -244,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
249
|
version: '0'
|
245
250
|
requirements: []
|
246
251
|
rubyforge_project:
|
247
|
-
rubygems_version: 2.1.
|
252
|
+
rubygems_version: 2.1.11
|
248
253
|
signing_key:
|
249
254
|
specification_version: 4
|
250
255
|
summary: ''
|
data/lib/bosh/gen/generators/new_release_generator/templates/examples/bosh-lite-cluster.yml.tt
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: <%= project_name %>-cluster
|
3
|
-
director_uuid: DIRECTOR_UUID
|
4
|
-
releases:
|
5
|
-
- name: <%= project_name %>
|
6
|
-
version: latest
|
7
|
-
compilation:
|
8
|
-
workers: 3
|
9
|
-
network: <%= project_name %>-network
|
10
|
-
reuse_compilation_vms: true
|
11
|
-
cloud_properties:
|
12
|
-
name: random
|
13
|
-
update:
|
14
|
-
canaries: 1
|
15
|
-
max_in_flight: 4
|
16
|
-
canary_watch_time: 10000-30000
|
17
|
-
update_watch_time: 10000-30000
|
18
|
-
resource_pools:
|
19
|
-
- name: common
|
20
|
-
network: <%= project_name %>-network
|
21
|
-
size: 3
|
22
|
-
stemcell:
|
23
|
-
name: bosh-stemcell
|
24
|
-
version: latest
|
25
|
-
cloud_properties:
|
26
|
-
name: random
|
27
|
-
networks:
|
28
|
-
- name: <%= project_name %>-network
|
29
|
-
subnets:
|
30
|
-
<%% (0..28).each_with_index do |i| %>
|
31
|
-
- range: 10.244.0.<%%= i*4 %>/30
|
32
|
-
reserved:
|
33
|
-
- 10.244.0.<%%= i*4 + 1 %>
|
34
|
-
static:
|
35
|
-
- 10.244.0.<%%= i*4 + 2 %>
|
36
|
-
cloud_properties:
|
37
|
-
name: random
|
38
|
-
<%% end %>
|
39
|
-
<%% (29..61).each_with_index do |i| %>
|
40
|
-
- range: 10.244.0.<%%= i*4 %>/30
|
41
|
-
reserved:
|
42
|
-
- 10.244.0.<%%= i*4 + 1 %>
|
43
|
-
cloud_properties:
|
44
|
-
name: random
|
45
|
-
<%% end %>
|
46
|
-
<%% (62..63).each_with_index do |i| %>
|
47
|
-
- range: 10.244.0.<%%= i*4 %>/30
|
48
|
-
reserved:
|
49
|
-
- 10.244.0.<%%= i*4 + 1 %>
|
50
|
-
static:
|
51
|
-
- 10.244.0.<%%= i*4 + 2 %>
|
52
|
-
cloud_properties:
|
53
|
-
name: random
|
54
|
-
<%% end %>
|
55
|
-
jobs:
|
56
|
-
- name: <%= project_name %>
|
57
|
-
template: <%= project_name %>
|
58
|
-
instances: 3
|
59
|
-
resource_pool: common
|
60
|
-
networks:
|
61
|
-
- name: <%= project_name %>-network
|
62
|
-
static_ips:
|
63
|
-
- 10.244.0.6
|
64
|
-
- 10.244.0.10
|
65
|
-
- 10.244.0.14
|
66
|
-
properties:
|
67
|
-
<%= project_name %>: {}
|
@@ -1,65 +0,0 @@
|
|
1
|
-
---
|
2
|
-
name: <%= project_name %>-solo
|
3
|
-
director_uuid: DIRECTOR_UUID
|
4
|
-
releases:
|
5
|
-
- name: <%= project_name %>
|
6
|
-
version: latest
|
7
|
-
compilation:
|
8
|
-
workers: 3
|
9
|
-
network: <%= project_name %>-network
|
10
|
-
reuse_compilation_vms: true
|
11
|
-
cloud_properties:
|
12
|
-
name: random
|
13
|
-
update:
|
14
|
-
canaries: 1
|
15
|
-
max_in_flight: 4
|
16
|
-
canary_watch_time: 10000-30000
|
17
|
-
update_watch_time: 10000-30000
|
18
|
-
resource_pools:
|
19
|
-
- name: common
|
20
|
-
network: <%= project_name %>-network
|
21
|
-
size: 1
|
22
|
-
stemcell:
|
23
|
-
name: bosh-stemcell
|
24
|
-
version: latest
|
25
|
-
cloud_properties:
|
26
|
-
name: random
|
27
|
-
networks:
|
28
|
-
- name: <%= project_name %>-network
|
29
|
-
subnets:
|
30
|
-
<%% (0..28).each_with_index do |i| %>
|
31
|
-
- range: 10.244.0.<%%= i*4 %>/30
|
32
|
-
reserved:
|
33
|
-
- 10.244.0.<%%= i*4 + 1 %>
|
34
|
-
static:
|
35
|
-
- 10.244.0.<%%= i*4 + 2 %>
|
36
|
-
cloud_properties:
|
37
|
-
name: random
|
38
|
-
<%% end %>
|
39
|
-
<%% (29..61).each_with_index do |i| %>
|
40
|
-
- range: 10.244.0.<%%= i*4 %>/30
|
41
|
-
reserved:
|
42
|
-
- 10.244.0.<%%= i*4 + 1 %>
|
43
|
-
cloud_properties:
|
44
|
-
name: random
|
45
|
-
<%% end %>
|
46
|
-
<%% (62..63).each_with_index do |i| %>
|
47
|
-
- range: 10.244.0.<%%= i*4 %>/30
|
48
|
-
reserved:
|
49
|
-
- 10.244.0.<%%= i*4 + 1 %>
|
50
|
-
static:
|
51
|
-
- 10.244.0.<%%= i*4 + 2 %>
|
52
|
-
cloud_properties:
|
53
|
-
name: random
|
54
|
-
<%% end %>
|
55
|
-
jobs:
|
56
|
-
- name: <%= project_name %>
|
57
|
-
template: <%= project_name %>
|
58
|
-
instances: 1
|
59
|
-
resource_pool: common
|
60
|
-
networks:
|
61
|
-
- name: <%= project_name %>-network
|
62
|
-
static_ips:
|
63
|
-
- 10.244.0.6
|
64
|
-
properties:
|
65
|
-
<%= project_name %>: {}
|