Skip to content

Commit

Permalink
tf-docs template
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Pouliot committed Mar 27, 2024
1 parent 01b6c47 commit 8d7075f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ content: |-
{{ include "examples/oraclelinux8/main.tf" }}
```
### Example OracleLinux 9
```hcl
{{ include "examples/oraclelinux9/main.tf" }}
```
### Example Ubuntu 18.04
```hcl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ packages:
- git
- curl
- python3
- python36
- python36-devel
- python3-pip-wheel
- python3-devel
- python3-pip
- python38
- python38-devel
- python38-pip
- python38-pip-wheel
- gcc
- gcc
- gcc-c++
Expand All @@ -29,17 +33,21 @@ system_info:
groups: [docker]

runcmd:
- alternatives --set python /usr/bin/python3.8
- pip3.8 install -U pip
- pip3.8 install -U setuptools-rust
- pip3.8 install -U ansible
- dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- dnf update -y
- dnf install docker-ce docker-ce-cli containerd.io -y
- curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-linux-aarch64 -o /usr/local/bin/docker-compose-linux-aarch64
- chmod +x /usr/local/bin/docker-compose-linux-aarch64
- chmod -x /usr/local/bin/docker-compose-linux-aarch64
- ln -s /usr/local/bin/docker-compose-linux-aarch64 /usr/bin/docker-compose
- docker-compose --version
- pip3 install -U docker-compose
- pip3.8 install -U docker-compose
- docker info
- systemctl enable docker
- systemctl start docker
- docker run -d --name registry --restart=always -p 4000:5000 -v registry:/var/lib/registry registry:2
- docker info
- sudo -u opc git clone https://github.com/amperecomputing/pi-day-tutorial /home/opc/pi-day-tutorial
- echo 'OCI Ampere A1 Oracle Pi Day Tutorial - piday:3.141592' >> /etc/motd
- echo 'OCI Ampere A1 OracleLinux 8.4 Example' >> /etc/motd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Example of Ampere A1 running OracleLinux 8 on OCI using this module
# Example of Ampere A1 running OracleLinux 9 on OCI using this module
variable "tenancy_ocid" {}
variable "user_ocid" {}
variable "fingerprint" {}
Expand All @@ -15,8 +15,8 @@ module "oci-ampere-a1" {
# Optional
# oci_vcn_cidr_block = "10.2.0.0/16"
# oci_vcn_cidr_subnet = "10.2.1.0/24"
oci_os_image = "oraclelinux8"
instance_prefix = "ampere-a1-oraclelinux-8"
oci_os_image = "oraclelinux9"
instance_prefix = "ampere-a1-oraclelinux-9"
oci_vm_count = "1"
ampere_a1_vm_memory = "24"
ampere_a1_cpu_core_count = "4"
Expand Down

0 comments on commit 8d7075f

Please sign in to comment.