mirror of
https://github.com/genebean/dots.git
synced 2026-03-28 01:47:42 -04:00
Adding things for using Puppet
This commit is contained in:
parent
00e63ca7be
commit
bff34cde83
13 changed files with 86 additions and 8 deletions
10
bin/puppet/scripts/code_manager_config_version.rb
Executable file
10
bin/puppet/scripts/code_manager_config_version.rb
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env ruby
|
||||
require 'json'
|
||||
|
||||
environmentpath = ARGV[0]
|
||||
environment = ARGV[1]
|
||||
|
||||
r10k_deploy_file_path = File.join(environmentpath, environment, '.r10k-deploy.json')
|
||||
|
||||
# output the sha1 from the control-repo
|
||||
puts JSON.parse(File.read(r10k_deploy_file_path))['signature']
|
||||
Loading…
Add table
Add a link
Reference in a new issue