bosh-stemcell 1.3063.0 → 1.3068.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -0
- data/lib/bosh/stemcell/operating_system.rb +10 -3
- data/lib/bosh/stemcell/stage_collection.rb +15 -0
- 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: 3bf9f8b1bc512873d20d338aabe967ded5ea292f
|
4
|
+
data.tar.gz: 75e4d6ffa80f6b2bc7a5c23083e28f64f37c6a54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8a2682f2516699f6a1b652ed0bc02a5d2a60a0dfecc2eb6a08e928b0b58c8de2f1e3bb7939b122240f95404ff44c128d274d6af2ff318660bc192e3d5f6c16b
|
7
|
+
data.tar.gz: 431e113824b51d5e333f0bc6ce408e6f9c02b9dd832e70aa51391bd3760b2fe9c4f105d7bfc58f9828d743eff29f0f9256a262a0438c7ab736c0db649480a398
|
data/README.md
CHANGED
@@ -101,6 +101,24 @@ There are a few extra steps you need to do before building a RHEL OS image:
|
|
101
101
|
|
102
102
|
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.
|
103
103
|
|
104
|
+
### Special requirements for building a Photon OS image
|
105
|
+
|
106
|
+
There are a few extra steps you need to do before building a Photon OS image:
|
107
|
+
|
108
|
+
1. Start up or re-provision the stemcell building machine (run `vagrant up` or `vagrant provision` from this directory)
|
109
|
+
2. Download the [latest Photon ISO image](https://vmware.bintray.com/photon/iso/) and use `scp` to copy it to the stemcell building machine. The version must be TP2-dev or newer.
|
110
|
+
3. On the stemcell building machine, mount the Photon ISO at `/mnt/photon`:
|
111
|
+
|
112
|
+
# mkdir -p /mnt/photon
|
113
|
+
# mount photon.iso /mnt/photon
|
114
|
+
|
115
|
+
4. On the stemcell building machine, run the stemcell building rake task:
|
116
|
+
|
117
|
+
$ cd /bosh
|
118
|
+
$ bundle exec rake stemcell:build_os_image[photon,TP2,/tmp/photon_TP2_base_image.tgz]
|
119
|
+
|
120
|
+
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.
|
121
|
+
|
104
122
|
## Building a stemcell
|
105
123
|
|
106
124
|
### Building the stemcell with published OS image
|
@@ -6,6 +6,7 @@ module Bosh::Stemcell
|
|
6
6
|
when 'centos' then Centos.new(operating_system_version)
|
7
7
|
when 'rhel' then Rhel.new(operating_system_version)
|
8
8
|
when 'ubuntu' then Ubuntu.new(operating_system_version)
|
9
|
+
when 'photon' then Photon.new(operating_system_version)
|
9
10
|
else raise ArgumentError.new("invalid operating system: #{operating_system_name}")
|
10
11
|
end
|
11
12
|
end
|
@@ -34,10 +35,16 @@ module Bosh::Stemcell
|
|
34
35
|
super(name: 'centos', version: version)
|
35
36
|
end
|
36
37
|
end
|
37
|
-
|
38
|
-
|
38
|
+
|
39
|
+
class Ubuntu < Base
|
40
|
+
def initialize(version)
|
41
|
+
super(name: 'ubuntu', version: version)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
class Photon < Base
|
39
46
|
def initialize(version)
|
40
|
-
super(name: '
|
47
|
+
super(name: 'photon', version: version)
|
41
48
|
end
|
42
49
|
end
|
43
50
|
end
|
@@ -18,6 +18,8 @@ module Bosh::Stemcell
|
|
18
18
|
rhel_os_stages
|
19
19
|
when OperatingSystem::Ubuntu then
|
20
20
|
ubuntu_os_stages
|
21
|
+
when OperatingSystem::Photon then
|
22
|
+
photon_os_stages
|
21
23
|
end
|
22
24
|
end
|
23
25
|
|
@@ -265,6 +267,19 @@ module Bosh::Stemcell
|
|
265
267
|
].flatten
|
266
268
|
end
|
267
269
|
|
270
|
+
def photon_os_stages
|
271
|
+
[
|
272
|
+
:base_photon,
|
273
|
+
:base_file_permission,
|
274
|
+
bosh_steps,
|
275
|
+
:base_ssh,
|
276
|
+
:rsyslog_config,
|
277
|
+
:delay_monit_start,
|
278
|
+
:system_grub,
|
279
|
+
:cron_config,
|
280
|
+
].flatten
|
281
|
+
end
|
282
|
+
|
268
283
|
def bosh_steps
|
269
284
|
[
|
270
285
|
:bosh_sysctl,
|
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.3068.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-09-
|
11
|
+
date: 2015-09-03 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.3068.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.3068.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.3068.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.3068.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: fakefs
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|