git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/scripts/config_version.sh
Commit message (Collapse)AuthorAgeFilesLines
* check if git repo exists when generating config versionMiles Stötzner 2022-07-161-1/+1
|
* Don't assume git is in /usr/bin; expect it on PATHReid Vandewiele 2019-10-161-2/+2
|
* Restore and clarify config_version functionalityReid Vandewiele 2019-10-161-5/+26
| | | | | | | | This branch is intended as a portability fix. Some functionailty had been inadvertently removed as unused, but testing revealed that it had a purpose. Because the purpose was unclear, this commit restores the functionality AND clarifies it in the script names and comments in config_version.sh.
* Remove code dead for more than 2 yearsRomain Tartière 2018-05-111-6/+1
| | | | | | r10k generates a .r10k-deploy.json file since version 2.1.0 which was released on October 28, 2015. New users of the control-repo are not likely to have a so old version of r10k, so remove this dead code.
* Do sanity checking earlyRomain Tartière 2018-05-111-0/+5
| | | | Fail before doing anything when passed parameters are invalid.
* Improve portabilityRomain Tartière 2018-05-111-11/+13
| | | | | | | | | - Fix shebang: `bash` is not always in `/bin/`, and since the script does not have bashism, rely on `sh` which is always in `/bin/`; - Use `/opt/puppetlabs/puppet/bin/ruby` if this file exist and is executable, otherwise use `ruby` from $PATH; - Use `code_manager_config_version.rb` if `.r10k-deploy.json` is found, and `config_version.rb` in all other cases.
* config_version: Show the compiling master's nameNate McCurdy 2017-07-051-3/+3
| | | | | | | | | | | | Prior to this, the config_version script just showed the commit ID of the version of code being compiled. This commit includes the compiling Puppet master's hostname and environment name in the config_version. This is very useful for debugging when a Puppet master is failing and you have multiple masters behind a load balancer. The output of config_version now looks like this: pupmaster01-production-ac9785273a10
* Update config_version to read r10k_deploy.json fileNick Walker 2015-12-181-1/+4
| | | | | | Update config_version.sh to read the r10k_deploy.json file if it exists. If it does not exist it will fall back to the existing logic
* Checking for git firstRanjit Viswakumar 2015-11-201-1/+3
|
* Update file permsissions to be 755 on scriptsNick Walker 2015-08-311-1/+1
|
* pulling some stuff from npwalker/control-repoNick Walker 2015-08-251-0/+7