Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source 'https://rubygems.org'
gem 'base64'
gem 'rubocop', '= 1.25.1'
5 changes: 4 additions & 1 deletion chefctl/src/chefctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ module Config
# See Chefctl::Plugin.rerun_chef?
max_retries 1

# where to find certs and configs
client_config_dir '/etc/chef'

# The testing timestamp.
# See https://github.com/facebook/taste-tester
testing_timestamp '/etc/chef/test_timestamp'
Expand Down Expand Up @@ -249,7 +252,7 @@ def hostname
# them if necessary.
# The return value is ignored.
def generate_certs
client_prod_cert = '/etc/chef/client-prod.pem'
client_prod_cert = "#{Chefctl::Config.client_config_dir}/client-prod.pem"
if File.zero?(client_prod_cert)
Chefctl.logger.info('zero-byte client pem found, removing')
File.unlink(client_prod_cert)
Expand Down
Loading