bosh-bootstrap 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog.md CHANGED
@@ -8,6 +8,10 @@
8
8
  * existing inception VMs' manifest.yml will be upgraded automatically and a backup file created (just in case)
9
9
  * tightening of net-ssh & net-scp gems to ensure the bosh-bootstrap gem can be installed [thx @mmb]
10
10
 
11
+ ### v0.8.2
12
+
13
+ * preinstall net-ssh/net-scp/fog on inception VM before installing `bosh_deployer` to fix in ability to install `bosh_deployer` 1.4.1 due to latest fog 1.10.0 release
14
+
11
15
  ## v0.7
12
16
 
13
17
  Notable:
data/README.md CHANGED
@@ -31,7 +31,6 @@ This bootstrapper tool is distributed as a RubyGem for Ruby 1.9+.
31
31
  ```
32
32
  $ ruby -v
33
33
  ruby 1.9.3p385 ...
34
- $ gem install net-ssh -v 2.2.2
35
34
  $ gem install bosh-bootstrap
36
35
  ```
37
36
 
@@ -8,6 +8,8 @@
8
8
  # * $GIT_USER_NAME
9
9
  # * $GIT_USER_EMAIL
10
10
 
11
+ set -e # exit immediately if a simple command exits with a non-zero status
12
+
11
13
  if [[ $EUID -ne 0 ]]; then
12
14
  echo "ERROR: This script must be run as root" 1>&2
13
15
  exit 1
@@ -6,4 +6,6 @@
6
6
  # Requires:
7
7
  # * $PASSWORD
8
8
 
9
+ set -e # exit immediately if a simple command exits with a non-zero status
10
+
9
11
  mkpasswd -m sha-512 $PASSWORD
@@ -5,6 +5,8 @@ if [[ $EUID -ne 0 ]]; then
5
5
  exit 1
6
6
  fi
7
7
 
8
+ set -e # exit immediately if a simple command exits with a non-zero status
9
+
8
10
  apt-get install python-software-properties
9
11
  add-apt-repository ppa:keithw/mosh
10
12
 
@@ -6,6 +6,8 @@
6
6
  # * $UPGRADE - re-install or upgrade gems if already installed
7
7
  # * $INSTALL_BOSH_FROM_SOURCE - install from bosh git repo
8
8
 
9
+ set -e # exit immediately if a simple command exits with a non-zero status
10
+
9
11
  if [[ $EUID -ne 0 ]]; then
10
12
  echo "ERROR: This script must be run as root" 1>&2
11
13
  exit 1
@@ -14,13 +16,18 @@ fi
14
16
  # Install a gem if $UPGRADE exists or if gem not already installed
15
17
  function install_gem() {
16
18
  gem_name=$1
19
+ options=$2
17
20
  if [[ ("${UPGRADE}X" != "X") || "$(gem list $gem_name | grep $gem_name)X" == "X" ]]; then
18
- gem install $gem_name --no-ri --no-rdoc
21
+ gem install $gem_name $options --no-ri --no-rdoc
19
22
  else
20
23
  echo gem $gem_name already installed
21
24
  fi
22
25
  }
23
26
 
27
+ install_gem net-ssh '-v 2.2.2'
28
+ install_gem net-scp '-v 1.0.4'
29
+ install_gem fog '-v 1.9.0'
30
+
24
31
  if [[ "${INSTALL_BOSH_FROM_SOURCE}X" != "X" ]]; then
25
32
  mkdir -p /var/vcap/store/repos
26
33
  cd /var/vcap/store/repos
@@ -5,6 +5,8 @@
5
5
  # Options:
6
6
  # * $UPGRADE - re-install or upgrade gems if already installed
7
7
 
8
+ set -e # exit immediately if a simple command exits with a non-zero status
9
+
8
10
  if [[ $EUID -ne 0 ]]; then
9
11
  echo "ERROR: This script must be run as root" 1>&2
10
12
  exit 1
@@ -6,6 +6,8 @@
6
6
  # * $RUBY_VERSION - override ruby version to test/install
7
7
  # * $UPGRADE - re-install or upgrade ruby if already installed
8
8
 
9
+ set -e # exit immediately if a simple command exits with a non-zero status
10
+
9
11
  if [[ $EUID -ne 0 ]]; then
10
12
  echo "ERROR: This script must be run as root" 1>&2
11
13
  exit 1
@@ -5,6 +5,8 @@
5
5
  # Options:
6
6
  # * $UPGRADE - re-install or upgrade gems if already installed
7
7
 
8
+ set -e # exit immediately if a simple command exits with a non-zero status
9
+
8
10
  if [[ $EUID -ne 0 ]]; then
9
11
  echo "ERROR: This script must be run as root" 1>&2
10
12
  exit 1
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Validate that BOSH deployer is ready
4
4
 
5
+ set -e # exit immediately if a simple command exits with a non-zero status
6
+
5
7
  if [[ $EUID -ne 0 ]]; then
6
8
  echo "ERROR: This script must be run as root" 1>&2
7
9
  exit 1
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Bootstrap
3
- VERSION = "0.8.1"
3
+ VERSION = "0.8.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -313,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
313
  version: '0'
314
314
  segments:
315
315
  - 0
316
- hash: 2642136790450719456
316
+ hash: -279783410373190503
317
317
  requirements: []
318
318
  rubyforge_project:
319
319
  rubygems_version: 1.8.25