Skip to content

Commit

Permalink
chore(terraform-docs): always install the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
kral2 committed Oct 9, 2021
1 parent cd4ffab commit 673b853
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# IACBOX

## Table of Contents

1. [About](#about)
2. [Requirements](#requirements)
3. [Providers](#Providers)
4. [Inputs](#inputs)
5. [Outputs](#outputs)

## About

This module deploys an instance with the necessary tools to start developing Infrastructure as Code solutions on OCI:

- Terraform
- Packer
- Ansible and specific roles
- oci-cli
- Python virtualenvwrapper, oci sdk
- Go
- Git, pre-commit, terraform-docs

<!-- BEGIN_TF_DOCS -->

## Requirements
Expand Down
8 changes: 0 additions & 8 deletions debug.log

This file was deleted.

7 changes: 4 additions & 3 deletions files/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ yum-config-manager --enable ol8_developer_EPEL
dnf install git -y

# getting latest Terraform and Packer installers from iac.sh
## https://github.com/robertpeteuil/terraform-installer
## https://github.com/robertpeteuil/packer-installer
## see https://github.com/robertpeteuil/terraform-installer and https://github.com/robertpeteuil/packer-installer
curl iac.sh/terraform | bash && ./terraform-install.sh -a
curl iac.sh/packer | bash && ./packer-install.sh -a

Expand Down Expand Up @@ -60,8 +59,10 @@ rm -rf "$GO_PACKAGE"
{
echo "#!/bin/sh"
echo "sudo /usr/local/go/bin/go env -w GOBIN=/usr/local/bin"
echo "sudo /usr/local/go/bin/go install github.com/terraform-docs/terraform-docs@v0.16.0"
echo "sudo /usr/local/go/bin/go install github.com/terraform-docs/terraform-docs@latest"
} >> $HOME_FOLDER/install_terraform_docs.sh

chmod +x $HOME_FOLDER/install_terraform_docs.sh
/bin/su -c "$HOME_FOLDER/install_terraform_docs.sh" - "$SYSTEM_USER"

rm -rf "$HOME_FOLDER/install_terraform_docs.sh"

0 comments on commit 673b853

Please sign in to comment.