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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 709e3c2bfd1bfb79e53bd3076fc2a1fa1e3f42c5
4
- data.tar.gz: 50feb1b33915519da99afd2d5bca42985ed129fc
3
+ metadata.gz: 3bf9f8b1bc512873d20d338aabe967ded5ea292f
4
+ data.tar.gz: 75e4d6ffa80f6b2bc7a5c23083e28f64f37c6a54
5
5
  SHA512:
6
- metadata.gz: cfc4b9b4ef1cd0407a17834bc9f8614a59fb86216fd42fe8593997951b2114212c46db1243c381489c1e7ee312de09f51a2ddbb494d53239bc5a02328cacbf4f
7
- data.tar.gz: 82806fa79302f98cc2c9312cca84ec4ede26fd7b7113450a38855038c2ecdddfe9fad760d5641962040396d06ed6b514f7eee1e03d56be874e92e67857fb42b3
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
- class Ubuntu < Base
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: 'ubuntu', version: version)
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,
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Stemcell
3
- VERSION = '1.3063.0'
3
+ VERSION = '1.3068.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.3063.0
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-01 00:00:00.000000000 Z
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.3063.0
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.3063.0
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.3063.0
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.3063.0
40
+ version: 1.3068.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: fakefs
43
43
  requirement: !ruby/object:Gem::Requirement