boxes 2.3.0 → 2.4.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: dc7eeefbffeafa0186b000abeb8b9b3710e74d11
4
- data.tar.gz: b74813d13cf99d8051f4456ef9906cdd874f379e
3
+ metadata.gz: a423b91533dfe6a7a73c24d407c4075100f5ac40
4
+ data.tar.gz: f790cb5e739bba333d9165a30ac5a8ad35e0bd9c
5
5
  SHA512:
6
- metadata.gz: edd3ece8fbfa6725acfdb939a821d3339aa70af16e9ec4945b62f0846bf76ac12ef9458a82ce2fbe0769657453ef2f882f450cf71635bfd9a91b4714eb92d648
7
- data.tar.gz: a2e5ca54402d62a893720c7f3a13ef6ee16f4f53c5ab9dab44076076191f3ef814dac5a2c124f0d67db3c3dd2d8ba815d16ba1be217d1afc180573bc20f20876
6
+ metadata.gz: a44e24fe915792298e871a58d51fe222199a42ea0e959e4cf6a2ab62552935a1addf036a94bcc66528cdceb4dbed92a895af2623dfff2cb7e02267b8cac2b44f
7
+ data.tar.gz: 1f8b4e1406fd6614c7825f1197654e7a0ce9e48155edc1dedbf315762a444bc7706e8a36224a00c0244defd9898e8505b236313f595f50563e8fa5925c8c7c6a
@@ -1 +1 @@
1
- ruby-2.3.0
1
+ ruby-2.3.1
@@ -1,5 +1,31 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.4.0 (10/11/2016)
4
+
5
+ * Add Ruby 2.3.1.
6
+ * Adds scripts for configuring MySQL and Postgres.
7
+ * Fix test issues where `fakefs` was broken.
8
+ * Unpin the project dependencies as it can be more lenient.
9
+ * Ubuntu Wily (15.10) was also affected by the network naming issue ([31][]).
10
+ * Stop removing persistent networking rules, as this breaks on systemd systems.
11
+ ([31][]).
12
+ * Reduce the default set of packages which are installed ([32][]).
13
+
14
+ [31]: https://github.com/nickcharlton/boxes/pull/31
15
+ [32]: https://github.com/nickcharlton/boxes/pull/32
16
+
17
+ ## 2.3.0 (10/06/2016)
18
+
19
+ * Add support for Ubuntu Xenial (16.04) ([28][]).
20
+ * Remove Ubuntu Vivid (15.04) ([29][]).
21
+ * Add `libffi-dev` for Ansible.
22
+ * Fixes an issue with Xenial where the network is lost after building.
23
+ * Update the Ubuntu Trusty (14.04) ISO image.
24
+ * Update the Debian Jessie ISO.
25
+
26
+ [29]: https://github.com/nickcharlton/boxes/pull/29
27
+ [28]: https://github.com/nickcharlton/boxes/pull/28
28
+
3
29
  ## 2.2.0 (10/05/2016)
4
30
 
5
31
  * Update the Trusty ISO image to a working kernel.
@@ -26,14 +26,14 @@ Gem::Specification.new do |spec|
26
26
  spec.test_files = spec.files.grep(/^(test|spec|features)/)
27
27
  spec.require_paths = ['lib']
28
28
 
29
- spec.add_dependency 'claide', '~> 0.9'
30
- spec.add_dependency 'colored', '~> 1.2'
29
+ spec.add_dependency "claide"
30
+ spec.add_dependency "colored"
31
31
 
32
- spec.add_development_dependency 'bundler', '~> 1.9'
33
- spec.add_development_dependency 'rake', '~> 10.4'
34
- spec.add_development_dependency 'rspec', '~> 3.3'
35
- spec.add_development_dependency 'cucumber', '~> 2.1'
36
- spec.add_development_dependency 'aruba', '~> 0.8'
37
- spec.add_development_dependency 'fakefs', '~> 0.6'
38
- spec.add_development_dependency 'pry'
32
+ spec.add_development_dependency "bundler"
33
+ spec.add_development_dependency "rake"
34
+ spec.add_development_dependency "rspec"
35
+ spec.add_development_dependency "cucumber"
36
+ spec.add_development_dependency "aruba"
37
+ spec.add_development_dependency "fakefs"
38
+ spec.add_development_dependency "pry"
39
39
  end
