diff --git a/README.md b/README.md index f96110b..e23e006 100644 --- a/README.md +++ b/README.md @@ -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 + ## Requirements diff --git a/debug.log b/debug.log deleted file mode 100644 index 5bb5428..0000000 --- a/debug.log +++ /dev/null @@ -1,8 +0,0 @@ -2021-10-09 02:09:35 (49.9 MB/s) - ‘go1.17.2.linux-arm64.tar.gz’ saved [102615093/102615093] - -go env: cannot find go env config: neither $XDG_CONFIG_HOME nor $HOME are defined -missing $GOPATH -Cloud-init v. 20.3-10.0.1.el8_4.5 running 'modules:final' at Sat, 09 Oct 2021 02:07:28 +0000. Up 28.54 seconds. -2021-10-09 02:09:45,002 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts) -2021-10-09 02:09:45,003 - util.py[WARNING]: Running module scripts-user () failed -Cloud-init v. 20.3-10.0.1.el8_4.5 finished at Sat, 09 Oct 2021 02:09:45 +0000. Datasource DataSourceOracle. Up 166.46 seconds \ No newline at end of file diff --git a/files/bootstrap.sh b/files/bootstrap.sh index 4b117b3..fe8a4da 100644 --- a/files/bootstrap.sh +++ b/files/bootstrap.sh @@ -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 @@ -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"