-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from cisagov/improvement/prefer-dict-to-ternar…
…y-logic Prefer a dictionary to ternary logic
- Loading branch information
Showing
4 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
--- | ||
# A dictionary whose keys are values of the Ansible fact | ||
# ansible_architecture and whose values are processor architecture for | ||
# which CloudWatch Agent is to be installed, as specified in the | ||
# CloudWatch Agent package filename | ||
architectures: | ||
aarch64: arm64 | ||
x86_64: amd64 | ||
|
||
# The Amazon CloudWatch Agent URL | ||
url: https://s3.amazonaws.com/amazoncloudwatch-agent/amazon_linux/{{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' }}/latest/amazon-cloudwatch-agent.rpm | ||
url: https://s3.amazonaws.com/amazoncloudwatch-agent/amazon_linux/{{ architectures[ansible_architecture] }}/latest/amazon-cloudwatch-agent.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
--- | ||
# A dictionary whose keys are values of the Ansible fact | ||
# ansible_architecture and whose values are processor architecture for | ||
# which CloudWatch Agent is to be installed, as specified in the | ||
# CloudWatch Agent package filename | ||
architectures: | ||
aarch64: arm64 | ||
x86_64: amd64 | ||
|
||
# The Amazon CloudWatch Agent URL | ||
url: https://s3.amazonaws.com/amazoncloudwatch-agent/debian/{{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' }}/latest/amazon-cloudwatch-agent.deb | ||
url: https://s3.amazonaws.com/amazoncloudwatch-agent/debian/{{ architectures[ansible_architecture] }}/latest/amazon-cloudwatch-agent.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
--- | ||
# A dictionary whose keys are values of the Ansible fact | ||
# ansible_architecture and whose values are processor architecture for | ||
# which CloudWatch Agent is to be installed, as specified in the | ||
# CloudWatch Agent package filename | ||
architectures: | ||
aarch64: arm64 | ||
x86_64: amd64 | ||
|
||
# The Amazon CloudWatch Agent URL | ||
url: https://s3.amazonaws.com/amazoncloudwatch-agent/redhat/{{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' }}/latest/amazon-cloudwatch-agent.rpm | ||
url: https://s3.amazonaws.com/amazoncloudwatch-agent/redhat/{{ architectures[ansible_architecture] }}/latest/amazon-cloudwatch-agent.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
--- | ||
# A dictionary whose keys are values of the Ansible fact | ||
# ansible_architecture and whose values are processor architecture for | ||
# which CloudWatch Agent is to be installed, as specified in the | ||
# CloudWatch Agent package filename | ||
architectures: | ||
aarch64: arm64 | ||
x86_64: amd64 | ||
|
||
# The Amazon CloudWatch Agent URL | ||
url: https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/{{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' }}/latest/amazon-cloudwatch-agent.deb | ||
url: https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/{{ architectures[ansible_architecture] }}/latest/amazon-cloudwatch-agent.deb |