@@ -1,4 +1,4 @@
1
1
  # Versions and other declarations.
2
2
  module Boxes
3
- VERSION = "2.3.0".freeze
3
+ VERSION = "2.4.0".freeze
4
4
  end
@@ -1,5 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
+ apt-get -qy install python-setuptools python-dev
4
+
3
5
  case $(lsb_release -is) in
4
6
  'ubuntu')
5
7
  apt-add-repository ppa:ansible/ansible
@@ -0,0 +1,13 @@
1
+ #!/bin/bash
2
+
3
+ # set a root password of "vagrant"
4
+ debconf-set-selections <<< "mysql-server mysql-server/root_password password vagrant"
5
+ debconf-set-selections <<< "mysql-server mysql-server/root_password_again password vagrant"
6
+
7
+ apt-get install -qy mysql-server libmysqlclient-dev
8
+
9
+ # enable listening on all addresses
10
+ sed -i.bak "s/bind-address\s*= 127.0.0.1/bind-address = 0.0.0.0/g" /etc/mysql/my.cnf
11
+
12
+ # create a local user which can connect from anywhere
13
+ mysql -u root -pvagrant -e "CREATE USER 'vagrant'@'%' IDENTIFIED BY 'vagrant'; GRANT ALL PRIVILEGES ON *.* TO 'vagrant'@'%' IDENTIFIED BY 'vagrant';"
@@ -0,0 +1,26 @@
1
+ #!/bin/bash
2
+
3
+ apt-get install -qy postgresql postgresql-contrib libpq-dev postgresql-client
4
+
5
+ POSTGRES_VERSION=$(dpkg-query -W -f='${Depends}' postgresql |
6
+ sed 's/\postgresql-//g')
7
+
8
+ # allow connections on the local network
9
+ cat << EOF >> /etc/postgresql/$POSTGRES_VERSION/main/pg_hba.conf
10
+ # Allow connections on the 192.168.*.* local/VM network
11
+ host all all 192.168.0.0/16 md5
12
+ host all all 172.16.0.0/12 md5
13
+ EOF
14
+
15
+ # enable listening on all addresses
16
+ sed -i.bak "s/#listen_addresses = 'localhost'/listen_addresses = '*'/g" /etc/postgresql/$POSTGRES_VERSION/main/postgresql.conf
17
+
18
+ # restart postgres
19
+ service postgresql restart
20
+
21
+ # create a local user
22
+ # createuser --createdb --super --pwprompt -e vagrant (with a password of 'vagrant')
23
+ su postgres -c "psql -c \"CREATE ROLE vagrant PASSWORD 'md5ce5f2d27bc6276a03b0328878c1dc0e2' SUPERUSER CREATEDB NOCREATEROLE INHERIT LOGIN;\""
24
+
25
+ # create a history file
26
+ touch ~/.psql_history
@@ -18,9 +18,8 @@ apt-get -qy update
18
18
  apt-get -qy upgrade
19
19
 
20
20
  # install some oft used packages
21
- apt-get -qy install linux-headers-$(uname -r) build-essential
22
- apt-get -qy install zlib1g-dev libssl-dev
23
- apt-get -qy install python-software-properties python-setuptools python-dev
21
+ apt-get -qy install linux-headers-$(uname -r) build-essential \
22
+ zlib1g-dev libssl-dev
24
23
 
25
24
  # configure password-less sudo
26
25
  usermod -a -G sudo vagrant
@@ -35,10 +34,10 @@ curl -Lo /home/vagrant/.ssh/authorized_keys \
35
34
  chmod 0600 /home/vagrant/.ssh/authorized_keys
36
35
  chown -R vagrant:vagrant /home/vagrant/.ssh
37
36
 
