Skip to content

Commit

Permalink
chore(ohi): Update pinned Ubuntu versions (#941)
Browse files Browse the repository at this point in the history
* chore: Match doc'd ubuntu support for pinned versions

* chore: Add OHI tests for pinned ubuntu jammy support
  • Loading branch information
rthorn-nr authored Jul 10, 2023
1 parent 032a4a2 commit ed8f350
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 4 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 @@ -33,7 +33,7 @@ installTargets:
- type: host
os: linux
platform: "ubuntu"
platformVersion: "((16|18|20|22)\\.04)" # Xenial, Bionic, Focal
platformVersion: "(((16|18|20|21|22)\\.04)|(20.10))" # Xenial, Bionic, Focal, Hirsute, Jammy, Groovy
- type: host
os: linux
platform: "redhat"
Expand Down Expand Up @@ -63,7 +63,7 @@ installTargets:
- type: host
os: linux
platform: "ubuntu"
platformVersion: "((16|18|20|22)\\.04)" # Xenial, Bionic, Focal
platformVersion: "(((16|18|20|21|22)\\.04)|(20.10))" # Xenial, Bionic, Focal, Hirsute, Jammy, Groovy
kernelArch: aarch64
- type: host
os: linux
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/mysql/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ installTargets:
- type: host
os: linux
platform: "ubuntu"
platformVersion: "((16|18|20)\\.04)" # Xenial, Bionic, Focal
platformVersion: "(((16|18|20|21|22)\\.04)|(20.10))" # Xenial, Bionic, Focal, Hirsute, Jammy, Groovy

# keyword convention for dealing with search terms that could land someone on this instrumentation project
keywords:
Expand Down
2 changes: 1 addition & 1 deletion recipes/newrelic/infrastructure/ohi/redis/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ installTargets:
- type: host
os: linux
platform: "ubuntu"
platformVersion: "((16|18|20)\\.04)" # Xenial, Bionic, Focal
platformVersion: "(((16|18|20|21|22)\\.04)|(20.10))" # Xenial, Bionic, Focal, Hirsute, Jammy, Groovy

# keyword convention for dealing with search terms that could land someone on this instrumentation project
keywords:
Expand Down
49 changes: 49 additions & 0 deletions test/definitions/ohi/linux/mysql-ubuntu22.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"global_tags": {
"owning_team": "virtuoso",
"Environment": "development",
"Department": "product",
"Product": "virtuoso"
},
"resources": [
{
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t3.micro",
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-202?????",
"user_name": "ubuntu"
}
],
"services": [
{
"id": "mysql1",
"destinations": [
"host1"
],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/mysql/install/debian/roles",
"port": 9999,
"params": {
"create_env_var": true
}
}
],
"instrumentations": {
"resources": [
{
"id": "nr_infra_mysql",
"resource_ids": [
"host1"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ubuntu.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/mysql/debian.yml",
"validate_output": "(MySQL Integration)\\s+\\(installed\\)"
}
}
]
}
}
49 changes: 49 additions & 0 deletions test/definitions/ohi/linux/redis-ubuntu22.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"global_tags": {
"owning_team": "virtuoso",
"Environment": "development",
"Department": "product",
"Product": "virtuoso"
},
"resources": [
{
"id": "host1",
"provider": "aws",
"type": "ec2",
"size": "t3.small",
"ami_name": "ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-202?????",
"user_name": "ubuntu"
}
],
"services": [
{
"id": "redis1",
"destinations": [
"host1"
],
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/redis/install/debian/roles",
"port": 6379,
"params": {
"create_env_var": true
}
}
],
"instrumentations": {
"resources": [
{
"id": "nr_infra_redis",
"resource_ids": [
"host1"
],
"provider": "newrelic",
"source_repository": "https://github.com/newrelic/open-install-library.git",
"deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
"params": {
"recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ubuntu.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/redis/debian.yml",
"validate_output": "(Redis Integration)\\s+\\(installed\\)"
}
}
]
}
}

0 comments on commit ed8f350

Please sign in to comment.