Skip to content

Commit 36b3228

Browse files
committed
Automation Toolkit Release v2024.2.2
1 parent ec8bbb7 commit 36b3228

24 files changed

+136
-1417
lines changed

cd3_automation_toolkit/Network/BaseNetwork/create_all_tf_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def create_all_tf_objects(inputfile, outdir, service_dir,prefix, ct, non_gf_tena
4545
# Create Workflow
4646
if non_gf_tenancy == False:
4747
with section('Process Subnets for Seclists creation'):
48-
create_terraform_seclist(inputfile, outdir, service_dir_seclist, prefix, ct, modify_network)
48+
create_terraform_seclist(inputfile, outdir, service_dir_network, prefix, ct, modify_network)
4949

5050
with section('Process Subnets for Subnets creation'):
5151
create_terraform_subnet_vlan(inputfile, outdir, service_dir, prefix, ct, non_gf_tenancy, network_vlan_in_setupoci,modify_network)

cd3_automation_toolkit/Network/BaseNetwork/export_network_nonGreenField.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,11 +1097,9 @@ def export_networking(inputfile, outdir, service_dir, config, signer, ct, export
10971097
if len(service_dir) != 0:
10981098
service_dir_network = service_dir['network']
10991099
service_dir_nsg = service_dir['nsg']
1100-
service_dir_seclist = service_dir['seclist']
11011100
else:
11021101
service_dir_network = ""
11031102
service_dir_nsg = ""
1104-
service_dir_seclist = ""
11051103

11061104
# Fetch Major Objects
11071105
export_major_objects(inputfile, outdir, service_dir_network, config=config, signer=signer, ct=ct, export_compartments=export_compartments, export_regions=export_regions)
@@ -1113,7 +1111,7 @@ def export_networking(inputfile, outdir, service_dir, config, signer, ct, export
11131111
export_subnets_vlans(inputfile, outdir, service_dir, config=config, signer=signer, ct=ct, export_compartments=export_compartments, export_regions=export_regions)
11141112

11151113
# Fetch RouteRules and SecRules
1116-
export_seclist(inputfile, outdir, service_dir_seclist, config=config, signer=signer, ct=ct, export_compartments=export_compartments, export_regions=export_regions,_tf_import_cmd=True)
1114+
export_seclist(inputfile, outdir, service_dir_network, config=config, signer=signer, ct=ct, export_compartments=export_compartments, export_regions=export_regions,_tf_import_cmd=True)
11171115

11181116
export_routetable(inputfile, outdir, service_dir_network, config1=config, signer1=signer, ct=ct, export_compartments=export_compartments, export_regions=export_regions, _tf_import_cmd=True)
11191117

cd3_automation_toolkit/Release-Notes

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
-------------------------------------
2-
CD3 Automation Toolkit Tag v2024.2.1
2+
CD3 Automation Toolkit Tag v2024.2.2
33
Apr 30, 2024
44
-------------------------------------
5-
1. Download latest Excel Sheet using Jenkins.
5+
1. Download excel sheet after create and export workflow using Jenkins.
66
2. Docker Image upgrade to OL9 and upgrade of other softwares also.
77
3. Dropdowns for Region and Compartment while running setUpOCI using Jenkins.
8-
4. Take out Security List from Network stack.
9-
5. Fix Image OCIDs for OCI Work VM deployment using RM stack.
10-
6. Review of existing terraform modules.
8+
4. Fix Image OCIDs for OCI Work VM deployment using RM stack.
9+
5. Option to execute 3rd Party Services from CD3 - Show OCI along with CIS Compliance Check script
10+
5. Upgrade of existing terraform modules - identity, buckets, LBaaS, NLBs,
1111

1212
-------------------------------------
1313
CD3 Automation Toolkit Tag v2024.2.0

cd3_automation_toolkit/Security/Firewall/templates/policy-template

Lines changed: 0 additions & 45 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.

cd3_automation_toolkit/setUpOCI.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#Input variables required to run setUpOCI script
44

5-
#path to output directory where terraform files will be generated. eg /cd3user/tenancies/<customer_name>/terraform_files
5+
#path to output directory where terraform files will be generated. eg. /cd3user/tenancies/<customer_name>/terraform_files
66
outdir=
77

88
#prefix for output terraform files eg <customer_name> like demo

cd3_automation_toolkit/setUpOCI.py

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def export_network(prim_options=[]):
388388
# Update modified path list
389389
regions_path = export_regions.copy()
390390
regions_path.append("global")
391-
service_dirs = [service_dir_network, service_dir_nsg, service_dir_vlan,'rpc']
391+
service_dirs = [service_dir_network, service_dir_seclist, service_dir_nsg, service_dir_vlan,'rpc']
392392
update_path_list(regions_path=regions_path, service_dirs=service_dirs)
393393

394394
def export_networking(inputfile, outdir,config, signer, ct, export_regions):
@@ -404,6 +404,7 @@ def export_networking(inputfile, outdir,config, signer, ct, export_regions):
404404

405405
options = [
406406
Option(None, Network.create_terraform_dhcp_options, 'Processing DHCP Tab'),
407+
Option(None, Network.modify_terraform_secrules, 'Processing SecRulesinOCI Tab'),
407408
Option(None, Network.modify_terraform_routerules, 'Processing RouteRulesinOCI Tab'),
408409
Option(None, Network.modify_terraform_drg_routerules, 'Processing DRGRouteRulesinOCI Tab'),
409410
]
@@ -423,16 +424,9 @@ def export_networking(inputfile, outdir,config, signer, ct, export_regions):
423424

424425
options = [ Option(None, Network.create_terraform_nsg, 'Processing NSGs Tab'), ]
425426
execute_options(options, inputfile, outdir, service_dir_nsg, prefix, ct)
426-
427-
options = [Option(None, Network.create_terraform_seclist, 'Processing SecRulesinOCI Tab'), ]
428-
execute_options(options, inputfile, outdir, service_dir_seclist, prefix, ct, non_gf_tenancy)
429-
430-
print(
431-
"\n\nExecute tf_import_commands_network_*_nonGF.sh script created under each region directory to synch TF with OCI Network objects\n")
432-
for service in [service_dir_network, service_dir_vlan, service_dir_nsg, service_dir_seclist]:
433-
if service not in service_dirs:
434-
service_dirs.append(service)
435-
427+
print("\n\nExecute tf_import_commands_network_*_nonGF.sh script created under each region directory to synch TF with OCI Network objects\n")
428+
for service in [service_dir_network,service_dir_vlan,service_dir_nsg]:
429+
service_dirs.append(service_dir_network) if service_dir_network not in service_dirs else service_dirs
436430

437431
def export_major_objects(inputfile, outdir, config, signer, ct, export_regions):
438432
compartments = ct.get_compartment_map(var_file,'VCN Major Objects')
@@ -466,11 +460,11 @@ def export_dhcp(inputfile, outdir,config,signer,ct,export_regions):
466460

467461
def export_secrules(inputfile, outdir,config,signer,ct,export_regions):
468462
compartments = ct.get_compartment_map(var_file,'SecRulesInOCI')
469-
Network.export_seclist(inputfile, outdir, service_dir_seclist, config, signer, ct, export_compartments=compartments, export_regions=export_regions, _tf_import_cmd=True)
463+
Network.export_seclist(inputfile, outdir, service_dir_network, config, signer, ct, export_compartments=compartments, export_regions=export_regions, _tf_import_cmd=True)
470464
options = [
471465
Option(None, Network.modify_terraform_secrules, 'Processing SecRulesinOCI Tab'),
472466
]
473-
execute_options(options, inputfile, outdir,service_dir_seclist, prefix, ct, non_gf_tenancy)
467+
execute_options(options, inputfile, outdir,service_dir_network, prefix, ct, non_gf_tenancy)
474468
print("\n\nExecute tf_import_commands_network_secrules_nonGF.sh script created under each region directory to synch TF with OCI Network objects\n")
475469

476470
def export_routerules(inputfile, outdir,config,signer,ct,export_regions):
@@ -883,9 +877,9 @@ def export_modify_security_rules(inputfile, outdir, service_dir, prefix, ct, non
883877
options1 = []
884878
options1.append(option)
885879
if (option.name == 'Export Security Rules (From OCI into SecRulesinOCI sheet)'):
886-
execute_options(options1, inputfile, outdir, service_dir_seclist, config, signer, ct, non_gf_tenancy=non_gf_tenancy)
880+
execute_options(options1, inputfile, outdir, service_dir_network, config, signer, ct, non_gf_tenancy=non_gf_tenancy)
887881
elif (option.name == 'Add/Modify/Delete Security Rules (Reads SecRulesinOCI sheet)'):
888-
execute_options(options1, inputfile, outdir, service_dir_seclist, prefix, ct, non_gf_tenancy)
882+
execute_options(options1, inputfile, outdir, service_dir_network, prefix, ct, non_gf_tenancy)
889883

890884

891885
def export_security_rules(inputfile, outdir, service_dir, config, signer, ct, non_gf_tenancy):
@@ -1226,7 +1220,7 @@ def create_cis_features(prim_options=[]):
12261220
execute_options(options, outdir, prefix, config_file_path)
12271221

12281222
def run_utility(prim_options=[]):
1229-
options = [Option('CIS Compliance Checking Script', initiate_cis_scan, 'CIS Compliance Check Script'),
1223+
options = [Option('CIS Compliance Check Script', initiate_cis_scan, 'CIS Compliance Check Script'),
12301224
Option('ShowOCI Report', run_showoci, 'ShowOCI Report')
12311225
]
12321226
if prim_options:
@@ -1715,7 +1709,7 @@ def create_firewall(inputfile, outdir, service_dir, prefix, ct,sub_options=[]):
17151709
Option('Software-Defined Data Centers - OCVS', create_sddc, 'Processing SDDC Tabs'),
17161710
Option('CIS Compliance Features', create_cis_features, 'CIS Compliance Features'),
17171711
Option('CD3 Services', cd3_services, 'CD3 Services'),
1718-
Option('Utility Services (Not Maintained By CD3)', run_utility,'Utility Services')
1712+
Option('3rd Party Services', run_utility,'3rd Party Services')
17191713
]
17201714
export_regions = ct.all_regions
17211715

0 commit comments

Comments
 (0)