38
- # under Ubuntu 16.04 (Xenial), networking gets lost on reboot
37
+ # under systemd based Ubuntu systems, networking breaks on first reboot
39
38
  # this is because it's renamed to follow the PCI slot
40
39
  case $(lsb_release -cs) in
41
- "xenial")
40
+ "wily" | "xenial")
42
41
  sed -i "s/ens33/ens32/g" /etc/network/interfaces
43
42
  ;;
44
43
  *)
@@ -11,12 +11,19 @@ echo "Cleaning up dhcp..."
11
11
  rm /var/lib/dhcp/*
12
12
 
13
13
  # make sure Udev doesn't block our network
14
+ # except on systemd systems where this isn't used
14
15
  # http://6.ptmc.org/?p=164
15
- echo "Cleaning up udev..."
16
- rm /etc/udev/rules.d/70-persistent-net.rules
17
- mkdir /etc/udev/rules.d/70-persistent-net.rules
18
- rm -rf /dev/.udev/
19
- rm /lib/udev/rules.d/75-persistent-net-generator.rules
16
+ case $(lsb_release -cs) in
17
+ "wily" | "xenial")
18
+ ;;
19
+ *)
20
+ echo "Cleaning up udev..."
21
+ rm /etc/udev/rules.d/70-persistent-net.rules
22
+ mkdir /etc/udev/rules.d/70-persistent-net.rules
23
+ rm -rf /dev/.udev/
24
+ rm /lib/udev/rules.d/75-persistent-net-generator.rules
25
+ ;;
26
+ esac
20
27
 
21
28
  # clean up apt
22
29
  echo "Cleaning up apt..."
@@ -31,6 +31,7 @@ ruby-install ruby 2.2.2
31
31
  ruby-install ruby 2.2.3
32
32
  ruby-install ruby 2.2.4
33
33
  ruby-install ruby 2.3.0
34
+ ruby-install ruby 2.3.1
34
35
 
35
36
  # update gems and install bundler
36
37
  source /usr/local/share/chruby/chruby.sh
@@ -1,9 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Boxes::Subprocess do
4
- let(:command) do
5
- File.expand_path 'spec/support/subprocess_command.rb'
6
- end
4
+ let(:command) { "spec/support/subprocess_command.rb" }
7
5
 
8
6
  it 'runs a command and yields a block' do
9
7
  expect { |b| Boxes::Subprocess.run(command, &b) }.to yield_control
@@ -25,8 +25,8 @@
25
25
  <%- end -%>
26
26
  "headless": true,
27
27
 
28
- "iso_url": "http://cdimage.debian.org/debian-cd/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso",
29
- "iso_checksum": "ad4e8c27c561ad8248d5ebc1d36eb172f884057bfeb2c22ead823f59fa8c3dff",
28
+ "iso_url": "http://cdimage.debian.org/debian-cd/8.6.0/amd64/iso-cd/debian-8.6.0-amd64-netinst.iso",
29
+ "iso_checksum": "9479c5c2df72ae3878116c43fb42eefae53d1fe363ce514a6afc8289064b9f5f",
30
30
  "iso_checksum_type": "sha256",
31
31
 
32
32
  "ssh_username": "vagrant",
metadata CHANGED
@@ -1,127 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxes
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Charlton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-10 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: '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: '0.9'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: colored
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.2'
33
+ version: '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.2'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.9'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.9'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '10.4'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '10.4'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '3.3'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '3.3'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: cucumber
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '2.1'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '2.1'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: aruba
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '0.8'
103
+ version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '0.8'
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: fakefs
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '0.6'
117
+ version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '0.6'
124
+ version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: pry
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -176,6 +176,8 @@ files:
176
176
  - lib/boxes/version.rb
177
177
  - scripts/ansible.sh
178
178
  - scripts/chef.sh
179
+ - scripts/mysql.sh
180
+ - scripts/postgres.sh
179
181
  - scripts/postinstall.sh
180
182
  - scripts/puppet.sh
181
183
  - scripts/purge.sh