bosh-gen 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb772775c13bd207fa2e58169dad496f87bcdbf2
4
- data.tar.gz: 5a37c67880e8e463654d35da2e260580d6b2757f
3
+ metadata.gz: 3a9020cf883b488cfb4f48688a78c2824018d9e7
4
+ data.tar.gz: 256ff1b2761ac9b2bd195bfffcb2d4105a22ab93
5
5
  SHA512:
6
- metadata.gz: b0b968b05d80a09a1dd75bd245a6874ab08943705176e4112e0a3515ed3c74bbd255db38da3f45e5362c77507416c7eae55b127b94155427e4e68b598ae19a57
7
- data.tar.gz: 730fe6855982b1b5b4cab1b8bac3376aefde3402ecfe6c5a9204a0ff5e74694f1a796f5274da8baf63d44617efcdd8f19b74b9f6146cff6712c961ac3fe8324a
6
+ metadata.gz: d24f7e19053b2227e85bd96f89f9af128a8e30cd95cac02b8dde0d2301591169dab6910e0834b1d5395cc6c91a69255fc0b9c5d25a8ca1e96f8fa9d1e19fd2d5
7
+ data.tar.gz: 7689fe1c79be6da4a48b507a99ae7e6de9e922d40b5a892bb228c7424dc9057137eba24c52d3bb2263bd7ca33d52816bed1acd9ad328d6050b68ab725fa3ad8a
data/ChangeLog.md CHANGED
@@ -5,6 +5,7 @@ v0.18.0
5
5
 
6
6
  - `errand` - generates an errand-style job template
7
7
  - `copy_property` helper now in bosh-templates gem
8
+ - `manifest` - `resource_pools` no longer specifies a `size` (modern BOSH has auto-sizing) (v0.18.1)
8
9
 
9
10
  v0.17.0
10
11
  -------
@@ -3,13 +3,13 @@ require "yaml"
3
3
  module Bosh::Gen::Models
4
4
  class DeploymentManifest
5
5
  attr_reader :manifest
6
-
6
+
7
7
  def initialize(name, director_uuid, release_properties, cloud_properties, properties)
8
8
  @manifest = {}
9
9
  @cloud_properties = cloud_properties
10
10
  @properties = properties
11
11
  @security_groups = ["default"]
12
- @stemcell_version = "0.6.4"
12
+ @stemcell_version = "latest"
13
13
  @stemcell = { "name" => "bosh-stemcell", "version" => @stemcell_version }
14
14
  @persistent_disk = cloud_properties.delete("persistent_disk").to_i
15
15
  @static_ips = cloud_properties.delete("static_ips") || []
@@ -18,7 +18,7 @@ module Bosh::Gen::Models
18
18
  # This is much more helpful in early development days
19
19
  # of a release
20
20
  release_properties["version"] = 'latest'
21
-
21
+
22
22
  manifest["name"] = name
23
23
  manifest["director_uuid"] = director_uuid
24
24
  manifest["release"] = release_properties.dup
@@ -51,7 +51,6 @@ module Bosh::Gen::Models
51
51
  {
52
52
  "name" => "common",
53
53
  "network" => "default",
54
- "size" => 0,
55
54
  "stemcell" => @stemcell,
56
55
  "cloud_properties" => cloud_properties.dup
57
56
  }
@@ -60,8 +59,8 @@ module Bosh::Gen::Models
60
59
  manifest["jobs"] = []
61
60
  manifest["properties"] = @properties
62
61
  end
63
-
64
- # Each item of +jobs+ is a hash.
62
+
63
+ # Each item of +jobs+ is a hash.
65
64
  # The minimum hash is:
66
65
  # { "name" => "jobname" }
67
66
  # This is the equivalent to:
@@ -94,11 +93,10 @@ module Bosh::Gen::Models
94
93
  manifest_job["persistent_disk"] = @persistent_disk if @persistent_disk > 0
95
94
  manifest["jobs"] << manifest_job
96
95
  end
97
- manifest["resource_pools"].first["size"] = manifest["jobs"].inject(0) {|total, job| total + job["instances"]}
98
96
  end
99
-
97
+
100
98
  def to_yaml
101
99
  manifest.to_yaml
102
100
  end
103
101
  end
104
- end
102
+ end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Gen
3
- VERSION = "0.18.0"
3
+ VERSION = "0.18.1"
4
4
  end
5
5
  end
@@ -30,10 +30,9 @@ networks:
30
30
  resource_pools:
31
31
  - name: common
32
32
  network: default
33
- size: 2
34
33
  stemcell:
35
34
  name: bosh-stemcell
36
- version: 0.6.4
35
+ version: latest
37
36
  cloud_properties:
38
37
  instance_type: m1.small
39
38
  persistent_disk: 8196
@@ -30,10 +30,9 @@ networks:
30
30
  resource_pools:
31
31
  - name: common
32
32
  network: default
33
- size: 2
34
33
  stemcell:
35
34
  name: bosh-stemcell
36
- version: 0.6.4
35
+ version: latest
37
36
  cloud_properties:
38
37
  instance_type: m1.small
39
38
  persistent_disk: 8196
@@ -30,10 +30,9 @@ networks:
30
30
  resource_pools:
31
31
  - name: common
32
32
  network: default
33
- size: 2
34
33
  stemcell:
35
34
  name: bosh-stemcell
36
- version: 0.6.4
35
+ version: latest
37
36
  cloud_properties:
38
37
  instance_type: m1.small
39
38
  jobs:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams