Skip to content

Commit 12b3f5a

Browse files
committed
Automation Toolkit Release v2024.4.3
1 parent 0cad0e5 commit 12b3f5a

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ sudo wget https://releases.hashicorp.com/terraform-provider-null/${TF_NULL_PROVI
6060
sudo mkdir -p /cd3user/.terraform.d/plugins/registry.terraform.io/hashicorp/null/${TF_NULL_PROVIDER}/linux_amd64 && \
6161
sudo unzip terraform-provider-null_${TF_NULL_PROVIDER}_linux_amd64.zip -d /cd3user/.terraform.d/plugins/registry.terraform.io/hashicorp/null/${TF_NULL_PROVIDER}/linux_amd64 && \
6262
sudo cp -r /cd3user/.terraform.d/plugins/registry.terraform.io /cd3user/.terraform.d/plugins/registry.opentofu.org && \
63-
sudo chown -R cd3user:cd3user /cd3user/ ;\
63+
sudo chown -R cd3user:cd3user /cd3user/ && \
64+
sudo rm -rf terraform-provider-null_${TF_NULL_PROVIDER}_linux_amd64.zip terraform-provider-oci_${TF_OCI_PROVIDER}_linux_amd64.zip ;\
6465
fi
6566

6667
##################################### START INSTALLING JENKINS ###################################

OCIWorkVMStack/scripts/installToolkit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fi
6666
sudo podman --version >> $logfile 2>&1
6767

6868
echo "***Download Toolkit***" >> $logfile 2>&1
69-
sudo git clone https://github.com/oracle-devrel/cd3-automation-toolkit.git -b develop $toolkit_dir >> $logfile 2>&1
69+
sudo git clone https://github.com/oracle-devrel/cd3-automation-toolkit.git $toolkit_dir >> $logfile 2>&1
7070
stop_exec
7171

7272
curl -H "Authorization: Bearer Oracle" -L http://169.254.169.254/opc/v2/instance/ -o /tmp/metadata.json

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<br>
99

10-
[What's New](https://github.com/oracle-devrel/cd3-automation-toolkit/releases/tag/v2024.4.2) &nbsp;&nbsp;[Excel Templates](https://oracle-devrel.github.io/cd3-automation-toolkit/latest/excel-templates/) &nbsp;&nbsp;[CD3 Docs](https://oracle-devrel.github.io/cd3-automation-toolkit/)&nbsp;&nbsp; [Watch & Learn](https://www.youtube.com/playlist?list=PLPIzp-E1msrbJ3WawXVhzimQnLw5iafcp) &nbsp;&nbsp;[Blogs & Tutorials](https://oracle-devrel.github.io/cd3-automation-toolkit/latest/tutorials/) &nbsp;&nbsp;[Livelabs](https://apexapps.oracle.com/pls/apex/f?p=133:180:112501098061930::::wid:3724) &nbsp;&nbsp;[Slack Channel](https://oracle-devrel.github.io/cd3-automation-toolkit/latest/queries)
10+
[What's New](https://github.com/oracle-devrel/cd3-automation-toolkit/releases/tag/v2024.4.3) &nbsp;&nbsp;[Excel Templates](https://oracle-devrel.github.io/cd3-automation-toolkit/latest/excel-templates/) &nbsp;&nbsp;[CD3 Docs](https://oracle-devrel.github.io/cd3-automation-toolkit/)&nbsp;&nbsp; [Watch & Learn](https://www.youtube.com/playlist?list=PLPIzp-E1msrbJ3WawXVhzimQnLw5iafcp) &nbsp;&nbsp;[Blogs & Tutorials](https://oracle-devrel.github.io/cd3-automation-toolkit/latest/tutorials/) &nbsp;&nbsp;[Livelabs](https://apexapps.oracle.com/pls/apex/f?p=133:180:112501098061930::::wid:3724) &nbsp;&nbsp;[Slack Channel](https://oracle-devrel.github.io/cd3-automation-toolkit/latest/queries)
1111

1212
<br>
1313

@@ -21,7 +21,7 @@ Additionally, the toolkit also supports seamless resource management using OCI D
2121
🚀 Click the below button to quickly launch CD3 toolkit container in Oracle Cloud and start managing your Infra as Code.
2222
<br>
2323

24-
[![Deploy_To_OCI](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle-devrel/cd3-automation-toolkit/archive/refs/heads/develop.zip)
24+
[![Deploy_To_OCI](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle-devrel/cd3-automation-toolkit/archive/refs/heads/main.zip)
2525

2626
<br>
2727

@@ -81,7 +81,7 @@ Additionally, the toolkit also supports seamless resource management using OCI D
8181

8282
📝 Creating Terraform Code for each module/resource can be cumbersome and requires Terraform expertise.
8383

84-
🔁 Manually created infrastrucutre is hard to rebuild for different environments or regions.
84+
🔁 Manually created infrastructure is hard to rebuild for different environments or regions.
8585

8686
<br>
8787

cd3_automation_toolkit/user-scripts/createTenancyConfig.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import configparser
1616
import oci
1717
from oci.object_storage import ObjectStorageClient
18-
import git
1918
import glob
2019
import subprocess
2120
sys.path.append(os.getcwd()+"/..")
@@ -474,12 +473,14 @@ def create_bucket(config, signer):
474473
devops_user_key = config.get('Default', 'oci_devops_git_key').strip()
475474

476475
# Check if Jenkins was installed during image build
477-
if environ.get('USE_DEVOPS') is not None:
478-
use_devops_docker = os.environ['USE_DEVOPS']
479-
use_devops_docker=use_devops_docker.lower()
476+
use_devops_docker = os.environ['USE_DEVOPS']
477+
use_devops_docker=use_devops_docker.lower()
480478

481-
if use_devops_docker != use_devops:
482-
use_devops = "no"
479+
if use_devops_docker != use_devops:
480+
use_devops = "no"
481+
482+
if use_devops == 'yes':
483+
import git
483484

484485
if use_devops == 'yes' or remote_state == 'yes':
485486
#Use remote state if using devops

0 commit comments

Comments
 (0)