From e3031020240e4b710be181bc9072710fbfbefb36 Mon Sep 17 00:00:00 2001 From: Ryan Thorn Date: Mon, 12 Dec 2022 13:25:16 -0800 Subject: [PATCH] copy US OHI tests to definitions-eu --- .../definitions-eu/ohi/linux/apache-rhel.json | 40 ++++++++++++++ .../ohi/linux/cassandra-debian.json | 45 ++++++++++++++++ .../ohi/linux/consul-debian.json | 45 ++++++++++++++++ .../definitions-eu/ohi/linux/consul-rhel.json | 44 ++++++++++++++++ .../ohi/linux/couchbase-debian.json | 46 ++++++++++++++++ .../ohi/linux/couchbase-rhel.json | 44 ++++++++++++++++ .../ohi/linux/docker-linux2.json | 40 ++++++++++++++ .../ohi/linux/elasticsearch-debian.json | 46 ++++++++++++++++ .../ohi/linux/elasticsearch-rhel.json | 46 ++++++++++++++++ .../ohi/linux/elasticsearch-suse.json | 45 ++++++++++++++++ .../ohi/linux/haproxy-debian.json | 46 ++++++++++++++++ .../ohi/linux/haproxy-rhel.json | 44 ++++++++++++++++ test/definitions-eu/ohi/linux/k8-linux2.json | 45 ++++++++++++++++ .../ohi/linux/memcached-debian.json | 50 ++++++++++++++++++ .../ohi/linux/memcached-rhel.json | 50 ++++++++++++++++++ .../ohi/linux/mongodb-debian.json | 46 ++++++++++++++++ .../ohi/linux/mongodb-rhel.json | 40 ++++++++++++++ .../ohi/linux/mysql-debian.json | 45 ++++++++++++++++ test/definitions-eu/ohi/linux/mysql-suse.json | 44 ++++++++++++++++ .../ohi/linux/nagios-debian.json | 42 +++++++++++++++ .../definitions-eu/ohi/linux/nagios-rhel.json | 40 ++++++++++++++ .../ohi/linux/nginx-debian.json | 46 ++++++++++++++++ .../ohi/linux/nginx-linux2-ami.json | 52 +++++++++++++++++++ .../ohi/linux/nginx-linux2-svc.json | 44 ++++++++++++++++ .../ohi/linux/nginx-ubuntu.json | 46 ++++++++++++++++ .../postgres-debian-targeted-failure.json | 34 ++++++++++++ .../ohi/linux/postgres-debian.json | 50 ++++++++++++++++++ .../ohi/linux/postgres-rhel.json | 46 ++++++++++++++++ .../ohi/linux/rabbitmq-debian.json | 48 +++++++++++++++++ .../ohi/linux/rabbitmq-rhel.json | 49 +++++++++++++++++ .../ohi/linux/redis-debian.json | 45 ++++++++++++++++ test/definitions-eu/ohi/linux/redis-rhel.json | 48 +++++++++++++++++ .../ohi/linux/varnish-debian.json | 49 +++++++++++++++++ .../ohi/linux/varnish-rhel.json | 43 +++++++++++++++ .../windows/ms-sql-server2014Standard.json | 52 +++++++++++++++++++ .../windows/ms-sql-server2016Standard.json | 52 +++++++++++++++++++ .../windows/ms-sql-server2019Standard.json | 46 ++++++++++++++++ 37 files changed, 1683 insertions(+) create mode 100644 test/definitions-eu/ohi/linux/apache-rhel.json create mode 100644 test/definitions-eu/ohi/linux/cassandra-debian.json create mode 100644 test/definitions-eu/ohi/linux/consul-debian.json create mode 100644 test/definitions-eu/ohi/linux/consul-rhel.json create mode 100644 test/definitions-eu/ohi/linux/couchbase-debian.json create mode 100644 test/definitions-eu/ohi/linux/couchbase-rhel.json create mode 100644 test/definitions-eu/ohi/linux/docker-linux2.json create mode 100644 test/definitions-eu/ohi/linux/elasticsearch-debian.json create mode 100644 test/definitions-eu/ohi/linux/elasticsearch-rhel.json create mode 100644 test/definitions-eu/ohi/linux/elasticsearch-suse.json create mode 100644 test/definitions-eu/ohi/linux/haproxy-debian.json create mode 100644 test/definitions-eu/ohi/linux/haproxy-rhel.json create mode 100644 test/definitions-eu/ohi/linux/k8-linux2.json create mode 100644 test/definitions-eu/ohi/linux/memcached-debian.json create mode 100644 test/definitions-eu/ohi/linux/memcached-rhel.json create mode 100644 test/definitions-eu/ohi/linux/mongodb-debian.json create mode 100644 test/definitions-eu/ohi/linux/mongodb-rhel.json create mode 100644 test/definitions-eu/ohi/linux/mysql-debian.json create mode 100644 test/definitions-eu/ohi/linux/mysql-suse.json create mode 100644 test/definitions-eu/ohi/linux/nagios-debian.json create mode 100644 test/definitions-eu/ohi/linux/nagios-rhel.json create mode 100644 test/definitions-eu/ohi/linux/nginx-debian.json create mode 100644 test/definitions-eu/ohi/linux/nginx-linux2-ami.json create mode 100644 test/definitions-eu/ohi/linux/nginx-linux2-svc.json create mode 100644 test/definitions-eu/ohi/linux/nginx-ubuntu.json create mode 100644 test/definitions-eu/ohi/linux/postgres-debian-targeted-failure.json create mode 100644 test/definitions-eu/ohi/linux/postgres-debian.json create mode 100644 test/definitions-eu/ohi/linux/postgres-rhel.json create mode 100644 test/definitions-eu/ohi/linux/rabbitmq-debian.json create mode 100644 test/definitions-eu/ohi/linux/rabbitmq-rhel.json create mode 100644 test/definitions-eu/ohi/linux/redis-debian.json create mode 100644 test/definitions-eu/ohi/linux/redis-rhel.json create mode 100644 test/definitions-eu/ohi/linux/varnish-debian.json create mode 100644 test/definitions-eu/ohi/linux/varnish-rhel.json create mode 100644 test/definitions-eu/ohi/windows/ms-sql-server2014Standard.json create mode 100644 test/definitions-eu/ohi/windows/ms-sql-server2016Standard.json create mode 100644 test/definitions-eu/ohi/windows/ms-sql-server2019Standard.json diff --git a/test/definitions-eu/ohi/linux/apache-rhel.json b/test/definitions-eu/ohi/linux/apache-rhel.json new file mode 100644 index 000000000..ee5fe993f --- /dev/null +++ b/test/definitions-eu/ohi/linux/apache-rhel.json @@ -0,0 +1,40 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.micro", + "ami_name": "amazonlinux-2-base*" + }], + + "services": [{ + "id": "apache1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/apache/install/rhel/roles", + "port": 80 + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_apache", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/apache/rhel.yml", + "validate_output": "(Apache Integration)\\s+\\(installed\\)" + } + } + ] + } + } diff --git a/test/definitions-eu/ohi/linux/cassandra-debian.json b/test/definitions-eu/ohi/linux/cassandra-debian.json new file mode 100644 index 000000000..d25d92343 --- /dev/null +++ b/test/definitions-eu/ohi/linux/cassandra-debian.json @@ -0,0 +1,45 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "user_name": "admin", + "ami_name": "debian-10-amd64-202?????-*" + }], + + "services": [{ + "id": "cassandra1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/cassandra/install/debian/roles", + "port": 9042, + "params":{ + "create_env_var": true, + "create_newrelic_user": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_cassandra", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/cassandra/debian.yml", + "validate_output": "(Cassandra Integration)\\s+\\(installed\\)" + } + } + ] + } +} \ No newline at end of file diff --git a/test/definitions-eu/ohi/linux/consul-debian.json b/test/definitions-eu/ohi/linux/consul-debian.json new file mode 100644 index 000000000..a92d72525 --- /dev/null +++ b/test/definitions-eu/ohi/linux/consul-debian.json @@ -0,0 +1,45 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + }], + + "services": [{ + "id": "haproxy1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/consul/install/debian/roles", + "port": 8500, + "params":{ + "create_env_var": true, + "configure_consul": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_ohi_consul", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/consul/debian.yml", + "validate_output": "(Consul Integration)\\s+\\(installed\\)" + } + } + ] + } + } diff --git a/test/definitions-eu/ohi/linux/consul-rhel.json b/test/definitions-eu/ohi/linux/consul-rhel.json new file mode 100644 index 000000000..98ef57afb --- /dev/null +++ b/test/definitions-eu/ohi/linux/consul-rhel.json @@ -0,0 +1,44 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "amazonlinux-2-base*" + }], + + "services": [{ + "id": "hashicorp1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/consul/install/rhel/roles", + "port": 8500, + "params":{ + "create_env_var": true, + "configure_consul": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_ohi_consul", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/consul/rhel.yml", + "validate_output": "(Consul Integration)\\s+\\(installed\\)" + } + } + ] + } + } diff --git a/test/definitions-eu/ohi/linux/couchbase-debian.json b/test/definitions-eu/ohi/linux/couchbase-debian.json new file mode 100644 index 000000000..b23a82c09 --- /dev/null +++ b/test/definitions-eu/ohi/linux/couchbase-debian.json @@ -0,0 +1,46 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + }], + + "services": [{ + "id": "couchbase1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/couchbase/install/debian/roles", + "port": 80, + "params":{ + "create_env_var": true, + "initialize_cluster": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_couchbase", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/couchbase/debian.yml", + "validate_output": "(Couchbase Integration)\\s+\\(installed\\)" + } + } + ] + } + } + diff --git a/test/definitions-eu/ohi/linux/couchbase-rhel.json b/test/definitions-eu/ohi/linux/couchbase-rhel.json new file mode 100644 index 000000000..baa628358 --- /dev/null +++ b/test/definitions-eu/ohi/linux/couchbase-rhel.json @@ -0,0 +1,44 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "amazonlinux-2-base*" + }], + + "services": [{ + "id": "couchbase1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/couchbase/install/rhel/roles", + "port": 80, + "params":{ + "create_env_var": true, + "initialize_cluster": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_couchbase", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/couchbase/rhel.yml", + "validate_output": "(Couchbase Integration)\\s+\\(installed\\)" + } + } + ] + } + } diff --git a/test/definitions-eu/ohi/linux/docker-linux2.json b/test/definitions-eu/ohi/linux/docker-linux2.json new file mode 100644 index 000000000..87c9cb007 --- /dev/null +++ b/test/definitions-eu/ohi/linux/docker-linux2.json @@ -0,0 +1,40 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "amazonlinux-2-base*" + }], + + "services": [{ + "id": "docker1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/docker/install/roles", + "port": 9999 + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_docker", + "resource_ids": ["host1"], + "provider": "newrelic", + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles", + "params": { + "local_recipes": true, + "validate_output": "Infrastructure Agent\\s+\\(installed\\)" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/elasticsearch-debian.json b/test/definitions-eu/ohi/linux/elasticsearch-debian.json new file mode 100644 index 000000000..2fe94c3b2 --- /dev/null +++ b/test/definitions-eu/ohi/linux/elasticsearch-debian.json @@ -0,0 +1,46 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + }], + + "services": [{ + "id": "elastic1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/elasticsearch/install/debian/roles", + "port": 9999, + "params":{ + "create_env_var": true, + "create_newrelic_user": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_elasticsearch", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/elasticsearch/debian.yml", + "validate_output": "(Elasticsearch Integration)\\s+\\(installed\\)" + } + } + ] + } + } + diff --git a/test/definitions-eu/ohi/linux/elasticsearch-rhel.json b/test/definitions-eu/ohi/linux/elasticsearch-rhel.json new file mode 100644 index 000000000..bfe3a5a13 --- /dev/null +++ b/test/definitions-eu/ohi/linux/elasticsearch-rhel.json @@ -0,0 +1,46 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "amazonlinux-2-base*", + "user_name": "ec2-user" + }], + + "services": [{ + "id": "elastic1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/elasticsearch/install/rhel/roles", + "port": 9999, + "params":{ + "create_env_var": true, + "create_newrelic_user": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_elasticsearch", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/elasticsearch/rhel.yml", + "validate_output": "(Elasticsearch Integration)\\s+\\(installed\\)" + } + } + ] + } + } + diff --git a/test/definitions-eu/ohi/linux/elasticsearch-suse.json b/test/definitions-eu/ohi/linux/elasticsearch-suse.json new file mode 100644 index 000000000..9de77a49c --- /dev/null +++ b/test/definitions-eu/ohi/linux/elasticsearch-suse.json @@ -0,0 +1,45 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "suse-sles-12-sp5-v????????-hvm-*" + }], + + "services": [{ + "id": "elastic1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/elasticsearch/install/suse/roles", + "port": 9999, + "params":{ + "create_env_var": true, + "create_newrelic_user": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_elasticsearch", + "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/suse.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/elasticsearch/suse.yml", + "validate_output": "(Elasticsearch Integration)\\s+\\(installed\\)" + } + } + ] + } + } + diff --git a/test/definitions-eu/ohi/linux/haproxy-debian.json b/test/definitions-eu/ohi/linux/haproxy-debian.json new file mode 100644 index 000000000..03e3a3c85 --- /dev/null +++ b/test/definitions-eu/ohi/linux/haproxy-debian.json @@ -0,0 +1,46 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + }], + + "services": [{ + "id": "haproxy1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/haproxy/install/debian/roles", + "port": 9999, + "params":{ + "create_env_var": true, + "configure_haproxy": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_haproxy", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/haproxy/debian.yml", + "validate_output": "(HAProxy Integration)\\s+\\(installed\\)" + } + } + ] + } + } + diff --git a/test/definitions-eu/ohi/linux/haproxy-rhel.json b/test/definitions-eu/ohi/linux/haproxy-rhel.json new file mode 100644 index 000000000..82765a015 --- /dev/null +++ b/test/definitions-eu/ohi/linux/haproxy-rhel.json @@ -0,0 +1,44 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "amazonlinux-2-base*" + }], + + "services": [{ + "id": "haproxy1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/haproxy/install/rhel/roles", + "port": 9999, + "params":{ + "create_env_var": true, + "configure_haproxy": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_haproxy", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/haproxy/rhel.yml", + "validate_output": "(HAProxy Integration)\\s+\\(installed\\)" + } + } + ] + } + } diff --git a/test/definitions-eu/ohi/linux/k8-linux2.json b/test/definitions-eu/ohi/linux/k8-linux2.json new file mode 100644 index 000000000..f57bc11a7 --- /dev/null +++ b/test/definitions-eu/ohi/linux/k8-linux2.json @@ -0,0 +1,45 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + "resources": [ + { + "id": "k8mini", + "provider": "aws", + "type": "ec2", + "size": "t3.xlarge", + "ami_name": "amazonlinux-2-base*" + } + ], + "services": [ + { + "id": "minik1", + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/kubernetes/minikube/roles", + "port": 9999, + "destinations": [ + "k8mini" + ] + } + ], + "instrumentations": { + "resources": [ + { + "id": "nr_k8", + "resource_ids": [ + "k8mini" + ], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "provider": "newrelic", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/kubernetes.yml", + "validate_output": "(Kubernetes Integration)\\s+\\(installed\\)" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/memcached-debian.json b/test/definitions-eu/ohi/linux/memcached-debian.json new file mode 100644 index 000000000..0a75f8b1c --- /dev/null +++ b/test/definitions-eu/ohi/linux/memcached-debian.json @@ -0,0 +1,50 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + "resources": [ + { + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + } + ], + "services": [ + { + "id": "memcached1", + "destinations": [ + "host1" + ], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/memcached/install/debian/roles", + "port": 9999, + "params": { + "create_env_var": true, + "configure_sasl": true + } + } + ], + "instrumentations": { + "resources": [ + { + "id": "nr_infra_memcached", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/memcached/debian.yml", + "validate_output": "(Memcached Integration)\\s+\\(installed\\)" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/memcached-rhel.json b/test/definitions-eu/ohi/linux/memcached-rhel.json new file mode 100644 index 000000000..88197b0b7 --- /dev/null +++ b/test/definitions-eu/ohi/linux/memcached-rhel.json @@ -0,0 +1,50 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + "resources": [ + { + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "amazonlinux-2-base*", + "user_name": "ec2-user" + } + ], + "services": [ + { + "id": "memcached1", + "destinations": [ + "host1" + ], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/memcached/install/rhel/roles", + "port": 9999, + "params": { + "create_env_var": true, + "configure_sasl": true + } + } + ], + "instrumentations": { + "resources": [ + { + "id": "nr_infra_memcached", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/memcached/rhel.yml", + "validate_output": "(Memcached Integration)\\s+\\(installed\\)" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/mongodb-debian.json b/test/definitions-eu/ohi/linux/mongodb-debian.json new file mode 100644 index 000000000..dd53ac017 --- /dev/null +++ b/test/definitions-eu/ohi/linux/mongodb-debian.json @@ -0,0 +1,46 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + }], + + "services": [{ + "id": "mongodb1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/mongodb/install/debian/roles", + "port": 80, + "params":{ + "create_env_var": true, + "open_status_url": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_mongodb", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/mongodb/debian.yml", + "validate_output": "(MongoDB Integration)\\s+\\(installed\\)" + } + } + ] + } + } + \ No newline at end of file diff --git a/test/definitions-eu/ohi/linux/mongodb-rhel.json b/test/definitions-eu/ohi/linux/mongodb-rhel.json new file mode 100644 index 000000000..1e865b7eb --- /dev/null +++ b/test/definitions-eu/ohi/linux/mongodb-rhel.json @@ -0,0 +1,40 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "amazonlinux-2-base*" + }], + + "services": [{ + "id": "mongodb1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/mongodb/install/rhel/roles", + "port": 80 + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_mongodb", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/mongodb/rhel.yml", + "validate_output": "New Relic installation complete" + } + } + ] + } + } diff --git a/test/definitions-eu/ohi/linux/mysql-debian.json b/test/definitions-eu/ohi/linux/mysql-debian.json new file mode 100644 index 000000000..ca134e432 --- /dev/null +++ b/test/definitions-eu/ohi/linux/mysql-debian.json @@ -0,0 +1,45 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.micro", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + }], + + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/mysql/debian.yml", + "validate_output": "(MySQL Integration)\\s+\\(installed\\)" + } + } + ] + } + } + diff --git a/test/definitions-eu/ohi/linux/mysql-suse.json b/test/definitions-eu/ohi/linux/mysql-suse.json new file mode 100644 index 000000000..c02280491 --- /dev/null +++ b/test/definitions-eu/ohi/linux/mysql-suse.json @@ -0,0 +1,44 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.micro", + "ami_name": "suse-sles-12-sp5-v????????-hvm-*" + }], + + "services": [{ + "id": "mysql1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/mysql/install/suse/roles", + "port": 9999, + "params": { + "create_env_var": true, + "create_newrelic_user": 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/suse.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/mysql/suse.yml", + "validate_output": "New Relic installation complete" + } + } + ] + } + } diff --git a/test/definitions-eu/ohi/linux/nagios-debian.json b/test/definitions-eu/ohi/linux/nagios-debian.json new file mode 100644 index 000000000..3a8110230 --- /dev/null +++ b/test/definitions-eu/ohi/linux/nagios-debian.json @@ -0,0 +1,42 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + }], + + "services": [{ + "id": "nagios1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/nagios/install/debian/roles", + "port": 80 + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_nagios", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/nagios/debian.yml", + "validate_output": "(Nagios Integration)\\s+\\(installed\\)" + } + } + ] + } + } + diff --git a/test/definitions-eu/ohi/linux/nagios-rhel.json b/test/definitions-eu/ohi/linux/nagios-rhel.json new file mode 100644 index 000000000..f8f168315 --- /dev/null +++ b/test/definitions-eu/ohi/linux/nagios-rhel.json @@ -0,0 +1,40 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "amazonlinux-2-base*" + }], + + "services": [{ + "id": "nagios1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/nagios/install/rhel/roles", + "port": 80 + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_nagios", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/nagios/rhel.yml", + "validate_output": "(Nagios Integration)\\s+\\(installed\\)" + } + } + ] + } + } diff --git a/test/definitions-eu/ohi/linux/nginx-debian.json b/test/definitions-eu/ohi/linux/nginx-debian.json new file mode 100644 index 000000000..81ac8c6c9 --- /dev/null +++ b/test/definitions-eu/ohi/linux/nginx-debian.json @@ -0,0 +1,46 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + }], + + "services": [{ + "id": "nginx1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/nginx/install/debian/roles", + "port": 80, + "params":{ + "create_env_var": true, + "open_status_url": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_nginx", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/nginx/linux.yml", + "validate_output": "(NGINX Integration)\\s+\\(installed\\)" + } + } + ] + } + } + \ No newline at end of file diff --git a/test/definitions-eu/ohi/linux/nginx-linux2-ami.json b/test/definitions-eu/ohi/linux/nginx-linux2-ami.json new file mode 100644 index 000000000..2ef0bc3c1 --- /dev/null +++ b/test/definitions-eu/ohi/linux/nginx-linux2-ami.json @@ -0,0 +1,52 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.medium", + "ami_name": "nginx-plus-amazon-linux-2-v1.6-x86_64-developer-*" + }], + + "services": [ + { + "id": "app1", + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/nginx/open-default/roles", + "port": 80, + "destinations": ["host1"], + "params":{ + "create_env_var": true + } + }, + { + "id": "app2", + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/nginx/yum-fix/roles", + "port": 8080, + "destinations": ["host1"] + } + ], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_nginx", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/nginx/linux.yml", + "validate_output": "(NGINX Integration)\\s+\\(installed\\)" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/nginx-linux2-svc.json b/test/definitions-eu/ohi/linux/nginx-linux2-svc.json new file mode 100644 index 000000000..fc6c2a2e1 --- /dev/null +++ b/test/definitions-eu/ohi/linux/nginx-linux2-svc.json @@ -0,0 +1,44 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.micro", + "ami_name": "amazonlinux-2-base*" + }], + + "services": [{ + "id": "nginx1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/nginx/install/linux2/roles", + "port": 80, + "params":{ + "create_env_var": true, + "open_status_url": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_nginx", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/nginx/linux.yml", + "validate_output": "(NGINX Integration)\\s+\\(installed\\)" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/nginx-ubuntu.json b/test/definitions-eu/ohi/linux/nginx-ubuntu.json new file mode 100644 index 000000000..342eabf45 --- /dev/null +++ b/test/definitions-eu/ohi/linux/nginx-ubuntu.json @@ -0,0 +1,46 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-????????.1", + "user_name": "ubuntu" + }], + + "services": [{ + "id": "nginx1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/nginx/install/debian/roles", + "port": 80, + "params":{ + "create_env_var": true, + "open_status_url": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_nginx", + "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/nginx/linux.yml", + "validate_output": "(NGINX Integration)\\s+\\(installed\\)" + } + } + ] + } + } + \ No newline at end of file diff --git a/test/definitions-eu/ohi/linux/postgres-debian-targeted-failure.json b/test/definitions-eu/ohi/linux/postgres-debian-targeted-failure.json new file mode 100644 index 000000000..d1e646b4b --- /dev/null +++ b/test/definitions-eu/ohi/linux/postgres-debian-targeted-failure.json @@ -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": "debian-10-amd64-202?????-*", + "user_name": "admin" + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra", + "resource_ids": ["host1"], + "provider": "newrelic", + "source_repository": "https://github.com/newrelic/open-install-library", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/postgres/debian.yml", + "recipe_targeted": "postgres-open-source-integration", + "validate_output": "(PostgreSQL Integration)\\s+\\(unsupported\\)" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/postgres-debian.json b/test/definitions-eu/ohi/linux/postgres-debian.json new file mode 100644 index 000000000..babd146c0 --- /dev/null +++ b/test/definitions-eu/ohi/linux/postgres-debian.json @@ -0,0 +1,50 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + "resources": [ + { + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + } + ], + "services": [ + { + "id": "postgres1", + "destinations": [ + "host1" + ], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/postgres/install/debian/roles", + "port": 9999, + "params": { + "create_env_var": true, + "create_newrelic_user": true + } + } + ], + "instrumentations": { + "resources": [ + { + "id": "nr_infra_postgres", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/postgres/debian.yml", + "validate_output": "(PostgreSQL Integration)\\s+\\(installed\\)" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/postgres-rhel.json b/test/definitions-eu/ohi/linux/postgres-rhel.json new file mode 100644 index 000000000..de0a3a8eb --- /dev/null +++ b/test/definitions-eu/ohi/linux/postgres-rhel.json @@ -0,0 +1,46 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + "resources": [ + { + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "amazonlinux-2-base*", + "user_name": "ec2-user" + } + ], + "services": [ + { + "id": "postgres1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/postgres/install/rhel/roles", + "port": 80, + "params": { + "create_env_var": true, + "create_newrelic_user": true + } + } + ], + "instrumentations": { + "resources": [ + { + "id": "nr_infra_postgres", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/postgres/rhel.yml", + "validate_output": "(PostgreSQL Integration)\\s+\\(installed\\)" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/rabbitmq-debian.json b/test/definitions-eu/ohi/linux/rabbitmq-debian.json new file mode 100644 index 000000000..52b127568 --- /dev/null +++ b/test/definitions-eu/ohi/linux/rabbitmq-debian.json @@ -0,0 +1,48 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + "resources": [ + { + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + } + ], + "services": [ + { + "id": "rabbitmq1", + "destinations": [ + "host1" + ], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/rabbitmq/install/debian/roles", + "port": 80, + "params": { + "create_env_var": true, + "create_newrelic_user": true + } + } + ], + "instrumentations": { + "resources": [ + { + "id": "nr_infra_rabbitmq", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/rabbitmq/debian.yml", + "validate_output": "New Relic installation complete" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/rabbitmq-rhel.json b/test/definitions-eu/ohi/linux/rabbitmq-rhel.json new file mode 100644 index 000000000..ef9058e4e --- /dev/null +++ b/test/definitions-eu/ohi/linux/rabbitmq-rhel.json @@ -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": "amazonlinux-2-base*", + "user_name": "ec2-user" + } + ], + "services": [ + { + "id": "rabbitmq1", + "destinations": [ + "host1" + ], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/rabbitmq/install/rhel/roles", + "port": 80, + "params":{ + "create_env_var": true, + "open_status_url": true + } + } + ], + "instrumentations": { + "resources": [ + { + "id": "nr_infra_rabbitmq", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/centos_rhel.yml", + "validate_output": "New Relic installation complete" + } + } + ] + } + } + \ No newline at end of file diff --git a/test/definitions-eu/ohi/linux/redis-debian.json b/test/definitions-eu/ohi/linux/redis-debian.json new file mode 100644 index 000000000..aafb0813d --- /dev/null +++ b/test/definitions-eu/ohi/linux/redis-debian.json @@ -0,0 +1,45 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.small", + "ami_name": "debian-10-amd64-202?????-*", + "user_name": "admin" + }], + + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/redis/debian.yml", + "validate_output": "(Redis Integration)\\s+\\(installed\\)" + } + } + ] + } + } + diff --git a/test/definitions-eu/ohi/linux/redis-rhel.json b/test/definitions-eu/ohi/linux/redis-rhel.json new file mode 100644 index 000000000..f707fc59d --- /dev/null +++ b/test/definitions-eu/ohi/linux/redis-rhel.json @@ -0,0 +1,48 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [ + { + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "amazonlinux-2-base*", + "user_name": "ec2-user" + } + ], + + "services": [ + { + "id": "redis1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/redis/install/rhel/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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/redis/rhel.yml", + "validate_output": "(Redis Integration)\\s+\\(installed\\)" + } + } + ] + } +} diff --git a/test/definitions-eu/ohi/linux/varnish-debian.json b/test/definitions-eu/ohi/linux/varnish-debian.json new file mode 100644 index 000000000..043a4d4b0 --- /dev/null +++ b/test/definitions-eu/ohi/linux/varnish-debian.json @@ -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": "debian-10-amd64-202?????-*", + "user_name": "admin" + } + ], + "services": [ + { + "id": "varnish1", + "destinations": [ + "host1" + ], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/varnish/install/debian/roles", + "port": 80, + "params": { + "create_env_var": true + } + } + ], + "instrumentations": { + "resources": [ + { + "id": "nr_infra_varnish", + "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/debian.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/varnish/debian.yml", + "validate_output": "(Varnish Cache Integration)\\s+\\(installed\\)" + } + } + ] + } + } diff --git a/test/definitions-eu/ohi/linux/varnish-rhel.json b/test/definitions-eu/ohi/linux/varnish-rhel.json new file mode 100644 index 000000000..0861a6eb6 --- /dev/null +++ b/test/definitions-eu/ohi/linux/varnish-rhel.json @@ -0,0 +1,43 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.nano", + "ami_name": "amazonlinux-2-base*" + }], + + "services": [{ + "id": "varnish1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/linux/varnish/install/rhel/roles", + "port": 80, + "params":{ + "create_env_var": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra_varnish", + "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/awslinux.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/varnish/rhel.yml", + "validate_output": "(Varnish Cache Integration)\\s+\\(installed\\)" + } + } + ] + } + } diff --git a/test/definitions-eu/ohi/windows/ms-sql-server2014Standard.json b/test/definitions-eu/ohi/windows/ms-sql-server2014Standard.json new file mode 100644 index 000000000..3b3a6b5c0 --- /dev/null +++ b/test/definitions-eu/ohi/windows/ms-sql-server2014Standard.json @@ -0,0 +1,52 @@ +{ + "global_tags": { + "owning_team": "OpenSource", + "Environment": "development", + "Department": "Product", + "Product": "Virtuoso" + }, + "resources": [ + { + "id": "host1", + "display_name": "AwsWindowsSqlServer2014Host", + "provider": "aws", + "type": "ec2", + "size": "t3.xlarge", + "is_windows": true, + "ami_name": "Windows_Server-2012-RTM-English-64Bit-SQL_2014_SP3_Standard-*", + "user_name": "Administrator" + } + ], + "services": [ + { + "id": "sql1", + "destinations": [ + "host1" + ], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/windows/ms-sql/create-newrelic/roles", + "port": 9999, + "params": { + "create_env_var": true, + "create_newrelic_user": true + } + } + ], + "instrumentations": { + "resources": [ + { + "id": "nr_infra", + "resource_ids": [ + "host1" + ], + "provider": "newrelic", + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/windows/newrelic-cli/install-recipe/roles", + "params": { + "recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/windows.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/sql/ms-sql.yml", + "validate_output": "Microsoft/SqlServer Integration\\s+\\(installed\\)" + } + } + ] + } +} \ No newline at end of file diff --git a/test/definitions-eu/ohi/windows/ms-sql-server2016Standard.json b/test/definitions-eu/ohi/windows/ms-sql-server2016Standard.json new file mode 100644 index 000000000..0d27facbb --- /dev/null +++ b/test/definitions-eu/ohi/windows/ms-sql-server2016Standard.json @@ -0,0 +1,52 @@ +{ + "global_tags": { + "owning_team": "OpenSource", + "Environment": "development", + "Department": "Product", + "Product": "Virtuoso" + }, + "resources": [ + { + "id": "host1", + "display_name": "AwsWindowsSqlServer2016Host", + "provider": "aws", + "type": "ec2", + "size": "t3.xlarge", + "is_windows": true, + "ami_name": "Windows_Server-2016-English-Full-SQL_2016_SP3_Standard-*", + "user_name": "Administrator" + } + ], + "services": [ + { + "id": "sql1", + "destinations": [ + "host1" + ], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/windows/ms-sql/create-newrelic/roles", + "port": 9999, + "params": { + "create_env_var": true, + "create_newrelic_user": true + } + } + ], + "instrumentations": { + "resources": [ + { + "id": "nr_infra", + "resource_ids": [ + "host1" + ], + "provider": "newrelic", + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/windows/newrelic-cli/install-recipe/roles", + "params": { + "recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/windows.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/sql/ms-sql.yml", + "validate_output": "Microsoft/SqlServer Integration\\s+\\(installed\\)" + } + } + ] + } +} \ No newline at end of file diff --git a/test/definitions-eu/ohi/windows/ms-sql-server2019Standard.json b/test/definitions-eu/ohi/windows/ms-sql-server2019Standard.json new file mode 100644 index 000000000..772145543 --- /dev/null +++ b/test/definitions-eu/ohi/windows/ms-sql-server2019Standard.json @@ -0,0 +1,46 @@ +{ + "global_tags": { + "owning_team": "virtuoso", + "Environment": "development", + "Department": "product", + "Product": "virtuoso" + }, + + "resources": [{ + "id": "host1", + "provider": "aws", + "type": "ec2", + "size": "t3.xlarge", + "is_windows": true, + "ami_name": "Windows_Server-2019-English-Full-SQL_2019_Standard-*", + "user_name": "Administrator" + }], + + "services": [{ + "id": "sql1", + "destinations": ["host1"], + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/windows/ms-sql/create-newrelic/roles", + "port": 9999, + "params":{ + "create_env_var": true, + "create_newrelic_user": true + } + }], + + "instrumentations": { + "resources": [ + { + "id": "nr_infra", + "resource_ids": ["host1"], + "provider": "newrelic", + "source_repository": "https://github.com/newrelic/open-install-library.git", + "deploy_script_path": "test/deploy/windows/newrelic-cli/install-recipe/roles", + "params": { + "recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/windows.yml,https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/ohi/sql/ms-sql.yml", + "validate_output": "(Microsoft/SqlServer Integration)\\s+\\(installed\\)" + } + } + ] + } +}