tag:github.com,2008:https://github.com/gruntwork-io/bash-commons/releases Tags from bash-commons 2024-07-29T16:42:05Z tag:github.com,2008:Repository/128768909/v0.2.4 2024-07-29T16:43:55Z v0.2.4 arsci tag:github.com,2008:Repository/128768909/v0.2.3 2024-07-23T22:40:56Z v0.2.3 <p>ubuntu version updates (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/66">#66</a>)</p> <p>- Remove ubuntu 16.04/18.04 <br />- Add support for ubuntu 22.04 <br />- Add test for no IMDS version specified</p> gcagle3 tag:github.com,2008:Repository/128768909/v0.2.2 2024-06-28T22:26:21Z v0.2.2 <p>Bug/fix-if-statement-67 (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/68">#68</a>)</p> <p>* fixing unbound variable</p> <p>Using -z in an if statement causes an unbound variable error if set -eu is declared but the variable has not been declared. Changing thing to -n which checks if the variable is declared and/or undefined. <br />undefined is an empty string like bob="" <br />undeclared is if it has never been declared at all</p> <p>* Check for IMDS Endpoint</p> <p>This checks of the IMDS Endpoint is available. If not if fails.</p> <p>* Add error message when IMDS Endpoint is unavailable</p> <p>Add an error message if the IMDS Metadata Endpoint is not available.</p> gcagle3 tag:github.com,2008:Repository/128768909/v0.2.1 2024-06-27T19:21:42Z v0.2.1 <p>fixing unbound variable (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/64">#64</a>)</p> <p>Using -z in an if statement causes an unbound variable error if set -eu is declared but the variable has not been declared. Changing thing to -n which checks if the variable is declared and/or undefined. <br />undefined is an empty string like bob="" <br />undeclared is if it has never been declared at all</p> gcagle3 tag:github.com,2008:Repository/128768909/v0.2.0 2024-06-27T19:20:50Z v0.2.0 <p>Bug/check imds version 57 (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/60">#60</a>)</p> <p>* Adde check for IMDS version</p> <p>* move metadata below endpoint declaration</p> <p>Moved check for IMDS version to below the metadata_endpoint declaration to be able to take advantage of it.</p> <p>* updated default to IMDSv2</p> <p>updated the comments to reflect IMDSv2 as the default.</p> <p>* Add IMDS version 2 to README.md</p> <p>Changing IMDSv2 to be default. Updating the README to reflect this change.</p> <p>* dealing with IMDS being blocked</p> <p>Taking in to account if a firewall is configured to block IMDS calls. And setting default to version 2.</p> <p>* check IMDSv2 Token endpoint</p> <p>Checks the IMDSv2 Token endpoint to verify if IMDSv2 is active and available. <br />If not, checks to verify if IMDSv1 endpoint is active and available.</p> <p>* wrap curl in variable</p> <p>curl command failure cause script to abort. Wrapping inside a variable should allow the script to continue.</p> <p>* adding sudo to curl</p> <p>curl to IMDS endpoint fails as a normal user in some cases (including testing with docker-compose).</p> <p>* identify version failure in output</p> <p>Identify in the output if it was IMDSv1 or IMDSv2 that failed.</p> <p>* remove version lock from Dockerfile</p> <p>cnf-lint and pyrsistent unlocking version</p> <p>* unlock cnf-lint and pyrsistent versions</p> <p>Unlocking versions for cnf-lint and pyrsistent in Docker file for Ubuntu 20.04</p> <p>* adding check for user override to IMDS version</p> <p>Adding if statement to check if the IMDS version has been requested.</p> gcagle3 tag:github.com,2008:Repository/128768909/v0.1.9 2021-10-22T13:43:06Z v0.1.9 yorinasub17 tag:github.com,2008:Repository/128768909/v0.1.8 2021-10-08T20:32:45Z v0.1.8 zackproser tag:github.com,2008:Repository/128768909/v0.1.7 2021-06-11T17:44:08Z v0.1.7 <p>Port functions from terraform-aws-zookeeper (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/37">#37</a>)</p> <p>* Define string_substr function</p> <p>* Add function that asserts whether the user has permissions to run sudo</p> <p>* Add " for consistency</p> yorinasub17 tag:github.com,2008:Repository/128768909/v0.1.6 2021-06-11T13:36:54Z v0.1.6 <p>Fix build (<a class="issue-link js-issue-link" href="https://github.com/gruntwork-io/bash-commons/pull/36">#36</a>)</p> <p>* Regression test for sudo functionality</p> <p>* Add Ubuntu 20.04 and propagate exit code</p> <p>* Fix for sudo bug</p> <p>* Fix build failures</p> <p>* Make sure shellcheck container errors are bubbled up</p> <p>* Remove debug statement</p> <p>* Fix docker-compose call for shellcheck</p> yorinasub17 tag:github.com,2008:Repository/128768909/v0.1.5 2021-06-10T16:35:56Z v0.1.5 yorinasub17