bosh-stemcell 1.2889.0 → 1.2891.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 +4 -4
- data/README.md +1 -1
- data/lib/bosh/stemcell/build_environment.rb +4 -0
- data/lib/bosh/stemcell/builder_options.rb +1 -1
- data/lib/bosh/stemcell/infrastructure.rb +1 -1
- data/lib/bosh/stemcell/stage_collection.rb +1 -0
- data/lib/bosh/stemcell/stemcell_packager.rb +10 -8
- data/lib/bosh/stemcell/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7752bfaf9447e67c524f637db5a33f41eebc06c8
|
4
|
+
data.tar.gz: 1099764b2e6b7a345075297dcf9e375d59f7781b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
@@ -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
|
)
|
@@ -1,13 +1,14 @@
|
|
1
1
|
module Bosh
|
2
2
|
module Stemcell
|
3
3
|
class StemcellPackager
|
4
|
-
def initialize(
|
5
|
-
@definition = definition
|
6
|
-
@version = version
|
7
|
-
@stemcell_build_path = File.join(work_path, 'stemcell')
|
8
|
-
@tarball_path = tarball_path
|
9
|
-
@
|
10
|
-
@
|
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',
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
40
|
+
version: 1.2891.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: fakefs
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|