chake 0.12 → 0.13

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: bd36fdb7ba1e6821df011b23e5124f0a1a333666
4
- data.tar.gz: c8a209c44c58782d0faf734faa5aa782c5fd64f1
3
+ metadata.gz: f18dace50b99feb988ea4db249d742f353fc7f18
4
+ data.tar.gz: 2a12997fa10fd14f0f3d988ce7acf3efd47c5bee
5
5
  SHA512:
6
- metadata.gz: d62c682ea5e0bad45b623a3aa20fc4eb07c7d05f2a823710ce40c34065c474396c03d0dc2a4af71b48a0eadfdfcaaad50116369347791001aeef392aeabfdf77
7
- data.tar.gz: e4709a62cbaa6e046be70f8252e49b1ba5a34842f48f17d85a30eb659250ab43d14e78172a041f4791ae1af80f6e89837e1ffae04366fe641c505f0c25244ad4
6
+ metadata.gz: 986a3bd9a58d916bf7bda591553a8352857698112fbb8ed68bb81b8b93bb3fa56703a2c81394373499141b2c6cbb05ea114394e8da883eee85597c9f9f85dc90
7
+ data.tar.gz: 1b6d81a2db5e59f98d759dadb7c578fe93fd74d6d96c0624e618e46c979f356175051636b07cbd4be2539aa206fa2347d21ccd19291c5f0246bdf85e498ab684
@@ -1,3 +1,9 @@
1
+ # 0.13
2
+
3
+ * transmit decrypted files with mode 0400
4
+ * Use the Omnibus packages from Chef upstream on platforms where we don't have
5
+ proper Chef packages from the OS official repository.
6
+
1
7
  # 0.12
2
8
 
3
9
  * Switch manpage build from ronn to asciidoctor
@@ -201,7 +201,13 @@ $nodes.each do |node|
201
201
  encrypted.each do |encrypted_file, target_file|
202
202
  target = File.join(tmpdir, target_file)
203
203
  mkdir_p(File.dirname(target))
204
- sh 'gpg', '--quiet', '--batch', '--use-agent', '--output', target, '--decrypt', encrypted_file
204
+ rm_f target
205
+ File.open(target, 'w', 0400) do |output|
206
+ IO.popen(['gpg', '--quiet', '--batch', '--use-agent', '--decrypt', encrypted_file]) do |data|
207
+ output.write(data.read)
208
+ end
209
+ end
210
+ puts "#{target} (decrypted)"
205
211
  end
206
212
  sh *rsync, rsync_logging, tmpdir + '/', node.rsync_dest
207
213
  end
@@ -1,11 +1,18 @@
1
1
  echo "---------------------"
2
- echo "Unsupported platform:"
2
+ echo "Unsupported platform: Installing chef-solo with omnibus package"
3
3
  echo "---------------------"
4
4
  echo
5
+
5
6
  for file in /etc/os-release /etc/issue; do
6
7
  if [ -f $file ]; then
7
8
  cat $file
8
9
  break
9
10
  fi
10
11
  done
11
- exit 1
12
+
13
+ if ! which chef-solo >/dev/null ; then
14
+ # Install chef-solo via omnibus package that chef provides
15
+ # This script should install chef-solo in any Linux distribution
16
+ wget -O- https://opscode.com/chef/install.sh | bash
17
+ exit
18
+ fi
@@ -1,3 +1,3 @@
1
1
  module Chake
2
- VERSION = "0.12"
2
+ VERSION = "0.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chake
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.12'
4
+ version: '0.13'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Terceiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-06 00:00:00.000000000 Z
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -111,7 +111,6 @@ files:
111
111
  - lib/chake/backend/local.rb
112
112
  - lib/chake/backend/ssh.rb
113
113
  - lib/chake/bootstrap/00_set_hostname.sh
114
- - lib/chake/bootstrap/01_centos7.sh
115
114
  - lib/chake/bootstrap/01_debian.sh
116
115
  - lib/chake/bootstrap/99_unsupported.sh
117
116
  - lib/chake/node.rb
@@ -146,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
145
  version: '0'
147
146
  requirements: []
148
147
  rubyforge_project:
149
- rubygems_version: 2.4.5.1
148
+ rubygems_version: 2.5.1
150
149
  signing_key:
151
150
  specification_version: 4
152
151
  summary: serverless configuration management tool for chef
@@ -156,4 +155,3 @@ test_files:
156
155
  - spec/chake/backend_spec.rb
157
156
  - spec/chake/node_spec.rb
158
157
  - spec/spec_helper.rb
159
- has_rdoc:
@@ -1,81 +0,0 @@
1
- if [ -f /etc/centos-release ] && grep -q 'CentOS Linux release 7' /etc/centos-release; then
2
- cat > /etc/yum.repos.d/chef.key <<EOF
3
- -----BEGIN PGP PUBLIC KEY BLOCK-----
4
- Version: GnuPG v1.4.11 (GNU/Linux)
5
-
6
- mQINBFLUbogBEADceEoxBDoE6QM5xV/13qiELbFIkQgy/eEi3UesXmJblFdU7wcD
7
- LOW3NuOIx/dgbZljeMEerj6N1cR7r7X5sVoFVEZiK4RLkC3Cpdns0d90ud2f3VyK
8
- K7PXRBstdLm3JlW9OWZoe4VSADSMGWm1mIhT601qLKKAuWJoBIhnKY/RhA/RBXt7
9
- z22g4ta9bT67PlliTo1a8y6DhUA7gd+5TsVHaxDRrzc3mKObdyS5LOT/gf8Ti2tY
10
- BY5MBbQ8NUGExls4dXKlieePhKutFbde7sq3n5sdp1Ndoran1u0LsWnaSDx11R3x
11
- iYfXJ6xGukAc6pYlUD1yYjU4oRGhD2fPyuewqhHNUVwqupTBQtEGULrtdwK04kgI
12
- H93ssGRsLqUKe88uZeeBczVuupv8ZLd1YcQ29AfJHe6nsevsgjF+eajYlzsvC8BN
13
- q3nOvvedcuI6BW4WWFjraH06GNTyMAZi0HibTg65guZXpLcpPW9hTzXMoUrZz8Mv
14
- J9yUBcFPKuFOLDpRP6uaIbxJsYqiituoltl0vgS/vJcpIVVRwSaqPHa6S63dmKm2
15
- 6gq18v4l05mVcInPn+ciHtcSlZgQkCsRTSvfUrK+7nzyWtNQMGKstAZ7AHCoA8Pb
16
- c3i7wyOtnTgfPFHVpHg3JHsPXKk9/71YogtoNFoETMFeKL1K+O+GMQddYQARAQAB
17
- tDdwYWNrYWdlY2xvdWQgb3BzIChwcm9kdWN0aW9uIGtleSk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F
68
- cat > /etc/yum.repos.d/chef.repo <<EOF
69
- [chef_stable]
70
- name=chef_stable
71
- baseurl=https://packagecloud.io/chef/stable/el/7/\$basearch
72
- repo_gpgcheck=1
73
- gpgcheck=0
74
- enabled=1
75
- gpgkey=file:///etc/yum.repos.d/chef.key
76
- sslverify=1
77
- sslcacert=/etc/pki/tls/certs/ca-bundle.crt
78
- EOF
79
- yum install -y chef rsync
80
- exit
81
- fi