knife-solo_data_bag 1.0.0.beta.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -1
- data/CHANGELOG.md +3 -1
- data/README.md +3 -0
- data/gemfiles/Gemfile.chef.11.10.2 +5 -0
- data/gemfiles/Gemfile.chef.11.10.4 +5 -0
- data/lib/knife-solo_data_bag/version.rb +1 -1
- data/test/integration/bootstrap.sh +12 -10
- metadata +7 -5
data/.travis.yml
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.9.2
|
4
3
|
- 1.9.3
|
5
4
|
|
6
5
|
gemfile:
|
6
|
+
- ./gemfiles/Gemfile.chef.11.4.4
|
7
7
|
- ./gemfiles/Gemfile.chef.11.6.2
|
8
8
|
- ./gemfiles/Gemfile.chef.11.8.0
|
9
9
|
- ./gemfiles/Gemfile.chef.11.8.2
|
10
|
+
- ./gemfiles/Gemfile.chef.11.10.0
|
11
|
+
- ./gemfiles/Gemfile.chef.11.10.2
|
12
|
+
- ./gemfiles/Gemfile.chef.11.10.4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
## head
|
2
|
-
|
2
|
+
|
3
|
+
# 1.0.0 (02/27/2014)
|
4
|
+
* Only supports > chef 11.4. Use pre 1.0.0 versions for older chef support
|
3
5
|
|
4
6
|
# 0.4.0 (05/30/2013)
|
5
7
|
* Add support for creating a data bag item from a json file (--json-file) ([@joeyates](https://github.com/joeyates))
|
data/README.md
CHANGED
@@ -4,6 +4,9 @@ A knife plugin to make working with data bags easier in a chef solo environment.
|
|
4
4
|
If you are looking for a full featured chef solo management solution, you may
|
5
5
|
want to check out [knife solo](https://github.com/matschaffer/knife-solo).
|
6
6
|
|
7
|
+
*NOTE: Starting with 1.0.0, knife solo data bag only supports Chef versions >= 11.4.0.
|
8
|
+
If you need support for an earlier version of chef, use a knife solo data bag version < 1.0.0.*
|
9
|
+
|
7
10
|
## Build Status
|
8
11
|
![Build Status](https://secure.travis-ci.org/thbishop/knife-solo_data_bag.png)
|
9
12
|
|
@@ -2,38 +2,40 @@
|
|
2
2
|
|
3
3
|
set -e
|
4
4
|
|
5
|
+
DATA_DIR=/tmp/kitchen/data
|
6
|
+
|
5
7
|
function download_chef_version() {
|
6
8
|
echo -e "Installing curl..."
|
7
9
|
yum install -y curl
|
8
10
|
echo "Done"
|
9
11
|
|
10
12
|
echo -e "Downloading chef install script..."
|
11
|
-
curl -o /
|
12
|
-
chmod +x /
|
13
|
+
curl -o $DATA_DIR/chef_install.sh https://www.opscode.com/chef/install.sh
|
14
|
+
chmod +x $DATA_DIR/chef_install.sh
|
13
15
|
echo "Done"
|
14
|
-
/
|
16
|
+
$DATA_DIR/chef_install.sh -v $1
|
15
17
|
}
|
16
18
|
|
17
|
-
for version in 11.2.0-1 11.4.4-2 11.6.2-1 11.8.2-1 11.10.0-1; do
|
19
|
+
for version in 11.2.0-1 11.4.4-2 11.6.2-1 11.8.2-1 11.10.0-1 11.10.2-1 11.10.4-1; do
|
18
20
|
echo "##############################"
|
19
21
|
echo "# Processing $version"
|
20
22
|
echo "##############################"
|
21
23
|
|
22
|
-
if [ ! -f /
|
24
|
+
if [ ! -f $DATA_DIR/packages/chef-$version.el6.x86_64.rpm ]; then
|
23
25
|
download_chef_version $version
|
24
26
|
else
|
25
|
-
rpm -ivh --quiet /
|
27
|
+
rpm -ivh --quiet $DATA_DIR/packages/chef-$version*.rpm
|
26
28
|
fi
|
27
29
|
|
28
30
|
echo -e "Installing knife-solo_data_bag..."
|
29
|
-
/opt/chef/embedded/bin/gem install -q /
|
31
|
+
/opt/chef/embedded/bin/gem install -q $DATA_DIR/packages/*.gem --no-ri --no-rdoc
|
30
32
|
echo "Done"
|
31
33
|
|
32
|
-
knife solo data bag create foo bar --data-bag-path /
|
34
|
+
knife solo data bag create foo bar --data-bag-path $DATA_DIR/data_bags -j '{ "id": "bar", "my": "data" }'
|
33
35
|
|
34
|
-
chef-solo -c /
|
36
|
+
chef-solo -c $DATA_DIR/solo.rb -o foo -l info
|
35
37
|
|
36
|
-
knife solo data bag show foo bar --data-bag-path /
|
38
|
+
knife solo data bag show foo bar --data-bag-path $DATA_DIR/data_bags
|
37
39
|
|
38
40
|
echo -e "Cleaning up..."
|
39
41
|
rpm -e --quiet chef
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-solo_data_bag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Tommy Bishop
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -77,6 +77,8 @@ files:
|
|
77
77
|
- README.md
|
78
78
|
- Rakefile
|
79
79
|
- gemfiles/Gemfile.chef.11.10.0
|
80
|
+
- gemfiles/Gemfile.chef.11.10.2
|
81
|
+
- gemfiles/Gemfile.chef.11.10.4
|
80
82
|
- gemfiles/Gemfile.chef.11.4.4
|
81
83
|
- gemfiles/Gemfile.chef.11.6.2
|
82
84
|
- gemfiles/Gemfile.chef.11.8.0
|
@@ -117,9 +119,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
120
|
none: false
|
119
121
|
requirements:
|
120
|
-
- - ! '
|
122
|
+
- - ! '>='
|
121
123
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
124
|
+
version: '0'
|
123
125
|
requirements: []
|
124
126
|
rubyforge_project:
|
125
127
|
rubygems_version: 1.8.23
|