diff --git a/README.md b/README.md index 6212671..2fffabf 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,17 @@ Installs HashiCorp's open source DevOps Tool Suite. ## Features * Easy install of HashiCorp's open source DevOps Tool Suite. + * Consul + * Nomad + * Packer + * Terraform + * Vault * Installs tools in accordans with [Filesystem Hierarchy Standard](http://www.pathname.com/fhs/) + * Binaries under /opt + * Configruation under /etc/opt + * Variable data under /var/opt * Add tools to system path for easier access + * Symbolic links under /opt/bin ## Requirements diff --git a/files/hashicorp_available_versions.py b/files/hashicorp_available_versions.py index f9675d1..11f6710 100644 --- a/files/hashicorp_available_versions.py +++ b/files/hashicorp_available_versions.py @@ -13,7 +13,7 @@ class HashiCorpVersionParser(HTMLParser): """Parses HTML with anchors which contains the versions""" parse_version = False - version_pattern = re.compile('.+_([\\d\\.]+)') + version_pattern = re.compile('.+_(.+)') versions = [] def handle_starttag(self, tag, attrs): @@ -79,7 +79,11 @@ def main(parser): for version in versions: sys.stdout.write(version + ' ') elif options.release == 'latest': - sys.stdout.write(versions[0]) + for version in versions: + # To exclude beta and rc releases + if "-" not in version: + sys.stdout.write(version) + break else: for version in versions: if version.startswith(options.release):