Skip to content

Commit

Permalink
create unique deployment ID
Browse files Browse the repository at this point in the history
* create a unique deployment ID stored in {{ playbook_dir }}/.deployment_id
* override VPC report bucket name to include deployment ID

Closes #148
  • Loading branch information
jce-redhat committed May 15, 2024
1 parent 8e6622e commit eb9125d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ choose_demo_example_aws.yml
*artifact*.json
**/roles/*
!**/roles/requirements.yml
.deployment_id
1 change: 1 addition & 0 deletions cloud/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ controller_templates:
notification_templates_error: Telemetry
extra_vars:
aws_report: vpc
reports_aws_bucket_name: reports-pd-{{ lookup('file', playbook_dir + '/.deployment_id') }}
survey_enabled: true
survey:
name: ''
Expand Down
4 changes: 4 additions & 0 deletions setup_demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
- name: "SESSION_COOKIE_AGE"
value: 180000

- name: Create reusable deployment ID
ansible.builtin.set_fact:
_deployment_id: '{{ lookup("ansible.builtin.password", "{{ playbook_dir }}/.deployment_id", chars=["ascii_letters", "digits"], length=5) }}'

- name: "Include configuration for {{ demo }}"
ansible.builtin.include_vars: "{{ demo }}/setup.yml"

Expand Down

0 comments on commit eb9125d

Please sign in to comment.