Skip to content

Commit

Permalink
Add configuration profiles for Preview Components
Browse files Browse the repository at this point in the history
  • Loading branch information
mbloch1986 committed Aug 8, 2023
1 parent 8fd1079 commit 6af2ee0
Show file tree
Hide file tree
Showing 72 changed files with 2,616 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ logs/
modules/
stage/
zzz-*.*
core
# End of AOC gitignore

# Created by https://www.toptal.com/developers/gitignore/api/macos,vscode
Expand Down Expand Up @@ -46,4 +47,4 @@ Temporary Items
!.vscode/extensions.json
*.code-workspace

# End of https://www.toptal.com/developers/gitignore/api/macos,vscode
# End of https://www.toptal.com/developers/gitignore/api/macos,vscode
23 changes: 22 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,29 +109,44 @@ gen-aem-aws-stack-builder:
$(call gen_aem_aws_stack_builder,aem64,amazon-linux2,full-set,lightweight,jdk8,cb)
$(call gen_aem_aws_stack_builder,aem64,amazon-linux2,consolidated,lightweight,jdk8)
$(call gen_aem_aws_stack_builder,aem64,amazon-linux2,consolidated,lightweight,jdk8,cb)
# AEM 6.5 RHEL7 FS Heavyweight JDK8
$(call gen_aem_aws_stack_builder,aem65,rhel7,full-set,heavyweight,jdk8)
$(call gen_aem_aws_stack_builder_aoc_testing_profile,aem65,rhel7,full-set,heavyweight,jdk8,nb)
$(call gen_aem_aws_stack_builder_preview,aem65,rhel7,full-set,heavyweight,jdk8)
# AEM 6.5 RHEL7 FS Heavyweight JDK11
$(call gen_aem_aws_stack_builder,aem65,rhel7,full-set,heavyweight,jdk11)
$(call gen_aem_aws_stack_builder_aoc_testing_profile,aem65,rhel7,full-set,heavyweight,jdk11,ap)
$(call gen_aem_aws_stack_builder_aoc_testing_profile,aem65,rhel7,full-set,heavyweight,jdk11,sh)
$(call gen_aem_aws_stack_builder_preview,aem65,rhel7,full-set,heavyweight,jdk11)
# AEM 6.5 RHEL7 Consolidated Heavyweight JDK8
$(call gen_aem_aws_stack_builder,aem65,rhel7,consolidated,heavyweight,jdk8)
$(call gen_aem_aws_stack_builder_aoc_testing_profile,aem65,rhel7,consolidated,heavyweight,jdk8,nb)
# AEM 6.5 RHEL7 Consolidated Heavyweight JDK11
$(call gen_aem_aws_stack_builder,aem65,rhel7,consolidated,heavyweight,jdk11)
$(call gen_aem_aws_stack_builder_aoc_testing_profile,aem65,rhel7,consolidated,heavyweight,jdk11,ap)
$(call gen_aem_aws_stack_builder_aoc_testing_profile,aem65,rhel7,consolidated,heavyweight,jdk11,sh)
$(call gen_aem_aws_stack_builder_aoc_testing_saml_profile,aem65,rhel7,consolidated,heavyweight,jdk11,sh)
# AEM 6.5 AL2 FS Ligthweight JDK8
$(call gen_aem_aws_stack_builder,aem65,amazon-linux2,full-set,lightweight,jdk8)
$(call gen_aem_aws_stack_builder_preview,aem65,amazon-linux2,full-set,lightweight,jdk8)
# AEM 6.5 AL2 FS Ligthweight JDK11
$(call gen_aem_aws_stack_builder,aem65,amazon-linux2,full-set,lightweight,jdk11)
$(call gen_aem_aws_stack_builder_aoc_testing_profile,aem65,amazon-linux2,full-set,lightweight,jdk11,sh)
$(call gen_aem_aws_stack_builder_preview,aem65,amazon-linux2,full-set,lightweight,jdk11)
# AEM 6.5 AL2 Consolidated Ligthweight JDK8
$(call gen_aem_aws_stack_builder,aem65,amazon-linux2,consolidated,lightweight,jdk8)
# AEM 6.5 AL2 Consolidated Ligthweight JDK11
$(call gen_aem_aws_stack_builder,aem65,amazon-linux2,consolidated,lightweight,jdk11)
$(call gen_aem_aws_stack_builder_aoc_testing_profile,aem65,amazon-linux2,consolidated,lightweight,jdk11,sh)
# AEM Stack Manager
$(call gen_aem_aws_stack_builder_aem_stack_manager,sandpit)
# AEM CDN
$(call gen_aem_aws_stack_builder_cdn,sandpit)
# AEM Ressources
$(call gen_aem_aws_stack_builder_aws_resources,sandpit)

