Skip to content

Commit

Permalink
SUSE 15-SPx logs support (#936)
Browse files Browse the repository at this point in the history
* chore: Add alternate SP-x match for suse logs

* chore: Add tests for suse 15-SP4 infra/logs
  • Loading branch information
rthorn-nr authored Jun 20, 2023
1 parent 7a2d356 commit 56d7ea4
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/newrelic/infrastructure/logs/linux-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ installTargets:
platformVersion: "((7|8|9)\\.?.*)"
- type: host
os: linux
platform: "suse"
platformVersion: "15\\.[1-4]"
platformFamily: suse
platformVersion: "(15\\.[1-4]|15-SP[1-4])"
kernelArch: x86_64
# ARM supported
- type: host
Expand Down
34 changes: 34 additions & 0 deletions test/definitions/infra-agent/suse154-infra.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"global_tags": {
"owning_team": "virtuoso",
"Environment": "development",
"Department": "product",
"Product": "virtuoso"
},
"resources": [
{
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "suse-sles-15-sp4-v????????-hvm-*"
}
],
"instrumentations": {
"resources": [
{
"id": "nr_infra_suse154",
"resource_ids": [
"host1"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
"params": {
"validate_output": "Infrastructure Agent\\s+\\(installed\\)",
"local_recipes": true
}
}
]
}
}
34 changes: 34 additions & 0 deletions test/definitions/logging/suse154-logs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"global_tags": {
"owning_team": "virtuoso",
"Environment": "development",
"Department": "product",
"Product": "virtuoso"
},
"resources": [
{
"id": "suse154-logs",
"provider": "aws",
"type": "ec2",
"size": "t3.nano",
"ami_name": "suse-sles-15-sp4-v????????-hvm-*"
}
],
"instrumentations": {
"resources": [
{
"id": "nr_infra_suse154",
"resource_ids": [
"suse154-logs"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
"params": {
"validate_output": "Logs Integration\\s+\\(installed\\)",
"local_recipes": true
}
}
]
}
}

0 comments on commit 56d7ea4

Please sign in to comment.