Skip to content

Commit d197c11

Browse files
committed
Merge branch 'dev' into cpapke/15.0
2 parents 4fca60f + fdc0b9f commit d197c11

94 files changed

Lines changed: 2201 additions & 270 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy_module.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,20 @@ jobs:
127127
hidden_submodules: "azurerm/statistics null/statistics"
128128
begin_tag: 1.7.6
129129

130+
# CipherTrust
131+
## aws provider
132+
- source_module: "aws/ciphertrust-manager"
133+
destination_repo: "terraform-aws-dsf-ciphertrust-manager"
134+
begin_tag: 1.7.31
135+
- source_module: "aws/cte-ddc-agent"
136+
destination_repo: "terraform-aws-dsf-cte-ddc-agent"
137+
begin_tag: 1.7.31
138+
139+
## null provider
140+
- source_module: "null/ciphertrust-manager-cluster-setup"
141+
destination_repo: "terraform-null-dsf-ciphertrust-manager-cluster-setup"
142+
begin_tag: 1.7.31
143+
130144
# Globals
131145
## aws provider
132146
- source_module: "aws/core/globals"

.github/workflows/dsf_poc_cli.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
deployment_type:
1313
required: false
1414
type: string
15-
default: 'all'
15+
default: 'all-permutations'
1616
version:
1717
type: string
1818
default: 'latest'
@@ -44,12 +44,12 @@ on:
4444
default: false
4545
required: false
4646
deployment_type:
47-
description: 'Choose the type of deployments to run: all (default), sonar, dam, dra'
47+
description: 'Choose the type of deployments to run: sonar, sonar-with-fam, dra, dam, all-products (currently does not include FAM) or all-permutations'
4848
type: string
49-
default: 'all'
49+
default: 'all-permutations'
5050
required: false
5151
product_version:
52-
description: 'Product (DAM, DRA, SONAR) version to deploy, default is latest'
52+
description: 'Product version to deploy. Valid for options: sonar, sonar-with-fam, dra and dam. Otherwise latest per product is used.'
5353
type: string
5454
default: 'latest'
5555
required: false
@@ -99,14 +99,15 @@ jobs:
9999
- name: Set Matrix
100100
id: set-matrix
101101
env:
102-
VAR: ${{ github.event.inputs.deployment_type || 'all' }}
102+
VAR: ${{ github.event.inputs.deployment_type || 'all-permutations' }}
103103
run: |
104104
MATRIX=$(jq -n --compact-output --arg var "$VAR" '{
105105
"include": [
106-
(if $var == "all" then {"name":"DSF POC","workspace":"dsf_cli-all-","enable_sonar":true,"enable_dam":true,"enable_dra":true} else empty end),
107-
(if $var == "all" or $var == "sonar" then {"name":"DSF POC - SONAR","workspace":"dsf_cli-sonar-","enable_sonar":true,"enable_dam":false,"enable_dra":false} else empty end),
108-
(if $var == "all" or $var == "dam" then {"name":"DSF POC - DAM","workspace":"dsf_cli-dam-","enable_sonar":false,"enable_dam":true,"enable_dra":false} else empty end),
109-
(if $var == "all" or $var == "dra" then {"name":"DSF POC - DRA","workspace":"dsf_cli-dra-","enable_sonar":false,"enable_dam":false,"enable_dra":true} else empty end)
106+
(if $var == "all-permutations" or $var == "all-products" then {"name":"DSF POC","workspace":"dsf_cli-all-","enable_sonar":true,"enable_ciphertrust":false,"enable_dam":true,"enable_dra":true} else empty end),
107+
(if $var == "all-permutations" or $var == "sonar" then {"name":"DSF POC - Sonar","workspace":"dsf_cli-sonar-","enable_sonar":true,"enable_ciphertrust":false,"enable_dam":false,"enable_dra":false} else empty end),
108+
(if $var == "all-permutations" or $var == "sonar-with-fam" then {"name":"DSF POC - Sonar with FAM","workspace":"dsf_cli-sonar-with-fam-","enable_sonar":true,"enable_ciphertrust":true,"enable_dam":false,"enable_dra":false} else empty end),
109+
(if $var == "all-permutations" or $var == "dam" then {"name":"DSF POC - DAM","workspace":"dsf_cli-dam-","enable_sonar":false,"enable_ciphertrust":false,"enable_dam":true,"enable_dra":false} else empty end),
110+
(if $var == "all-permutations" or $var == "dra" then {"name":"DSF POC - DRA","workspace":"dsf_cli-dra-","enable_sonar":false,"enable_ciphertrust":false,"enable_dam":false,"enable_dra":true} else empty end)
110111
]
111112
}')
112113
@@ -123,6 +124,8 @@ jobs:
123124
DEPLOYMENT_VERSION="dra_version=${{ github.event.inputs.product_version }}"
124125
elif [[ "${{ github.event.inputs.deployment_type }}" == "sonar" ]]; then
125126
DEPLOYMENT_VERSION="sonar_version=${{ github.event.inputs.product_version }}"
127+
elif [[ "${{ github.event.inputs.deployment_type }}" == "sonar-with-fam" ]]; then
128+
DEPLOYMENT_VERSION="sonar_version=${{ github.event.inputs.product_version }}"
126129
fi
127130
fi
128131
echo "deployment_version=$DEPLOYMENT_VERSION" >> $GITHUB_OUTPUT
@@ -139,6 +142,7 @@ jobs:
139142
EXAMPLE_DIR: ./examples/aws/poc/dsf_deployment
140143
AWS_REGION: eu-west-2
141144
TF_VAR_enable_sonar: ${{ matrix.enable_sonar }}
145+
TF_VAR_enable_ciphertrust: ${{ matrix.enable_ciphertrust }}
142146
TF_VAR_enable_dam: ${{ matrix.enable_dam }}
143147
TF_VAR_enable_dra: ${{ matrix.enable_dra }}
144148
TF_VAR_allowed_ssh_cidrs: ${{ secrets.ALLOWED_SSH_CIDRS }}
@@ -229,6 +233,9 @@ jobs:
229233
mv $EXAMPLE_DIR/networking.tf{,_}
230234
mv $EXAMPLE_DIR/agentless_sources.tf{,_}
231235
mv $EXAMPLE_DIR/agent_sources.tf{,_}
236+
mv $EXAMPLE_DIR/versions.tf{,_}
237+
mv $EXAMPLE_DIR/cm.tf{,_}
238+
mv $EXAMPLE_DIR/cte_ddc_agents.tf{,_}
232239
terraform -chdir=$EXAMPLE_DIR destroy -var dam_license=license.mprv -auto-approve
233240
mv $EXAMPLE_DIR/main.tf{_,}
234241
mv $EXAMPLE_DIR/outputs.tf{_,}
@@ -238,6 +245,9 @@ jobs:
238245
mv $EXAMPLE_DIR/networking.tf{_,}
239246
mv $EXAMPLE_DIR/agentless_sources.tf{_,}
240247
mv $EXAMPLE_DIR/agent_sources.tf{_,}
248+
mv $EXAMPLE_DIR/versions.tf{_,}
249+
mv $EXAMPLE_DIR/cm.tf{_,}
250+
mv $EXAMPLE_DIR/cte_ddc_agents.tf{_,}
241251
fi
242252
243253
- name: Terraform Validate

.github/workflows/dsf_poc_standalone.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: DSF POC Standalone
1+
name: DSF POC Standalone - AWS and Azure
22

33
on:
44
workflow_dispatch: # This allows the workflow to be manually triggered from the GitHub UI
55
inputs:
66
deployment_type:
7-
description: "Deployment type to pass, choose: dra, dam or sonar."
7+
description: "Deployment type to pass, choose: sonar, sonar-with-fam, dra or dam."
88
required: true
99
default: "dra"
1010
version:
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
use_modules_from_terraform_registry: true
3939
explicit_ref: master
40-
deployment_type: "dra"
40+
deployment_type: ${{ github.event.inputs.deployment_type }}
4141
product_full_version: ${{ github.event.inputs.version }}
4242
secrets:
4343
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

0 commit comments

Comments
 (0)