knife-solo 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/lib/knife-solo/bootstraps/linux.rb +21 -1
- data/lib/knife-solo/cookbook_manager_selector.rb +1 -1
- data/lib/knife-solo/info.rb +1 -1
- data/lib/knife-solo/node_config_command.rb +6 -0
- data/test/gemfiles/Gemfile.chef-master +5 -0
- data/test/integration/archlinux_20131128_test.rb +17 -0
- data/test/integration/gentoo2011_test.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc5fe9ecb3ae1c82b5e1adceb0108d37d8b8ec56
|
4
|
+
data.tar.gz: 869dda3bdfa85f9f57591d162a3067924b6f039c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1516533d664b431e2424d493a02088f240eac13e7398bda438251e475433794554450f5430035b81223687fcfe5beb080b9c48dd9a39616c333a9b0430451899
|
7
|
+
data.tar.gz: 7cbe38fe74bcacc0c6e22bf20861ecef1f80a976ecfabfc83418abc41f85e71898189299e030fc7b18bda5670d92befbd1f974483276fefece00f43de53dd94e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
# 0.4.1 / 2013-12-07
|
2
|
+
|
3
|
+
## Changes and new features
|
4
|
+
|
5
|
+
* Support Oracle Enterprise Linux ([311][])
|
6
|
+
* Support Arch Linux ([327][])
|
7
|
+
* Make sure wget is installed on Debianoids ([320][])
|
8
|
+
|
9
|
+
## Fixes
|
10
|
+
|
11
|
+
* Explicitly set root path for default `*_path` options in Chef 11.8.0 ([308][])
|
12
|
+
* Verify that `node_path` is a String ([308][])
|
13
|
+
* Fix compatibility with Ruby 1.8 ([0bcae4a][])
|
14
|
+
|
15
|
+
## Thanks to our contributors!
|
16
|
+
|
17
|
+
* [aromarom64][aromarom64]
|
18
|
+
* [Łukasz Dubiel][bambuchaAdm]
|
19
|
+
* [Takamura Soichi][piglovesyou]
|
20
|
+
|
21
|
+
[308]: https://github.com/matschaffer/knife-solo/issues/308
|
22
|
+
[311]: https://github.com/matschaffer/knife-solo/issues/311
|
23
|
+
[320]: https://github.com/matschaffer/knife-solo/issues/320
|
24
|
+
[327]: https://github.com/matschaffer/knife-solo/issues/327
|
25
|
+
[0bcae4a]: https://github.com/matschaffer/knife-solo/commit/0bcae4a
|
26
|
+
|
1
27
|
# 0.4.0 / 2013-10-30
|
2
28
|
|
3
29
|
## Changes and new features
|
@@ -386,6 +412,7 @@ And a special thanks to [Teemu Matilainen][tmatilai] who is now on the list of d
|
|
386
412
|
[aaronjensen]: https://github.com/aaronjensen
|
387
413
|
[amoslanka]: https://github.com/amoslanka
|
388
414
|
[ares]: https://github.com/ares
|
415
|
+
[aromarom64]: https://github.com/aromarom64
|
389
416
|
[avit]: https://github.com/avit
|
390
417
|
[bambuchaAdm]: https://github.com/bambuchaAdm
|
391
418
|
[brynary]: https://github.com/brynary
|
@@ -411,6 +438,7 @@ And a special thanks to [Teemu Matilainen][tmatilai] who is now on the list of d
|
|
411
438
|
[patatepartie]: https://github.com/patatepartie
|
412
439
|
[patcon]: https://github.com/patcon
|
413
440
|
[pferdefleisch]: https://github.com/pferdefleisch
|
441
|
+
[piglovesyou]: https://github.com/piglovesyou
|
414
442
|
[portertech]: https://github.com/portertech
|
415
443
|
[retr0h]: https://github.com/retr0h
|
416
444
|
[rmoriz]: https://github.com/rmoriz
|
@@ -29,6 +29,22 @@ module KnifeSolo::Bootstraps
|
|
29
29
|
gem_install
|
30
30
|
end
|
31
31
|
|
32
|
+
def yaourt_install
|
33
|
+
ui.msg("Installing required packages...")
|
34
|
+
stream_command <<-BASH
|
35
|
+
if ! sudo grep -Fxq "[archlinuxfrx]" /etc/pacman.conf ; then
|
36
|
+
sudo bash -c 'echo "[archlinuxfr]" >> /etc/pacman.conf'
|
37
|
+
sudo bash -c 'echo "SigLevel = Never" >> /etc/pacman.conf'
|
38
|
+
sudo bash -c 'echo "Server = http://repo.archlinux.fr/\\\$arch" >> /etc/pacman.conf'
|
39
|
+
fi
|
40
|
+
if ! command -v yaourt >/dev/null 2>&1 ; then
|
41
|
+
sudo pacman -Sy --noconfirm yaourt
|
42
|
+
fi
|
43
|
+
yaourt -S --noconfirm ruby-chef rsync
|
44
|
+
BASH
|
45
|
+
run_command("sudo gem install --no-rdoc --no-ri pry") # patch for ruby-chef
|
46
|
+
end
|
47
|
+
|
32
48
|
def debianoid_gem_install
|
33
49
|
ui.msg "Updating apt caches..."
|
34
50
|
run_command("sudo apt-get update")
|
@@ -45,7 +61,7 @@ module KnifeSolo::Bootstraps
|
|
45
61
|
|
46
62
|
def debianoid_omnibus_install
|
47
63
|
run_command("sudo apt-get update")
|
48
|
-
run_command("sudo apt-get -y install rsync ca-certificates")
|
64
|
+
run_command("sudo apt-get -y install rsync ca-certificates wget")
|
49
65
|
omnibus_install
|
50
66
|
end
|
51
67
|
|
@@ -79,6 +95,8 @@ module KnifeSolo::Bootstraps
|
|
79
95
|
{:type => "yum_omnibus"}
|
80
96
|
when %r{Red Hat Enterprise}
|
81
97
|
{:type => "yum_omnibus"}
|
98
|
+
when %r{Enterprise Linux Enterprise Linux Server}
|
99
|
+
{:type => "yum_omnibus"}
|
82
100
|
when %r{Fedora release}
|
83
101
|
{:type => "yum_omnibus"}
|
84
102
|
when %r{Scientific Linux}
|
@@ -91,6 +109,8 @@ module KnifeSolo::Bootstraps
|
|
91
109
|
{:type => "zypper_omnibus"}
|
92
110
|
when %r{This is \\n\.\\O \(\\s \\m \\r\) \\t}
|
93
111
|
{:type => "emerge_gem"}
|
112
|
+
when %r{Arch Linux \\r \(\\l\)}
|
113
|
+
{:type => "yaourt"}
|
94
114
|
else
|
95
115
|
raise "Distribution not recognized. Please run again with `-VV` option and file an issue: https://github.com/matschaffer/knife-solo/issues"
|
96
116
|
end
|
@@ -38,7 +38,7 @@ module KnifeSolo
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def select_or_disable_by_chef_config!
|
41
|
-
managers.select
|
41
|
+
@managers = managers.select do |manager|
|
42
42
|
if (conf = manager.enabled_by_chef_config?)
|
43
43
|
Chef::Log.debug "#{manager} selected by configuration"
|
44
44
|
return manager
|
data/lib/knife-solo/info.rb
CHANGED
@@ -36,11 +36,17 @@ module KnifeSolo
|
|
36
36
|
:long => '--environment ENVIRONMENT',
|
37
37
|
:description => 'The Chef environment for your node'
|
38
38
|
|
39
|
+
# Set default chef_repo_path for Chef >= 11.8.0
|
40
|
+
Chef::Config.chef_repo_path = '.'
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
42
44
|
def nodes_path
|
43
45
|
path = Chef::Config[:node_path]
|
46
|
+
if path && !path.is_a?(String)
|
47
|
+
ui.error %Q{node_path is not a String: #{path.inspect}, defaulting to "nodes"}
|
48
|
+
path = nil
|
49
|
+
end
|
44
50
|
path && File.exist?(path) ? path : 'nodes'
|
45
51
|
end
|
46
52
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'integration_helper'
|
2
|
+
|
3
|
+
class ArchLinux20131128Test < IntegrationTest
|
4
|
+
def user
|
5
|
+
"root"
|
6
|
+
end
|
7
|
+
|
8
|
+
def image_id
|
9
|
+
"ami-d1cbebb8"
|
10
|
+
end
|
11
|
+
|
12
|
+
# this install method takes over 15m on an m1.small
|
13
|
+
# Uncomment this if you need to verify Arch operation
|
14
|
+
|
15
|
+
# include EmptyCook
|
16
|
+
# include EncryptedDataBag
|
17
|
+
end
|
@@ -10,7 +10,7 @@ class Gentoo2011Test < IntegrationTest
|
|
10
10
|
end
|
11
11
|
|
12
12
|
# `emerge chef` takes a very long time (~ 50 minutes) on an m1.small
|
13
|
-
#
|
13
|
+
# Uncomment this if you need to verify Gentoo operation
|
14
14
|
|
15
15
|
# include EmptyCook
|
16
16
|
# include Apache2Cook
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-solo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mat Schaffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: berkshelf
|
@@ -256,8 +256,10 @@ files:
|
|
256
256
|
- test/deprecated_command_test.rb
|
257
257
|
- test/gemfiles/Gemfile.chef-10
|
258
258
|
- test/gemfiles/Gemfile.chef-11
|
259
|
+
- test/gemfiles/Gemfile.chef-master
|
259
260
|
- test/gitignore_test.rb
|
260
261
|
- test/integration/amazon_linux_2012_09_bootstrap_test.rb
|
262
|
+
- test/integration/archlinux_20131128_test.rb
|
261
263
|
- test/integration/cases/apache2_bootstrap.rb
|
262
264
|
- test/integration/cases/apache2_cook.rb
|
263
265
|
- test/integration/cases/cache_path_usage.rb
|
@@ -370,8 +372,10 @@ test_files:
|
|
370
372
|
- test/deprecated_command_test.rb
|
371
373
|
- test/gemfiles/Gemfile.chef-10
|
372
374
|
- test/gemfiles/Gemfile.chef-11
|
375
|
+
- test/gemfiles/Gemfile.chef-master
|
373
376
|
- test/gitignore_test.rb
|
374
377
|
- test/integration/amazon_linux_2012_09_bootstrap_test.rb
|
378
|
+
- test/integration/archlinux_20131128_test.rb
|
375
379
|
- test/integration/cases/apache2_bootstrap.rb
|
376
380
|
- test/integration/cases/apache2_cook.rb
|
377
381
|
- test/integration/cases/cache_path_usage.rb
|