define gen_aem_aws_stack_builder
rm -rf aem-aws-stack-builder/aem-$(3)-$(2)-$(1)-$(5)/
rm -rf aem-aws-stack-builder/aem-$(3)-$(2)-$(1)-$(5)/
mkdir -p aem-aws-stack-builder/aem-$(3)-$(2)-$(1)-$(5)/
cp aem-aws-stack-builder/src/common/*.yaml aem-aws-stack-builder/aem-$(3)-$(2)-$(1)-$(5)/
cp aem-aws-stack-builder/src/apps/aem/$(1).yaml aem-aws-stack-builder/aem-$(3)-$(2)-$(1)-$(5)/
Expand All @@ -144,6 +159,12 @@ define gen_aem_aws_stack_builder
cp aem-aws-stack-builder/src/apps/aem/$(5).yaml aem-aws-stack-builder/aem-$(3)-$(2)-$(1)-$(5)/
endef

define gen_aem_aws_stack_builder_preview
$(call gen_aem_aws_stack_builder,$(1),$(2),$(3)-preview,$(4),$(5))
cp aem-aws-stack-builder/src/apps/aem/$(3)-$(4).yaml aem-aws-stack-builder/aem-$(3)-preview-$(2)-$(1)-$(5)/
cp aem-aws-stack-builder/src/apps/aem/$(3).yaml aem-aws-stack-builder/aem-$(3)-preview-$(2)-$(1)-$(5)/
endef

define gen_aem_aws_stack_builder_aoc_testing_saml_profile
$(call gen_aem_aws_stack_builder_aoc_testing_profile,$(1),$(2),$(3),$(4),$(5),$(6)-saml)
cp aem-aws-stack-builder/src/apps/aem/saml.yaml aem-aws-stack-builder/aem-$(3)-$(2)-$(1)-$(5)-$(6)-saml/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-0d9f5d5fa92312e8e
publish: ami-0818c32e01e74cef7
publish_dispatcher: ami-09c48bd8ffeedc06a
preview_publish: ami-0818c32e01e74cef7
preview_publish_dispatcher: ami-09c48bd8ffeedc06a
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-0d9f5d5fa92312e8e
publish: ami-0818c32e01e74cef7
publish_dispatcher: ami-09c48bd8ffeedc06a
preview_publish: ami-0818c32e01e74cef7
preview_publish_dispatcher: ami-09c48bd8ffeedc06a
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-0d9f5d5fa92312e8e
publish: ami-09e4b323eda233f5a
publish_dispatcher: ami-00644abd7a12cb6b6
preview_publish: ami-09e4b323eda233f5a
preview_publish_dispatcher: ami-00644abd7a12cb6b6
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-0aab87dacd86a9815
publish: ami-037ecc1bea1a1bd58
publish_dispatcher: ami-0a0adb4e214f6a77c
preview_publish: ami-037ecc1bea1a1bd58
preview_publish_dispatcher: ami-0a0adb4e214f6a77c
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-0aab87dacd86a9815
publish: ami-037ecc1bea1a1bd58
publish_dispatcher: ami-0a0adb4e214f6a77c
preview_publish: ami-037ecc1bea1a1bd58
preview_publish_dispatcher: ami-0a0adb4e214f6a77c
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-0aab87dacd86a9815
publish: ami-037ecc1bea1a1bd58
publish_dispatcher: ami-0a0adb4e214f6a77c
preview_publish: ami-037ecc1bea1a1bd58
preview_publish_dispatcher: ami-0a0adb4e214f6a77c
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-0aab87dacd86a9815
publish: ami-037ecc1bea1a1bd58
publish_dispatcher: ami-0a0adb4e214f6a77c
preview_publish: ami-037ecc1bea1a1bd58
preview_publish_dispatcher: ami-0a0adb4e214f6a77c
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-01b25ff35f82e8dbb
publish: ami-0cb9fef33584bf34f
publish_dispatcher: ami-05836a044f68d933b
preview_publish: ami-0cb9fef33584bf34f
preview_publish_dispatcher: ami-05836a044f68d933b
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-01b25ff35f82e8dbb
publish: ami-0cb9fef33584bf34f
publish_dispatcher: ami-05836a044f68d933b
preview_publish: ami-0cb9fef33584bf34f
preview_publish_dispatcher: ami-05836a044f68d933b
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-0d9f5d5fa92312e8e
publish: ami-0818c32e01e74cef7
publish_dispatcher: ami-09c48bd8ffeedc06a
preview_publish: ami-0818c32e01e74cef7
preview_publish_dispatcher: ami-09c48bd8ffeedc06a
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-0d9f5d5fa92312e8e
publish: ami-0818c32e01e74cef7
publish_dispatcher: ami-09c48bd8ffeedc06a
preview_publish: ami-0818c32e01e74cef7
preview_publish_dispatcher: ami-09c48bd8ffeedc06a
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ ami_ids:
orchestrator: ami-0d9f5d5fa92312e8e
publish: ami-09e4b323eda233f5a
publish_dispatcher: ami-00644abd7a12cb6b6
preview_publish: ami-09e4b323eda233f5a
preview_publish_dispatcher: ami-00644abd7a12cb6b6
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
aws:
encryption:
ebs_volume:
enable: true
kms_key_id: arn:aws:kms:ap-southeast-2:291046903199:key/d920e490-987a-47fc-ab91-7d99a2954bac
managed_policy_arn: arn:aws:iam::291046903199:policy/aoc-ebs-consumer
dynamo_db:
# DynamoDB is always encrypted per default
kms_key_id: arn:aws:kms:ap-southeast-2:291046903199:key/38e31d58-6dc6-46f0-8989-76f2cbc8e081
managed_policy_arn: arn:aws:iam::291046903199:policy/aoc-dynamodb-consumer
lambda:
# Lambda functions environment variables are encrypted per default
kms_key_arn: arn:aws:kms:ap-southeast-2:291046903199:key/8ca4b5ef-6aba-40f6-a08a-cbc43bf0ab54
managed_policy_arn: arn:aws:iam::291046903199:policy/aoc-lambda-consumer
s3:
# S3 Buckets are always encrypted per default with AES256
kms_key_id: arn:aws:kms:ap-southeast-2:291046903199:key/19f18407-21de-4b86-9fce-59f8fe7b81ba
managed_policy_arn: arn:aws:iam::291046903199:policy/aoc-s3-consumer
sns:
kms_key_id: arn:aws:kms:ap-southeast-2:291046903199:key/49541480-1a8b-40bf-b700-281926440cdc
managed_policy_arn: arn:aws:iam::291046903199:policy/aoc-sns-consumer
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
aem:
publish:
run_modes:
- dynamicmedia_scene7
author:
run_modes:
- dynamicmedia_scene7
version: '6.5'

library:
aem_password_reset_version: 1.1.0
oak_run_version: 1.10.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
# Generated by Packer AEM
# AMI IDs for AEM profile aem65_sp8 on OS type amazon-linux2 with Java version jdk11
ami_ids:
author: ami-0f82b4d0283dc4521
author_dispatcher: ami-09c48bd8ffeedc06a
author_publish_dispatcher: ami-01d3e8f951247cf3f
chaos_monkey: ami-0d9f5d5fa92312e8e
orchestrator: ami-0d9f5d5fa92312e8e
publish: ami-0818c32e01e74cef7
publish_dispatcher: ami-09c48bd8ffeedc06a
preview_publish: ami-0818c32e01e74cef7
preview_publish_dispatcher: ami-09c48bd8ffeedc06a
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
publish_dispatcher:
asg_min_size: 2
asg_desired_capacity: 2
asg_max_size: 3
instance_type: t2.micro
root_vol_size: 30
data_vol_size: 75

publish:
asg_min_size: 2
asg_desired_capacity: 2
asg_max_size: 3
instance_type: m4.xlarge
root_vol_size: 30
data_vol_size: 75

author:
instance_type: m4.xlarge
root_vol_size: 30
data_vol_size: 75

author_dispatcher:
asg_min_size: 1
asg_desired_capacity: 1
asg_max_size: 3
instance_type: t2.micro
root_vol_size: 30
data_vol_size: 75
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
preview_publish_dispatcher:
asg_min_size: 2
asg_desired_capacity: 2
asg_max_size: 2
instance_type: t2.micro
root_vol_size: 50
data_vol_size: 100

preview_publish:
asg_min_size: 2
asg_desired_capacity: 2
asg_max_size: 2
instance_type: m4.xlarge
root_vol_size: 50
data_vol_size: 100
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
aem:
preview_publish:
run_modes: []
jvm_mem_opts: "-Xss4m -Xms4096m -Xmx8192m"
jvm_opts: "-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError"
jmxremote:
port: 5983

security_groups:
preview_publish_dispatcher_elb:
inbound_cidr_ip: 0.0.0.0/0
extra_groups:
- sg-0ee8d936618a7eb72
preview_publish:
extra_groups:
- sg-02e02c0ecfe95b2f4
preview_publish_dispatcher:
extra_groups:
# Corp network security group (from corp network inbound to instances)
# - sg-01d33232d3569b079
# Forward proxy access security group (from instances outbound to forward proxy)
# Jumphost access security group (from jumphost inbound to instances)
- sg-02e02c0ecfe95b2f4

snapshots:
preview_publish:
use_data_vol_snapshot: false
data_vol_snapshot_id: overwrite-me
preview_publish_dispatcher:
use_data_vol_snapshot: false
data_vol_snapshot_id: overwrite-me

preview_publish_dispatcher:
load_balancer:
tag_name: AEM Preview Publish Dispatcher Load Balancer
tag_name: AEM Preview Publish Dispatcher
elb_health_check: /system/health?tags=shallow
elb_scheme: internal
allowed_client: '*.*.*.*'
asg_cpu_scaling_threshold: 49
asg_cpu_high_period: 300
asg_cpu_high_eval_period: 1
asg_cpu_low_period: 300
asg_cpu_low_eval_period: 2
enable_random_termination: false

preview_publish:
include_stack: true
enable_random_termination: false

system_users:
preview_publish:
admin:
name: admin
path: overwrite-me
authentication-service:
name: authentication-service
path: /home/users/system
authorizable_keystore:
password:
certificate_chain:
private_key:
private_key_alias:
deployer:
name: deployer
path: /home/users/q
exporter:
name: exporter
path: /home/users/e
importer:
name: importer
path: /home/users/i
orchestrator:
name: orchestrator
path: /home/users/o
replicator:
name: replicator
path: /home/users/r

dns_records:
preview_publish_dispatcher:
record_set_name: preview-publish-dispatcher
ttl: 300
Loading

0 comments on commit 6af2ee0

Please sign in to comment.