bosh-stemcell 1.2889.0 → 1.2891.0

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: ba2a6ef7459587f1cff7db279bf62d32d11929f1
4
- data.tar.gz: 8a34eae0f8cd1ec05b4f72397b636e9f826ee6b4
3
+ metadata.gz: 7752bfaf9447e67c524f637db5a33f41eebc06c8
4
+ data.tar.gz: 1099764b2e6b7a345075297dcf9e375d59f7781b
5
5
  SHA512:
6
- metadata.gz: 1ec689fe1a2938146844d2c1c190a9c77994def83bc1d2698b288d33810d84ef11e2d58f4625094d231aef2319eaf091621e7252aaeeaae768edf41cf29c02e6
7
- data.tar.gz: b6e5853950d2c6fdb27fe9b92c250c2a6eb7fc9153b628265c51f945199ccef49474481747b88a0786f424a3348d3c3872c768362c9aa3b75b2a9f92f5630801
6
+ metadata.gz: 7a02ee0ba7726eaca79a5f5e5985f69f9afecdd821733bc0af3c75cdd1d5863570a8f0026360b431e5deda1cbc84aa5cbe5e07ce995419323de25a0232848a52
7
+ data.tar.gz: d8fe484021e415bc93ed3162237a93b2bb3e34a42eae62b3d60de0c6ba35793344d5ff7cc97eb496190c75b35791a35a6d17174dd3a62d26fb9d030df6562258
data/README.md CHANGED
@@ -50,7 +50,7 @@ If you have changes that will require new OS image you need to build one. A stem
50
50
  The arguments to `stemcell:build_os_image` are:
51
51
 
52
52
  1. *`operating_system_name`* identifies which type of OS to fetch. Determines which package repository and packaging tool will be used to download and assemble the files. Must match a value recognized by the [OperatingSystem](lib/bosh/stemcell/operating_system.rb) module. Currently, only `ubuntu` and `centos` are recognized.
53
- 2. *`operating_system_version`* an identifier that the system may use to decide which release of the OS to download. Acceptable values depend on the operating system. For `ubuntu`, use `trusty`. For `centos`, use `6.5` (which builds a CentOS 6.6 OS image) or `7`. No other combinations are presently supported.
53
+ 2. *`operating_system_version`* an identifier that the system may use to decide which release of the OS to download. Acceptable values depend on the operating system. For `ubuntu`, use `trusty`. For `centos`, use `6` or `7`. No other combinations are presently supported.
54
54
  3. *`os_image_path`* the path to write the finished OS image tarball to. If a file exists at this path already, it will be overwritten without warning.
55
55
 
56
56
  See below [Building the stemcell with local OS image](#building-the-stemcell-with-local-os-image) on how to build stemcell with the new OS image.
@@ -87,6 +87,10 @@ module Bosh::Stemcell
87
87
  work_path
88
88
  end
89
89
 
90
+ def stemcell_disk_size
91
+ stemcell_builder_options.image_create_disk_size
92
+ end
93
+
90
94
  def command_env
91
95
  "env #{hash_as_bash_env(proxy_settings_from_environment)}"
92
96
  end
@@ -34,6 +34,7 @@ module Bosh::Stemcell
34
34
 
35
35
  attr_reader(
36
36
  :stemcell_version,
37
+ :image_create_disk_size,
37
38
  )
38
39
 
39
40
  private
@@ -48,7 +49,6 @@ module Bosh::Stemcell
48
49
  attr_reader(
49
50
  :environment,
50
51
  :definition,
51
- :image_create_disk_size,
52
52
  :bosh_micro_release_tgz_path,
53
53
  :os_image_tgz_path,
54
54
  )
@@ -87,7 +87,7 @@ module Bosh::Stemcell
87
87
  name: 'aws',
88
88
  hypervisor: 'xen',
89
89
  supports_light_stemcell: true,
90
- default_disk_size: 2048,
90
+ default_disk_size: 3072,
91
91
  disk_formats: ['raw']
92
92
  )
93
93
  end
@@ -95,6 +95,7 @@ module Bosh::Stemcell
95
95
  :base_centos,
96
96
  :base_centos_packages,
97
97
  :base_ssh,
98
+ :bosh_sysctl,
98
99
  bosh_steps,
99
100
  :rsyslog_config,
100
101
  :delay_monit_start,
@@ -1,13 +1,14 @@
1
1
  module Bosh
2
2
  module Stemcell
3
3
  class StemcellPackager
4
- def initialize(definition, version, work_path, tarball_path, runner, collection)
5
- @definition = definition
6
- @version = version
7
- @stemcell_build_path = File.join(work_path, 'stemcell')
8
- @tarball_path = tarball_path
9
- @runner = runner
10
- @collection = collection
4
+ def initialize(options = {})
5
+ @definition = options.fetch(:definition)
6
+ @version = options.fetch(:version)
7
+ @stemcell_build_path = File.join(options.fetch(:work_path), 'stemcell')
8
+ @tarball_path = options.fetch(:tarball_path)
9
+ @disk_size = options.fetch(:disk_size)
10
+ @runner = options.fetch(:runner)
11
+ @collection = options.fetch(:collection)
11
12
  end
12
13
 
13
14
  def package(disk_format)
@@ -21,7 +22,7 @@ module Bosh
21
22
 
22
23
  private
23
24
 
24
- attr_reader :definition, :version, :stemcell_build_path, :tarball_path, :runner, :collection
25
+ attr_reader :definition, :version, :stemcell_build_path, :tarball_path, :disk_size, :runner, :collection
25
26
 
26
27
  def write_manifest(disk_format)
27
28
  manifest_filename = File.join(stemcell_build_path, "stemcell.MF")
@@ -44,6 +45,7 @@ module Bosh
44
45
  'version' => version.to_s,
45
46
  'infrastructure' => infrastructure.name,
46
47
  'hypervisor' => infrastructure.hypervisor,
48
+ 'disk' => disk_size,
47
49
  'disk_format' => disk_format,
48
50
  'container_format' => 'bare',
49
51
  'os_type' => 'linux',
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Stemcell
3
- VERSION = '1.2889.0'
3
+ VERSION = '1.2891.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-stemcell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2889.0
4
+ version: 1.2891.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-19 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bosh_aws_cpi
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2889.0
19
+ version: 1.2891.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2889.0
26
+ version: 1.2891.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bosh-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.2889.0
33
+ version: 1.2891.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.2889.0
40
+ version: 1.2891.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: fakefs
43
43
  requirement: !ruby/object:Gem::Requirement