deploy_rubygem 0.60.28 → 0.60.29

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
  SHA256:
3
- metadata.gz: 560eeb1bcd98d335fcd4c1cb339b52b3ebbefb3c7d7cdd6b70341497be4219f5
4
- data.tar.gz: 12d5f2ebe6b2f88a231f662533192acc9f3958acc7216586fde1698bb1faa536
3
+ metadata.gz: ec76c875f88949500709195f51e3deadc201423d45165a07d7091eea4ac83af7
4
+ data.tar.gz: f9ae71f8b5f2165373adae80916ef66afcfb9fd55cbaaff6a4e31ff840f0f9e7
5
5
  SHA512:
6
- metadata.gz: 31f2ce57e486a66962902b40bcd91d3f2a0f87fcad5024c460b11a567404abf2bf6289be4721f29c3dc9149fb7f4fd421e43cc71e3e46595ae6ce93b3739a6a9
7
- data.tar.gz: 3241ce37ec96c62d34fcb019bfa3ec19023b87081798e44207a4ad9fcaf68bf2ca17a2c134de13992d6fc1e16a3cf308de339254407c2299874bc22a508d9d5a
6
+ metadata.gz: 676f0eb83748ac8da940f8a6fb3183f26204bf7c639725ac79f39764c64c63b8dc82926471afe21e39d6533bd5943e02bb7f552a860a3999bd5d187339d6da72
7
+ data.tar.gz: 3b0db7dc3ceb3e5ffdedf12ea975fc534748cba32fc89de9ed19b93bab97da1c25d938dbe8a57735ebd24d0441df7ceb63832794b69c7490dafb8594b739215c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -0,0 +1,14 @@
1
+ #!/opt/chef-workstation/embedded/bin/ruby
2
+ # Signal.trap('INT') { exit 1 }
3
+
4
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), %w[.. lib])
5
+ require 'rubygems' unless defined?(Gem)
6
+ require 'deploy_rubygem'
7
+
8
+ workstation_options = JSON.parse(File.read(ARGV[0]))
9
+
10
+ if workstation_options['user_folder'] == '/root'
11
+ DeployRubygem::ChefNode.new(workstation_options).boostrap
12
+ else
13
+ DeployRubygem::Workstation.new(workstation_options).boostrap_workstation
14
+ end
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'json'
4
+
5
+ system('curl -L https://omnitruck.chef.io/install.sh > install.sh')
6
+ system('sudo bash install.sh -P chef-workstation')
7
+
8
+ workstation_options = {
9
+ user_folder: '/root',
10
+ node_name: ENV['NODENAME'],
11
+ knife_name: ENV['KNIFE_NAME'],
12
+ policyname: ENV['POLICYNAME'],
13
+ policygroup: ENV['POLICYGROUP'],
14
+ chef_server_url: ENV['CHEF_SERVER_URL'],
15
+ chef_client_key: ENV['CHEF_CLIENT_KEY'],
16
+ chef_knife_key: ENV['CHEF_KNIFE_KEY']
17
+ }
18
+
19
+ File.write('node_options', JSON.generate(workstation_options))
20
+ system('sudo bootstrap_chef_workstation node_options')
21
+
22
+ workstation_options[:user_folder] = ENV['HOME']
23
+ File.write('workstation_options', JSON.generate(workstation_options))
24
+ system('bootstrap_chef_workstation workstation_options')
@@ -28,17 +28,17 @@ module DeployRubygem
28
28
  puts "waiver_file = #{waiver_file}"
29
29
 
30
30
  check
31
- system("inspec exec #{inspec_path} #{inspec_options.join(' ')}")
31
+ system("chef inspec exec #{inspec_path} #{inspec_options.join(' ')}")
32
32
  end
33
33
 
34
34
  def update
35
35
  clean
36
- system("inspec vendor #{inspec_path} ")
36
+ system("chef inspec vendor #{inspec_path} ")
37
37
  end
38
38
 
39
39
  def save_as_html(html_file)
40
40
  check
41
- system("inspec exec #{inspec_path} #{inspec_options.join(' ')} --reporter html:#{html_file}")
41
+ system("chef inspec exec #{inspec_path} #{inspec_options.join(' ')} --reporter html:#{html_file}")
42
42
  end
43
43
 
44
44
  def test_json
@@ -5,5 +5,5 @@ require_relative 'rubygem'
5
5
  # Set version for DeployRubygem
6
6
  module DeployRubygem
7
7
  # VERSION = new_deploy_rubygem.gvb_version.short_version
8
- VERSION = '0.60.28'
8
+ VERSION = '0.60.29'
9
9
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deploy_rubygem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.28
4
+ version: 0.60.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Provencher
@@ -109,7 +109,9 @@ description: Using Chef cookbook style and force any script using it to switch t
109
109
  chef even if it is not install. It will install it tho ;)
110
110
  email:
111
111
  - jimbo_dragon@hotmail.com
112
- executables: []
112
+ executables:
113
+ - install_chef_workstation
114
+ - bootstrap_chef_workstation
113
115
  extensions: []
114
116
  extra_rdoc_files:
115
117
  - README.md
@@ -124,6 +126,8 @@ files:
124
126
  - LICENSE.txt
125
127
  - README.md
126
128
  - Rakefile
129
+ - bin/bootstrap_chef_workstation
130
+ - bin/install_chef_workstation
127
131
  - exe/deploy_rubygem
128
132
  - lib/deploy_rubygem.rb
129
133
  - lib/deploy_rubygem/chef_node.rb
metadata.gz.sig CHANGED
Binary file