git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/scripts/config_version-r10k.rb
blob: beacabcc89567f71e114ff4e27595e5c860a82e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/opt/puppetlabs/puppet/bin/ruby
require 'json'
require 'socket'

environmentpath = ARGV[0]
environment     = ARGV[1]

# Get the hostname of the Puppet master compiling the catalog.
# Sometimes the hostname is the fqdn, so we'll take the first segment.
compiling_master = Socket.gethostname.split('.').first

# Get the path to the Code Manager deployment info file.
r10k_deploy_file_path = File.join(environmentpath, environment, '.r10k-deploy.json')

# Get the first 12 characters of the commit ID out of the deployment file.
commit_id = JSON.parse(File.read(r10k_deploy_file_path))['signature'][0...11]

# Show the compiling master, environment name, and commit ID.
puts "#{compiling_master}-#{environment}-#{commit_id}"
er'>| * | switch to npwalker/abrader-gmsNick Walker 2015-10-291-2/+2 | | | | * | enable SSL on the zack/r10k webhookNick Walker 2015-10-292-2/+2 | | | | * | Add $::fqdn to post receive hook titleNick Walker 2015-10-281-3/+3 | | | | | | | | | | | | Also, change other references of $fqdn to $::fqdn | * | remove environment_timeout =0 from environment.confNick Walker 2015-10-281-6/+0 | | | | * | disable SSL on the zack/r10k webhookNick Walker 2015-10-282-2/+1 | | | | | | | | | | | | | | | The abrader/gms provider for gitlab doesn't support disabling ssl verification but will soon. | * | enable ssl on the webhookNick Walker 2015-10-282-15/+17 | | | | * | make environment timeout setting refresh the puppet master serviceNick Walker 2015-10-261-0/+1 | | | | * | Fix the update-classes script and set appropriate perms on itNick Walker 2015-10-262-1/+2 | | | | * | Fix some embarassing typosNick Walker 2015-10-262-2/+2 | | | | * | Configure the MoM to update the classifier after deploying codeNick Walker 2015-10-264-0/+36 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This entailed configring the classifier to never sync on a schedule. Changing environment_timeout to unlimited for all masters. Setting a postrun command for r10k that would update the class information in the classifier (the update-classes endpoint). | * | add .gitignore to ignore my example hiera fileNick Walker 2015-10-221-0/+1 | | | | * | Multiple fixes to the READMENick Walker 2015-10-221-12/+12 | | | | | | | | | | | | | | | | | | fix step 16 and 17 being out of order fix a step that referred erronously to step 4 change the numbering to be reflective of actual numbering | * | fix incorrect curly braceNick Walker 2015-10-221-1/+1 | | | | * | fix site.pp to not include a role that is emptyNick Walker 2015-10-221-1/+4 | | | | * | Clean up the README so it works from top to bottomNick Walker 2015-10-211-42/+20 | | | | | | | | | | | | | | | I removed some extraneos notes I had and added a few more bits of documentation. | * | fix whitespaceNick Walker 2015-10-211-2/+2 | | | | * | Remove notes about making control-repo publicNick Walker 2015-10-201-4/+0 | | | | * | Change the zack/r10k webhook to not authenticateNick Walker 2015-10-202-1/+33 | | | | * | Change puppetdb heap size to 96MB from 64MBNick Walker 2015-10-161-2/+2 | | | | * | Change to using the webhook without mcollectiveNick Walker 2015-10-165-15/+33 | | | | | | | | | | | | | | | | | | In order to complete the change I refactered the webhook into its own set of profiles, one with mcollective and the other without. | * | Add some notifies to pe services after making changesNick Walker 2015-10-151-0/+2 | | | | * | Change max_requests_per_instance to 10KNick Walker 2015-10-061-1/+1 | | | | * | update READMENick Walker 2015-09-291-3/+5 | | | | * | Update README to remove --mirror from git cloneNick Walker 2015-09-251-1/+1 | | | | * | Update README some moreNick Walker 2015-09-241-62/+110 | | | | * | Ensure /etc/gitlab/ssl exists before putting certs in itNick Walker 2015-09-241-0/+4 | | | | * | Update README partiallyNick Walker 2015-09-221-15/+34 | | | | | | | | | | | | | | | | | | | | | I made some updates to the README that I never committed. I'm probably going to change some of this but it's more useful with these additions than without. | * | Correct module namespace for stash moduleNick Walker 2015-09-221-1/+1 | | | | * | Add hiera key for tuning max_requests_per_instanceNick Walker 2015-09-221-0/+3 | | | | | | | | | | | | https://docs.puppetlabs.com/pe/2015.2/config_puppetserver.html#tuning-maxrequestsperinstance-on-puppet-server | * | add modules for stash and a profileNick Walker 2015-08-252-10/+32 | | | | * | Update the repo name for deploy keys and webhook to match READMENick Walker 2015-08-181-2/+2 | | | | * | Update READMENick Walker 2015-08-181-8/+22 | | | | * | Update version of abrader-gmsNick Walker 2015-08-181-1/+1 | | | | * | Update the README with more specific instructionsNick Walker 2015-08-181-0/+26 | | | | | | | | | | | | This is still a WIP | * | Move some hieradata around for easier testing in vagrantNick Walker 2015-08-183-0/+5 | | | | | | | | | | | | | | | | | | | | | | | | I now have a virtual hierarchy level for setting up my lower memory settings when using vagrant/virtualbox. The gms settings are in an example-puppet-master.yaml file in the nodes directory which are needed for the instructions. | * | Copy agent certs into Gitlab directory for Gitlab SSLNick Walker 2015-08-181-0/+13 | | | | * | Change default gitlab url to be https instead of httpNick Walker 2015-08-171-1/+1 | | | | * | Add webhook config to git management systemNick Walker 2015-08-171-2/+11 | | | | * | Add abrader-gms module to PuppetfileNick Walker 2015-08-171-0/+5 | | | | * | Add vhsn/gitlab and acidprime/r10k to PuppetfileNick Walker 2015-08-141-0/+7 | | | | * | Add a gitlab roleNick Walker 2015-08-141-0/+5 | | | | * | Add a gitlab profile / add ssh-keygen to puppetmaster profileNick Walker 2015-08-142-0/+45 | | |