git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* + config_version implementations with commit messageconfig_version_lirionH. P. 6 hours2-0/+144
|
* 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-163-5/+52
| | | | | | | | 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-112-30/+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.
* Remove execute permission and shebangsRomain Tartière 2018-05-112-2/+0
| | | | | | | The appropriate ruby interpreter is determined by the config_version.sh shell script which explicitely use it to start these ruby scripts. Removing the execute bit ensure users will not run these script with the wrong Ruby version.
* 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.
* Resolve Rubocop warningsNate McCurdy 2018-05-081-1/+1
| | | | | * Removed the useless assignment in the config_version.rb error catching * Single quote vs. double quote in Puppetfile
* Show the short hostname, not the FQDN in config_versionNate McCurdy 2017-12-152-2/+4
| | | | | | | | | | | | | | This is mainly a style and readability change. Prior to this, on masters whose hostname is actually their FQDN, the config_version script would show the entire FQDN. On nodes with really longs FQDN's, it was not very nice to look at. This takes the hostname of the master, splits it on dots (.) and takes the first segment. Now this: compile-master-02.int.lab.dmz.company-name.net-production-48fd18ab Is this: compile-master-02-production-48fd18ab
* Use the puppet-agent ruby in config_version.rbNate McCurdy 2017-12-151-1/+1
| | | | | | | | Prior to this, the config_version.rb script (used for r10k) attempted to use the system ruby to parse the script. This caused problems on Puppet masters that don't have `ruby` in PATH. This fixes that by hardcoding the puppet-agent's ruby in the shebang.
* config_version: Show the compiling master's nameNate McCurdy 2017-07-053-16/+24
| | | | | | | | | | | | 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
* Add ruby shebang to config_version scriptsNick Walker 2016-11-222-0/+2
| | | | | | | | | | | | | Prior to this commit, if you used windows bash git when you clone down the repo these files would get incorrect permissions which make them unexecutable. After this commit, due to some windows bash git magic I don't understand it appears that adding the shebang to the beginning of the file causes windows bash git to change the permissions to so the file is executable. This resolves https://github.com/puppetlabs/control-repo/issues/40
* Set the execute bit for CM config version scriptReid Vandewiele 2016-06-291-0/+0
| | | | | | | The execute bit needs to be set or CM will fail. I think this was probably just missed when the code_manager_config_version.rb file was added.
* Update config_version to read r10k_deploy.json fileNick Walker 2015-12-182-1/+13
| | | | | | 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
* Check for rugged or output UNIX epochRanjit Viswakumar 2015-11-201-11/+17
|
* Checking for git firstRanjit Viswakumar 2015-11-201-1/+3
|
* Update file permsissions to be 755 on scriptsNick Walker 2015-08-312-2/+2
|
* pulling some stuff from npwalker/control-repoNick Walker 2015-08-252-0/+24