Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
rake task to refresh all vaults
Browse files Browse the repository at this point in the history
  • Loading branch information
dwradcliffe committed Jun 21, 2014
1 parent 5eeea17 commit d3a5d2b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Rakefile
Expand Up @@ -35,3 +35,21 @@ begin
rescue LoadError
puts '>>>>> Kitchen gem not loaded, omitting tasks' unless ENV['CI']
end

desc 'Refresh all chef vaults'
task :refresh_vaults do
[
'certs/production',
'certs/staging',
'dnsimple/credentials',
'duo/credentials',
'librato/credentials',
'rubygems/production',
'rubygems/staging',
'sensu/credentials',
'slack/credentials'
].each do |item|
pair = item.split('/')
system "knife vault refresh #{pair[0]} #{pair[1]}"
end
end

0 comments on commit d3a5d2b

Please sign in to comment.