├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── enhancement.md
└── workflows
│ ├── cleanup-eu.yml
│ ├── cleanup.yml
│ ├── local-repo-pr.yml
│ ├── nonregression-dp.yml
│ ├── nonregression-eu-dp.yml
│ ├── nonregression-eu.yml
│ ├── nonregression.yml
│ ├── release.yml
│ ├── scripts
│ ├── deployer-platform
│ │ ├── main.js
│ │ └── package.json
│ └── ohiValidationTimeout.js
│ ├── smoke-eu-dp.yml
│ ├── smoke-eu.yml
│ └── validation.yml
├── .gitignore
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── Dockerfile.validator
├── LICENSE
├── README.md
├── cla.md
├── docs
├── README.md
├── error-codes.md
├── guided-java.md
├── kubernetes-eks.md
├── kubernetes.md
├── mongodb.md
├── recipe-spec
│ ├── recipe-spec.md
│ └── spec.json
├── release.md
├── supported_installations.md
├── test-framework
│ ├── README.md
│ ├── deployer.md
│ ├── lambda-terminate-old-git-ec2.py
│ ├── terminate-ec2-missing-owning-team.py
│ ├── terraform.md
│ └── terraform
│ │ ├── outputs.tf
│ │ ├── provider.tf
│ │ ├── resource.tf
│ │ ├── terraform.tf
│ │ └── variables.tf
└── uninstall
│ ├── README.md
│ ├── aws.md
│ └── java.md
├── examples
└── sample-linux-infrastructure.yaml
├── recipes
└── newrelic
│ ├── apm
│ ├── dotNet
│ │ ├── linux-systemd.yml
│ │ ├── windows-iis-unsupported.yml
│ │ └── windows-iis.yml
│ ├── java
│ │ └── linux.yml
│ ├── node
│ │ ├── linux.yml
│ │ └── windows.yml
│ ├── php
│ │ ├── debian.yml
│ │ ├── redhat.yml
│ │ └── redhat64.yml
│ ├── python
│ │ └── linux.yml
│ └── ruby
│ │ └── linux.yml
│ └── infrastructure
│ ├── agent-control
│ ├── debian.yml
│ ├── logs
│ │ └── linux-logs.yml
│ ├── rhel.yml
│ └── suse.yml
│ ├── alerts
│ └── golden.yml
│ ├── awslinux.yml
│ ├── centos_rhel.yml
│ ├── cloud
│ ├── aws-linux.yml
│ ├── aws-windows.yml
│ ├── azure-linux.yml
│ ├── azure-windows.yml
│ ├── gcp-linux.yml
│ └── gcp-windows.yml
│ ├── darwin.yml
│ ├── debian.yml
│ ├── kubernetes.yml
│ ├── logs
│ ├── linux-logs.yml
│ └── windows-logs.yml
│ ├── ohi
│ ├── apache
│ │ ├── debian.yml
│ │ └── rhel.yml
│ ├── cassandra
│ │ ├── debian.yml
│ │ └── rhel.yml
│ ├── consul
│ │ ├── debian.yml
│ │ └── rhel.yml
│ ├── couchbase
│ │ ├── debian.yml
│ │ └── rhel.yml
│ ├── elasticsearch
│ │ ├── debian.yml
│ │ ├── rhel.yml
│ │ ├── suse.yml
│ │ └── windows.yml
│ ├── haproxy
│ │ ├── debian.yml
│ │ └── rhel.yml
│ ├── kafka
│ │ ├── linux.yml
│ │ └── windows.yml
│ ├── memcached
│ │ ├── debian.yml
│ │ └── rhel.yml
│ ├── mongodb
│ │ ├── debian.yml
│ │ ├── rhel.yml
│ │ └── windows.yml
│ ├── mysql
│ │ ├── debian.yml
│ │ ├── rhel.yml
│ │ ├── suse.yml
│ │ └── windows.yml
│ ├── nagios
│ │ ├── debian.yml
│ │ └── rhel.yml
│ ├── nginx
│ │ ├── linux.yml
│ │ └── suse.yml
│ ├── oracle
│ │ └── linux.yml
│ ├── postgres
│ │ ├── debian.yml
│ │ ├── rhel.yml
│ │ └── windows.yml
│ ├── rabbitmq
│ │ ├── debian.yml
│ │ ├── rhel.yml
│ │ └── windows.yml
│ ├── redis
│ │ ├── debian.yml
│ │ └── rhel.yml
│ ├── sql
│ │ ├── ms-linux.yml
│ │ └── ms-sql.yml
│ └── varnish
│ │ ├── debian.yml
│ │ └── rhel.yml
│ ├── suse.yml
│ ├── ubuntu.yml
│ └── windows.yml
├── test
├── definitions-eu
│ ├── agent-control
│ │ ├── debians
│ │ │ ├── debian11-agent-control-eu.json
│ │ │ ├── ubuntu16-agent-control-eu.json
│ │ │ ├── ubuntu18-agent-control-eu.json
│ │ │ ├── ubuntu20-agent-control-eu.json
│ │ │ ├── ubuntu20arm64-agent-control-eu.json
│ │ │ └── ubuntu22-agent-control-eu.json
│ │ ├── logs
│ │ │ ├── amazonlinux2-agent-control-logs-eu.json
│ │ │ ├── amazonlinux2023-agent-control-logs-eu.json
│ │ │ ├── debian11-agent-control-logs-eu.json
│ │ │ ├── redhat8-agent-control-logs-eu.json
│ │ │ ├── redhat9-agent-control-logs-eu.json
│ │ │ ├── suse154-agent-control-logs-eu.json
│ │ │ ├── ubuntu20-agent-control-logs-eu.json
│ │ │ └── ubuntu22-agent-control-logs-eu.json
│ │ ├── rhel
│ │ │ ├── awslinux23-agent-control-eu.json
│ │ │ ├── awslinuxarm64-agent-control-eu.json
│ │ │ └── redhat8arm64-agent-control-eu.json
│ │ └── suse
│ │ │ ├── suse125-agent-control-eu.json
│ │ │ └── suse154-agent-control-eu.json
│ ├── apm
│ │ ├── dotNet
│ │ │ ├── linux
│ │ │ │ ├── debian10-nginx-aspnetcore.json
│ │ │ │ └── ubuntu20-apache-aspnetcore.json
│ │ │ └── windows
│ │ │ │ ├── iis-blank.json
│ │ │ │ ├── windows2016-iis.json
│ │ │ │ ├── windows2019-core-only-iis.json
│ │ │ │ └── windows2019-iis.json
│ │ ├── java
│ │ │ ├── deb10-supd-javatron.json
│ │ │ ├── deb10-sysd-custom-sh.json
│ │ │ ├── deb10-sysd-tomcat-cmd.json
│ │ │ ├── deb10-sysd-tomcat-sh.json
│ │ │ ├── deb11-apt-sysd-tomcat.json
│ │ │ ├── deb11-jetty.json
│ │ │ ├── deb11-sysd-jboss.json
│ │ │ ├── rhl2-jetty.json
│ │ │ ├── rhl2-supd-javatron.json
│ │ │ ├── rhl2-sysd-custom-sh.json
│ │ │ ├── rhl2-sysd-tomcat-cmd.json
│ │ │ ├── rhl2-sysd-tomcat-sh.json
│ │ │ ├── rhl2-yum-docker-jboss.json
│ │ │ ├── rhl2-yum-sysd-tomcat.json
│ │ │ ├── ub20-apt-docker-jboss.json
│ │ │ ├── ub20-apt-docker-tomcat.json
│ │ │ └── ub20-apt-sysd-tomcat.json
│ │ ├── node
│ │ │ └── node-linux2.json
│ │ └── php-agent
│ │ │ ├── php-apache-fpm-wordpress-linux2.json
│ │ │ ├── php-apache-fpm-wordpress-ubuntu18.json
│ │ │ ├── php-apache-wordpress-linux2.json
│ │ │ ├── php-apache-wordpress-ubuntu18.json
│ │ │ ├── php-nginx-fpm-wordpress-linux2.json
│ │ │ └── php-nginx-fpm-wordpress-ubuntu18.json
│ ├── infra-agent
│ │ ├── debians
│ │ │ ├── debian10-infra.json
│ │ │ ├── debian10arm64-infra.json
│ │ │ ├── debian11-infra.json
│ │ │ ├── debian12-infra.json
│ │ │ ├── ubuntu16-infra.json
│ │ │ ├── ubuntu18-infra.json
│ │ │ ├── ubuntu20-infra.json
│ │ │ └── ubuntu20arm64-infra.json
│ │ ├── rhel
│ │ │ ├── awslinux-infra.json
│ │ │ ├── awslinuxarm64-infra.json
│ │ │ ├── oracle8-infra.json
│ │ │ ├── redhat7-infra.json
│ │ │ ├── redhat8arm64-infra.json
│ │ │ └── redhat8x-infra.json
│ │ ├── suse
│ │ │ ├── suse125-infra.json
│ │ │ ├── suse153-infra.json
│ │ │ └── suse154-infra.json
│ │ └── windows
│ │ │ └── windows2016.json
│ ├── logging
│ │ ├── debian
│ │ │ ├── debian10-arm64-logs.json
│ │ │ └── ubuntu20-arm64-logs.json
│ │ └── rhel
│ │ │ └── amazonlinux2-arm64-logs.json
│ └── smoke
│ │ ├── awslinux2-infra.json
│ │ ├── awslinuxarm64-infra.json
│ │ ├── debian10-infra.json
│ │ ├── nginx-linux2-ami.json
│ │ ├── ubuntu20-infra.json
│ │ └── windows2019.json
├── definitions
│ ├── agent-control
│ │ ├── debians
│ │ │ ├── debian11-agent-control.json
│ │ │ ├── ubuntu16-agent-control.json
│ │ │ ├── ubuntu18-agent-control.json
│ │ │ ├── ubuntu20-agent-control.json
│ │ │ ├── ubuntu20arm64-agent-control.json
│ │ │ └── ubuntu22-agent-control.json
│ │ ├── logs
│ │ │ ├── amazonlinux2-agent-control-logs.json
│ │ │ ├── amazonlinux2023-aarch64-agent-control-logs.json
│ │ │ ├── amazonlinux2023-x86-agent-control-logs.json
│ │ │ ├── debian11-agent-control-logs.json
│ │ │ ├── redhat8-agent-control-logs.json
│ │ │ ├── redhat9-agent-control-logs.json
│ │ │ ├── suse154-agent-control-logs.json
│ │ │ ├── suse155-agent-control-logs.json
│ │ │ ├── ubuntu20-agent-control-logs.json
│ │ │ └── ubuntu22-agent-control-logs.json
│ │ ├── rhel
│ │ │ ├── awslinux23-agent-control.json
│ │ │ ├── awslinuxarm64-agent-control.json
│ │ │ └── redhat8arm64-agent-control.json
│ │ └── suse
│ │ │ ├── suse125-agent-control.json
│ │ │ └── suse154-agent-control.json
│ ├── alerts
│ │ └── amazonlinux-2023-golden.json
│ ├── apm
│ │ ├── dotNet
│ │ │ └── linux
│ │ │ │ └── linux2-aspnetcore5.json
│ │ ├── us-php-apache-fpm-wordpress-ubuntu18.json
│ │ └── us-php-nginx-fpm-wordpress-linux2.json
│ ├── infra-agent
│ │ ├── RHEL9-infra.json
│ │ ├── amazonlinux2023-infra.json
│ │ ├── suse154-infra.json
│ │ ├── ubuntu22-infra.json
│ │ └── ubuntu24-infra.json
│ ├── logging
│ │ ├── RHEL9.json
│ │ ├── amazonlinux2-logs.json
│ │ ├── amazonlinux2023-arm64-logs.json
│ │ ├── amazonlinux2023.json
│ │ ├── debian11-logs.json
│ │ ├── redhat8-logs.json
│ │ ├── suse154-logs.json
│ │ ├── suse155-logs.json
│ │ ├── ubuntu20-logs.json
│ │ ├── ubuntu22-logs.json
│ │ ├── ubuntu24-logs.json
│ │ └── w19-logs.json
│ ├── ohi
│ │ ├── linux
│ │ │ ├── apache-rhel.json
│ │ │ ├── cassandra-debian.json
│ │ │ ├── consul-debian.json
│ │ │ ├── consul-rhel.json
│ │ │ ├── couchbase-debian.json
│ │ │ ├── couchbase-rhel.json
│ │ │ ├── docker-linux2.json
│ │ │ ├── elasticsearch-debian.json
│ │ │ ├── elasticsearch-rhel.json
│ │ │ ├── elasticsearch-suse.json
│ │ │ ├── haproxy-debian.json
│ │ │ ├── haproxy-rhel.json
│ │ │ ├── k8-linux2.json
│ │ │ ├── memcached-debian.json
│ │ │ ├── memcached-rhel.json
│ │ │ ├── mongodb-debian.json
│ │ │ ├── mongodb-rhel.json
│ │ │ ├── mysql-debian.json
│ │ │ ├── mysql-suse.json
│ │ │ ├── mysql-ubuntu22.json
│ │ │ ├── mysql-ubuntu24.json
│ │ │ ├── nagios-debian.json
│ │ │ ├── nagios-rhel.json
│ │ │ ├── nginx-debian.json
│ │ │ ├── nginx-linux2-ami.json
│ │ │ ├── nginx-linux2-svc.json
│ │ │ ├── nginx-ubuntu.json
│ │ │ ├── postgres-debian-targeted-failure.json
│ │ │ ├── postgres-debian.json
│ │ │ ├── postgres-rhel.json
│ │ │ ├── rabbitmq-debian.json
│ │ │ ├── rabbitmq-rhel.json
│ │ │ ├── redis-debian.json
│ │ │ ├── redis-rhel.json
│ │ │ ├── redis-ubuntu22.json
│ │ │ ├── varnish-debian.json
│ │ │ └── varnish-rhel.json
│ │ └── windows
│ │ │ └── ms-sql-server2019Standard.json
│ └── smoke
│ │ ├── apache-debian.json
│ │ ├── awslinux2-infra.json
│ │ ├── infra-win2016.json
│ │ ├── infra-win2019.json
│ │ ├── linux2-aspnetcore5.json
│ │ ├── mysql-rhel.json
│ │ ├── redhat84-infra.json
│ │ └── rhl2-sysd-jboss.json
├── deploy
│ ├── assertions
│ │ ├── is-reporting
│ │ │ └── roles
│ │ │ │ └── onafterstart
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ ├── entity-search.source.gql
│ │ │ │ └── gql-query.source.json
│ │ └── recipe-is-valid
│ │ │ └── roles
│ │ │ └── onafterstart
│ │ │ ├── tasks
│ │ │ ├── main.yml
│ │ │ └── nrql_has_data.yml
│ │ │ └── templates
│ │ │ ├── gql-query.source.json
│ │ │ └── nrql-query.source.gql
│ ├── crowdstrike
│ │ └── roles
│ │ │ └── configure
│ │ │ └── tasks
│ │ │ └── main.yml
│ ├── linux
│ │ ├── apache
│ │ │ ├── deploy-application
│ │ │ │ └── dotNet
│ │ │ │ │ ├── debian
│ │ │ │ │ └── roles
│ │ │ │ │ │ ├── configure
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ │ └── main.yml
│ │ │ │ │ │ ├── onafterstart
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ │ └── main.yml
│ │ │ │ │ │ ├── onbeforestart
│ │ │ │ │ │ ├── tasks
│ │ │ │ │ │ │ └── main.yml
│ │ │ │ │ │ └── templates
│ │ │ │ │ │ │ ├── net5webapplication.conf
│ │ │ │ │ │ │ └── net5webapplication.service
│ │ │ │ │ │ └── start
│ │ │ │ │ │ ├── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ │ └── templates
│ │ │ │ │ │ └── reverse-proxy.conf
│ │ │ │ │ └── rhel
│ │ │ │ │ └── roles
│ │ │ │ │ ├── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ ├── onafterstart
│ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ ├── onbeforestart
│ │ │ │ │ ├── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ │ ├── net5webapplication.conf
│ │ │ │ │ │ └── net5webapplication.service
│ │ │ │ │ └── start
│ │ │ │ │ ├── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ └── reverse-proxy.conf
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ └── server-status.conf
│ │ ├── cassandra
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ ├── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ └── prepare
│ │ │ │ │ └── tasks
│ │ │ │ │ ├── installCassandra.yml
│ │ │ │ │ ├── installDependencies.yml
│ │ │ │ │ └── main.yml
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ ├── configure
│ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── prepare
│ │ │ │ └── tasks
│ │ │ │ ├── installCassandra.yml
│ │ │ │ ├── installDependencies.yml
│ │ │ │ ├── installJava.yml
│ │ │ │ └── main.yml
│ │ ├── consul
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ └── config.json
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ └── consul.hcl
│ │ ├── couchbase
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── docker
│ │ │ └── install
│ │ │ │ └── roles
│ │ │ │ └── prepare
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── dotNet
│ │ │ └── install
│ │ │ │ ├── rhel
│ │ │ │ └── roles
│ │ │ │ │ └── prepare
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── ubuntu20
│ │ │ │ └── roles
│ │ │ │ └── prepare
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── elasticsearch
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ ├── rhel
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ └── elasticsearch.repo
│ │ │ │ └── suse
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ └── elasticsearch.repo
│ │ ├── go
│ │ │ ├── redhat
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ └── templates
│ │ │ │ └── server.go
│ │ ├── haproxy
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ └── haproxy.cfg
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ └── haproxy.cfg
│ │ ├── java
│ │ │ ├── docker-flow
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── gradle-flow
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── javaApp
│ │ │ │ ├── pom.xml
│ │ │ │ ├── src
│ │ │ │ │ └── main
│ │ │ │ │ │ └── webapp
│ │ │ │ │ │ ├── WEB-INF
│ │ │ │ │ │ └── web.xml
│ │ │ │ │ │ ├── dummy.jsp
│ │ │ │ │ │ └── index.jsp
│ │ │ │ └── target
│ │ │ │ │ ├── javaApp
│ │ │ │ │ ├── WEB-INF
│ │ │ │ │ │ ├── dummy.jsp
│ │ │ │ │ │ └── web.xml
│ │ │ │ │ └── index.jsp
│ │ │ │ │ └── maven-archiver
│ │ │ │ │ └── pom.properties
│ │ │ ├── javaGradleApp
│ │ │ │ ├── .gitignore
│ │ │ │ ├── .gradle
│ │ │ │ │ ├── buildOutputCleanup
│ │ │ │ │ │ ├── buildOutputCleanup.lock
│ │ │ │ │ │ └── cache.properties
│ │ │ │ │ └── vcs-1
│ │ │ │ │ │ └── gc.properties
│ │ │ │ ├── build.gradle
│ │ │ │ ├── gradle
│ │ │ │ │ └── wrapper
│ │ │ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ │ │ └── gradle-wrapper.properties
│ │ │ │ ├── gradlew
│ │ │ │ ├── gradlew.bat
│ │ │ │ ├── settings.gradle
│ │ │ │ └── src
│ │ │ │ │ └── main
│ │ │ │ │ ├── java
│ │ │ │ │ └── org
│ │ │ │ │ │ └── example
│ │ │ │ │ │ └── Main.java
│ │ │ │ │ └── webapp
│ │ │ │ │ ├── WEB-INF
│ │ │ │ │ └── web.xml
│ │ │ │ │ ├── dummy.jsp
│ │ │ │ │ └── index.jsp
│ │ │ ├── redhat
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ └── templates
│ │ │ │ └── javaApp
│ │ │ │ ├── pom.xml
│ │ │ │ └── src
│ │ │ │ └── main
│ │ │ │ └── webapp
│ │ │ │ ├── WEB-INF
│ │ │ │ ├── dummy.jsp
│ │ │ │ └── web.xml
│ │ │ │ └── index.jsp
│ │ ├── jboss
│ │ │ ├── docker
│ │ │ │ ├── debian
│ │ │ │ │ └── restApp
│ │ │ │ │ │ └── roles
│ │ │ │ │ │ └── configure
│ │ │ │ │ │ ├── files
│ │ │ │ │ │ └── Dockerfile
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ ├── install
│ │ │ │ │ └── roles
│ │ │ │ │ │ ├── configure
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ │ └── main.yml
│ │ │ │ │ │ └── start
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ └── linux
│ │ │ │ │ └── restApp
│ │ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ ├── files
│ │ │ │ │ └── Dockerfile
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ └── systemd
│ │ │ │ └── install
│ │ │ │ ├── linux
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── jetty
│ │ │ ├── docker
│ │ │ │ └── install
│ │ │ │ │ └── roles
│ │ │ │ │ ├── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ └── start
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ └── systemd
│ │ │ │ └── install
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── jmx-jboss
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── jmx-jetty
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ ├── jetty
│ │ │ │ │ └── start.ini
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ ├── jetty
│ │ │ │ └── start.ini
│ │ ├── jmx-tomcat
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ ├── setenv.sh
│ │ │ │ │ └── tomcat.service
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ ├── setenv.sh
│ │ │ │ └── tomcat.service
│ │ ├── kafka
│ │ │ └── install
│ │ │ │ └── roles
│ │ │ │ └── start
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── kubernetes
│ │ │ ├── eks
│ │ │ │ └── roles
│ │ │ │ │ ├── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ │ ├── installOnlineBoutique.yml
│ │ │ │ │ │ ├── installSockShop.yml
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ ├── prepare
│ │ │ │ │ └── tasks
│ │ │ │ │ │ ├── createAutoScaler.yml
│ │ │ │ │ │ ├── createCluster.yml
│ │ │ │ │ │ ├── installEksctl.yml
│ │ │ │ │ │ ├── installGit.yml
│ │ │ │ │ │ ├── installKubectl.yml
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ └── teardown
│ │ │ │ │ └── tasks
│ │ │ │ │ ├── deleteCluster.yml
│ │ │ │ │ └── main.yml
│ │ │ └── minikube
│ │ │ │ └── roles
│ │ │ │ └── prepare
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ └── kubectl.wrap
│ │ ├── memcached
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ ├── memcached.conf
│ │ │ │ │ └── sasl
│ │ │ │ │ └── memcached.conf
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ ├── memcached
│ │ │ │ └── sasl
│ │ │ │ └── memcached.conf
│ │ ├── mongodb
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ ├── commands.js
│ │ │ │ │ ├── initiate_script.js
│ │ │ │ │ └── mongod.conf
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ ├── commands.js
│ │ │ │ ├── initiate.js
│ │ │ │ ├── mongod.conf
│ │ │ │ └── mongodb-org-6.0.repo
│ │ ├── mysql
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ ├── rhel
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── suse
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── nagios
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── newrelic-cli
│ │ │ ├── install-copy-command
│ │ │ │ └── roles
│ │ │ │ │ └── onafterstart
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── install-recipe
│ │ │ │ └── roles
│ │ │ │ │ └── onafterstart
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── install
│ │ │ │ └── roles
│ │ │ │ │ └── onafterstart
│ │ │ │ │ ├── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ └── remove_golden_alerts.sh
│ │ │ └── validate-recipe
│ │ │ │ └── roles
│ │ │ │ └── onafterstart
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ ├── application-agent-context-query.source.gpl
│ │ │ │ └── gql-query.source.gpl
│ │ ├── nginx
│ │ │ ├── deploy-application
│ │ │ │ └── dotNet
│ │ │ │ │ └── debian
│ │ │ │ │ └── roles
│ │ │ │ │ ├── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ ├── onafterstart
│ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ ├── onbeforestart
│ │ │ │ │ ├── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ │ ├── nginx.service
│ │ │ │ │ │ └── nginx.site
│ │ │ │ │ ├── start
│ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ └── stop
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── install
│ │ │ │ ├── debian
│ │ │ │ │ └── roles
│ │ │ │ │ │ └── configure
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ ├── linux2
│ │ │ │ │ └── roles
│ │ │ │ │ │ └── configure
│ │ │ │ │ │ ├── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ │ └── templates
│ │ │ │ │ │ └── default-status-nginx.conf
│ │ │ │ └── suse
│ │ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── open-default
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ └── yum-fix
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── nodejs
│ │ │ ├── docker-flow
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── redhat
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ └── templates
│ │ │ │ ├── Dockerfile
│ │ │ │ └── myNodeApp
│ │ │ │ ├── app.js
│ │ │ │ └── package.json
│ │ ├── oracle
│ │ │ └── install
│ │ │ │ ├── centos
│ │ │ │ └── roles
│ │ │ │ │ └── start
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── linux
│ │ │ │ └── roles
│ │ │ │ └── start
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── php
│ │ │ ├── apache-fpm-wordpress
│ │ │ │ ├── debian
│ │ │ │ │ └── roles
│ │ │ │ │ │ └── configure
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ └── redhat
│ │ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── apache-wordpress
│ │ │ │ ├── debian
│ │ │ │ │ └── roles
│ │ │ │ │ │ └── configure
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ └── redhat
│ │ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── docker-php
│ │ │ │ └── redhat
│ │ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── docker-templates
│ │ │ │ ├── Dockerfile
│ │ │ │ └── index.php
│ │ │ ├── nginx-fpm-wordpress
│ │ │ │ ├── debian
│ │ │ │ │ └── roles
│ │ │ │ │ │ └── configure
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ └── redhat
│ │ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ └── templates
│ │ │ │ ├── install-wordpress.sh
│ │ │ │ ├── wordpress-fpm.conf
│ │ │ │ ├── wordpress-httpd.conf
│ │ │ │ ├── wordpress-site
│ │ │ │ └── wordpress.conf
│ │ ├── postgres
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ ├── pg_hba.conf
│ │ │ │ └── pgdg.repo
│ │ ├── python
│ │ │ └── install
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ ├── app.py
│ │ │ │ └── requirements.txt
│ │ ├── rabbitmq
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── redis
│ │ │ └── install
│ │ │ │ ├── debian
│ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ └── redis.conf
│ │ │ │ └── rhel
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ ├── tasks
│ │ │ │ └── main.yml
│ │ │ │ └── templates
│ │ │ │ └── redis.conf
│ │ ├── ruby
│ │ │ └── ruby-on-rails
│ │ │ │ └── redhat
│ │ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── shell
│ │ │ └── roles
│ │ │ │ ├── configure
│ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ ├── onafterstart
│ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ ├── onbeforestart
│ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ ├── onstart
│ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ ├── prepare
│ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── upload
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ ├── tomcat
│ │ │ ├── docker
│ │ │ │ └── debian
│ │ │ │ │ ├── noApp
│ │ │ │ │ └── roles
│ │ │ │ │ │ ├── configure
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ │ └── main.yml
│ │ │ │ │ │ └── start
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ └── restApp
│ │ │ │ │ └── roles
│ │ │ │ │ └── configure
│ │ │ │ │ ├── files
│ │ │ │ │ └── Dockerfile
│ │ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ ├── supervisord
│ │ │ │ └── shScript
│ │ │ │ │ └── install
│ │ │ │ │ └── linux
│ │ │ │ │ └── roles
│ │ │ │ │ ├── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ │ ├── main.yml
│ │ │ │ │ │ └── supervisord.yml
│ │ │ │ │ └── templates
│ │ │ │ │ │ └── supervisord.conf
│ │ │ │ │ └── prepare
│ │ │ │ │ ├── files
│ │ │ │ │ ├── init.d-supervisord
│ │ │ │ │ └── supervisord.conf
│ │ │ │ │ └── tasks
│ │ │ │ │ ├── installJava.yml
│ │ │ │ │ ├── installMaven.yml
│ │ │ │ │ ├── installSupervisord.yml
│ │ │ │ │ ├── installTomcat.yml
│ │ │ │ │ └── main.yml
│ │ │ └── systemd
│ │ │ │ ├── apt
│ │ │ │ └── install
│ │ │ │ │ └── linux
│ │ │ │ │ └── roles
│ │ │ │ │ ├── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ │ └── main.yml
│ │ │ │ │ └── templates
│ │ │ │ │ │ └── tomcat9.service
│ │ │ │ │ └── prepare
│ │ │ │ │ └── tasks
│ │ │ │ │ ├── installTomcat.yml
│ │ │ │ │ └── main.yml
│ │ │ │ ├── cmdLine
│ │ │ │ └── install
│ │ │ │ │ └── linux
│ │ │ │ │ └── roles
│ │ │ │ │ ├── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ │ ├── main.yml
│ │ │ │ │ │ └── systemd.yml
│ │ │ │ │ └── templates
│ │ │ │ │ │ ├── systemd.conf
│ │ │ │ │ │ └── tomcat-env
│ │ │ │ │ └── prepare
│ │ │ │ │ └── tasks
│ │ │ │ │ ├── installJava.yml
│ │ │ │ │ ├── installMaven.yml
│ │ │ │ │ ├── installTomcat.yml
│ │ │ │ │ └── main.yml
│ │ │ │ ├── shScript
│ │ │ │ ├── catalina
│ │ │ │ │ └── install
│ │ │ │ │ │ └── linux
│ │ │ │ │ │ └── roles
│ │ │ │ │ │ ├── configure
│ │ │ │ │ │ ├── tasks
│ │ │ │ │ │ │ ├── main.yml
│ │ │ │ │ │ │ └── systemd.yml
│ │ │ │ │ │ └── templates
│ │ │ │ │ │ │ └── systemd.conf
│ │ │ │ │ │ └── prepare
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ ├── installJava.yml
│ │ │ │ │ │ ├── installMaven.yml
│ │ │ │ │ │ ├── installTomcat.yml
│ │ │ │ │ │ └── main.yml
│ │ │ │ ├── custom
│ │ │ │ │ └── install
│ │ │ │ │ │ └── linux
│ │ │ │ │ │ └── roles
│ │ │ │ │ │ ├── configure
│ │ │ │ │ │ ├── tasks
│ │ │ │ │ │ │ ├── main.yml
│ │ │ │ │ │ │ └── systemd.yml
│ │ │ │ │ │ └── templates
│ │ │ │ │ │ │ ├── custom-start.sh
│ │ │ │ │ │ │ ├── custom-stop.sh
│ │ │ │ │ │ │ └── systemd.conf
│ │ │ │ │ │ └── prepare
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ ├── installJava.yml
│ │ │ │ │ │ ├── installMaven.yml
│ │ │ │ │ │ ├── installTomcat.yml
│ │ │ │ │ │ └── main.yml
│ │ │ │ ├── gradle
│ │ │ │ │ └── install
│ │ │ │ │ │ └── linux
│ │ │ │ │ │ └── roles
│ │ │ │ │ │ ├── configure
│ │ │ │ │ │ ├── tasks
│ │ │ │ │ │ │ ├── main.yml
│ │ │ │ │ │ │ └── systemd.yml
│ │ │ │ │ │ └── templates
│ │ │ │ │ │ │ └── systemd.conf
│ │ │ │ │ │ └── prepare
│ │ │ │ │ │ └── tasks
│ │ │ │ │ │ ├── installGradle.yml
│ │ │ │ │ │ ├── installJava.yml
│ │ │ │ │ │ ├── installTomcat.yml
│ │ │ │ │ │ └── main.yml
│ │ │ │ └── start
│ │ │ │ │ └── install
│ │ │ │ │ └── linux
│ │ │ │ │ └── roles
│ │ │ │ │ ├── configure
│ │ │ │ │ ├── tasks
│ │ │ │ │ │ ├── main.yml
│ │ │ │ │ │ └── systemd.yml
│ │ │ │ │ └── templates
│ │ │ │ │ │ └── systemd.conf
│ │ │ │ │ └── prepare
│ │ │ │ │ └── tasks
│ │ │ │ │ ├── installJava.yml
│ │ │ │ │ ├── installMaven.yml
│ │ │ │ │ ├── installTomcat.yml
│ │ │ │ │ └── main.yml
│ │ │ │ └── yum
│ │ │ │ └── install
│ │ │ │ └── linux
│ │ │ │ └── roles
│ │ │ │ ├── configure
│ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── prepare
│ │ │ │ └── tasks
│ │ │ │ ├── installTomcat.yml
│ │ │ │ └── main.yml
│ │ └── varnish
│ │ │ └── install
│ │ │ ├── debian
│ │ │ └── roles
│ │ │ │ └── configure
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ │ └── rhel
│ │ │ └── roles
│ │ │ └── configure
│ │ │ └── tasks
│ │ │ └── main.yml
│ └── windows
│ │ ├── elasticsearch
│ │ └── install
│ │ │ └── roles
│ │ │ └── prepare
│ │ │ └── tasks
│ │ │ └── main.yml
│ │ ├── iis
│ │ ├── deploy-webapplication
│ │ │ └── roles
│ │ │ │ ├── configure
│ │ │ │ └── tasks
│ │ │ │ │ └── main.yml
│ │ │ │ └── start
│ │ │ │ └── tasks
│ │ │ │ └── main.yml
│ │ └── install
│ │ │ └── roles
│ │ │ └── prepare
│ │ │ └── tasks
│ │ │ └── main.yml
│ │ ├── kafka
│ │ └── install
│ │ │ └── roles
│ │ │ └── start
│ │ │ └── tasks
│ │ │ └── main.yml
│ │ ├── ms-sql
│ │ └── create-newrelic
│ │ │ └── roles
│ │ │ └── configure
│ │ │ └── tasks
│ │ │ └── main.yml
│ │ └── newrelic-cli
│ │ ├── install-recipe
│ │ └── roles
│ │ │ └── onafterstart
│ │ │ └── tasks
│ │ │ └── main.yml
│ │ └── install
│ │ └── roles
│ │ └── onafterstart
│ │ └── tasks
│ │ └── main.yml
├── deprecated
│ ├── EU
│ │ ├── centos7-infra.json
│ │ ├── centos8-arm64-logs.json
│ │ ├── centos8-infra.json
│ │ └── centos8arm64-infra.json
│ └── US
│ │ └── amazonlinux2018-logs-unsupported.json
└── manual
│ ├── definitions
│ ├── apm
│ │ ├── dotNet
│ │ │ ├── linux
│ │ │ │ ├── debian10-nginx-aspnetcore.json
│ │ │ │ ├── linux2-aspnetcore5.json
│ │ │ │ ├── ubuntu20-apache-aspnetcore.json
│ │ │ │ └── ubuntu20-nginx-aspnetcore.json
│ │ │ └── windows
│ │ │ │ ├── iis-blank.json
│ │ │ │ └── iis-server2019.json
│ │ ├── go
│ │ │ └── go-linux2.json
│ │ ├── java
│ │ │ └── linux
│ │ │ │ ├── docker-flows
│ │ │ │ └── java-docker-flows.json
│ │ │ │ ├── java-tomcat-gradle-linux2.json
│ │ │ │ ├── java-tomcat-maven-linux2.json
│ │ │ │ ├── jboss
│ │ │ │ ├── docker
│ │ │ │ │ ├── rhel-dockerjboss-tomcat.json
│ │ │ │ │ ├── rhl2-yum-docker.json
│ │ │ │ │ ├── ub20-apt-docker.json
│ │ │ │ │ ├── ub20-docker-rest.json
│ │ │ │ │ ├── ub20-docker-tcAndJb.json
│ │ │ │ │ ├── ub20-dockertomcat-jboss.json
│ │ │ │ │ └── ub20-tomcat-jboss.json
│ │ │ │ └── systemd
│ │ │ │ │ ├── deb10-sysd-jboss.json
│ │ │ │ │ └── rhl2-sysd-jboss.json
│ │ │ │ ├── jetty
│ │ │ │ ├── deb10-jetty.json
│ │ │ │ └── rhl2-jetty.json
│ │ │ │ └── tomcat
│ │ │ │ ├── docker
│ │ │ │ ├── ub20-apt-docker-tomcat.json
│ │ │ │ └── ub20-docker-rest.json
│ │ │ │ ├── supervisord
│ │ │ │ ├── deb10-supd-javatron.json
│ │ │ │ ├── deb10-supd-tomcat-sh.json
│ │ │ │ ├── rhl2-supd-javatron.json
│ │ │ │ └── rhl2-supd-tomcat-sh.json
│ │ │ │ └── systemd
│ │ │ │ ├── deb10-apt-sysd-tomcat.json
│ │ │ │ ├── deb10-sysd-catalina-sh.json
│ │ │ │ ├── deb10-sysd-custom-sh.json
│ │ │ │ ├── deb10-sysd-start-sh.json
│ │ │ │ ├── deb10-sysd-tomcat-cmd.json
│ │ │ │ ├── rhl2-sysd-catalina-sh.json
│ │ │ │ ├── rhl2-sysd-custom-sh.json
│ │ │ │ ├── rhl2-sysd-start-sh.json
│ │ │ │ ├── rhl2-sysd-tomcat-cmd.json
│ │ │ │ ├── rhl2-yum-sysd-tomcat.json
│ │ │ │ └── ub20-apt-sysd-tomcat.json
│ │ ├── node
│ │ │ ├── node-js-docker.json
│ │ │ └── node-linux2.json
│ │ ├── php-agent
│ │ │ ├── docker-php-linux2.json
│ │ │ ├── php-apache-fpm-wordpress-linux2.json
│ │ │ ├── php-apache-fpm-wordpress-ubuntu18.json
│ │ │ ├── php-apache-wordpress-linux2.json
│ │ │ ├── php-apache-wordpress-ubuntu18.json
│ │ │ ├── php-nginx-fpm-wordpress-linux2.json
│ │ │ └── php-nginx-fpm-wordpress-ubuntu18.json
│ │ ├── python
│ │ │ └── python-al2.json
│ │ └── ruby
│ │ │ └── rubyonrails.json
│ ├── fleet.json
│ ├── infra-agent
│ │ ├── awslinux-infra.json
│ │ ├── awslinux2-infra.json
│ │ ├── awslinuxarm64-infra.json
│ │ ├── centos7-infra.json
│ │ ├── centos8-infra.json
│ │ ├── centos8arm64-infra.json
│ │ ├── debian10-infra.json
│ │ ├── debian10arm64-infra.json
│ │ ├── redhat7-infra.json
│ │ ├── redhat8-infra.json
│ │ ├── redhat8arm64-infra.json
│ │ ├── redhat9-infra.json
│ │ ├── suse124-infra.json
│ │ ├── suse125-infra.json
│ │ ├── suse154-infra.json
│ │ ├── ubuntu14-infra.json
│ │ ├── ubuntu16-infra.json
│ │ ├── ubuntu18-infra.json
│ │ ├── ubuntu20-infra-crowdstrike.json
│ │ ├── ubuntu20-infra.json
│ │ ├── ubuntu20arm64-infra.json
│ │ ├── ubuntu20x10arm64-infra.json
│ │ ├── windows2016.json
│ │ └── windows2019.json
│ ├── kubernetes
│ │ ├── eks-empty.json
│ │ └── minikube-empty.json
│ ├── logging
│ │ ├── amazonlinux2-arm64-logs.json
│ │ ├── centos8-arm64-logs.json
│ │ ├── debian10-arm64-logs.json
│ │ ├── ubuntu20-arm64-logs.json
│ │ └── w19-logs.json
│ ├── ohi-auto-config
│ │ ├── linux
│ │ │ ├── apache-mysql-ubuntu18-auto.json
│ │ │ ├── mongodb-debian.json
│ │ │ ├── mongodb-rhel.json
│ │ │ ├── nginx-elasticsearch-debian-auto.json
│ │ │ ├── nginx-mysql-linux2-auto.json
│ │ │ ├── nginx-mysql-redis-linux2-auto.json
│ │ │ └── postgres-rhel.json
│ │ └── windows
│ │ │ └── ms-sql-server2019Standard-auto.json
│ └── ohi
│ │ ├── linux
│ │ ├── apache-cassandra-debian10.json
│ │ ├── apache-cassandra-linux2.json
│ │ ├── apache-mysql-ubuntu18.json
│ │ ├── apache-tomcat.json
│ │ ├── docker-linux2.json
│ │ ├── kafka-centos8.json
│ │ ├── kafka-ubuntu20.json
│ │ ├── memcached-debian.json
│ │ ├── memcached-rhel.json
│ │ ├── mongodb-debian.json
│ │ ├── mongodb-rhel.json
│ │ ├── nginx-elasticsearch-debian.json
│ │ ├── nginx-mysql-linux2.json
│ │ ├── nginx-mysql-redis-linux2.json
│ │ ├── oracle-enterprise-linux.json
│ │ ├── oracle-standard-centos.json
│ │ ├── postgres-debian.json
│ │ ├── postgres-rhel.json
│ │ ├── rabbitmq-debian.json
│ │ ├── rabbitmq-rhel.json
│ │ ├── redis-debian.json
│ │ └── redis-rhel.json
│ │ └── windows
│ │ ├── elasticsearch-ch.json
│ │ ├── kafka-server2019.json
│ │ ├── mongodb-server2016.json
│ │ ├── ms-redis.json
│ │ ├── ms-sql-server2019.json
│ │ ├── mysql-server2019.json
│ │ ├── postgresql-server2016.json
│ │ └── rabbitMQ-server2016.json
│ └── readme.MD
└── validator
├── README.md
├── package-lock.json
├── package.json
└── schema-v1.json
/.github/ISSUE_TEMPLATE/enhancement.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Enhancement request
3 | about: Suggest an idea for a future version of this project
4 | title: ''
5 | labels: enhancement, needs-triage
6 | assignees: ''
7 |
8 | ---
9 |
10 | [NOTE]: # ( ^^ Provide a general summary of the request in the title above. ^^ )
11 |
12 | ## Summary
13 |
14 | [NOTE]: # ( Provide a brief overview of what the new feature is all about. )
15 |
16 | ## Desired Behavior
17 |
18 | [NOTE]: # ( Tell us how the new feature should work. Be specific. )
19 | [TIP]: # ( Do NOT give us access or passwords to your New Relic account or API keys! )
20 |
21 | ## Possible Solution
22 |
23 | [NOTE]: # ( Not required. Suggest how to implement the addition or change. )
24 |
25 | ## Additional context
26 |
27 | [TIP]: # ( Why does this feature matter to you? What unique circumstances do you have? )
28 |
--------------------------------------------------------------------------------
/.github/workflows/local-repo-pr.yml:
--------------------------------------------------------------------------------
1 | name: Limit PRs on local repo only for E2E tests
2 |
3 | on:
4 | pull_request:
5 | branches:
6 | - main
7 |
8 | jobs:
9 | limit_main_pr:
10 | runs-on: ubuntu-latest
11 | steps:
12 | - name: Ensure no fork repo
13 | if: ${{ github.event_name == 'pull_request' }}
14 | run: |
15 | SOURCE_NAME=$(echo ${{ github.event.pull_request.head.repo.full_name }})
16 | REMOTE_NAME=$(echo ${{ github.event.pull_request.base.repo.full_name }})
17 | if [ $SOURCE_NAME != $REMOTE_NAME ]; then
18 | echo "PR should be created from a branch on the source repo, not from a fork, so the E2E tests can run. If you need access please reach out to the #help-virtuoso channel."
19 | exit 1
20 | fi
21 |
--------------------------------------------------------------------------------
/.github/workflows/scripts/deployer-platform/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "dp",
3 | "version": "1.0.0",
4 | "description": "Runs OIL tests using deployer-platform to provision target hosts",
5 | "main": "main.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "dependencies": {
10 | "@actions/core": "1.9.1",
11 | "@aws-sdk/client-sqs": "3.27.0",
12 | "@aws-sdk/client-dynamodb": "3.27.0",
13 | "@aws-sdk/util-dynamodb": "3.27.0",
14 | "@aws-sdk/credential-providers": "3.451.0"
15 | },
16 | "keywords": [],
17 | "author": "",
18 | "license": "ISC"
19 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .ignore/
3 | .terraform
4 | **/terraform.tfstate*
5 | node_modules
6 | .DS_Store
7 | recipes/.prettierrc
8 | *.war
9 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | ### Hello! We're glad you've joined us.
2 |
3 | We believe participation in our community should be a harassment free experience for everyone.
4 |
5 | Learn more about our guidelines and principles by reading our [Code of Conduct](https://opensource.newrelic.com/code-of-conduct/) on our Open Source Website.
6 |
--------------------------------------------------------------------------------
/Dockerfile.validator:
--------------------------------------------------------------------------------
1 | FROM node:14.9-alpine
2 |
3 | WORKDIR /opt/local/newrelic
4 |
5 | ADD validator validator
6 |
7 | WORKDIR /opt/local/newrelic/validator
8 |
9 | RUN npm install
10 |
11 | CMD ["npm", "run", "check"]
12 |
--------------------------------------------------------------------------------
/docs/release.md:
--------------------------------------------------------------------------------
1 | # Generating New Release
2 |
3 | Release generation is handled via the [release workflow](../.github/workflows/release.yml) whenever a tag is pushed.
4 |
5 | ```bash
6 | # Example command - note prefixing version with 'v'
7 | git tag v${version} && git push origin v${version}
8 |
9 |
10 | # Full Example
11 | git tag v0.17-alpha && git push origin v0.17-alpha
12 | ```
13 |
14 | After a release is published, the recipe service will pick up the change the next time it refreshes the cache.
15 |
--------------------------------------------------------------------------------
/docs/test-framework/terraform/outputs.tf:
--------------------------------------------------------------------------------
1 | output distros {
2 | value = var.distros
3 | }
4 |
5 | output users {
6 | value = var.ami_users
7 | }
8 |
9 | output ip {
10 | value = aws_instance.install_test_instance.*.public_ip
11 | }
12 |
--------------------------------------------------------------------------------
/docs/test-framework/terraform/provider.tf:
--------------------------------------------------------------------------------
1 | provider "aws" {
2 | region = var.region
3 | profile = var.profile
4 | }
5 |
--------------------------------------------------------------------------------
/docs/test-framework/terraform/terraform.tf:
--------------------------------------------------------------------------------
1 | terraform {
2 | required_version = ">= 0.12.2"
3 | }
4 |
--------------------------------------------------------------------------------
/docs/uninstall/README.md:
--------------------------------------------------------------------------------
1 | # How to Uninstall
2 | ## Recipes
3 | * [AWS Metric Stream](./aws.md)
4 | * [Java Dynamic Attachment](./java.md)
5 |
--------------------------------------------------------------------------------
/docs/uninstall/aws.md:
--------------------------------------------------------------------------------
1 | # Steps to uninstall the AWS Metric Streams Integration
2 |
3 | _Note: the CloudFormation template is deployed per AWS region. Please ensure that you are looking at the correct region in the AWS console._
4 |
5 | Unlink your AWS account from New Relic:
6 | - https://one.newrelic.com > Infrastructure > AWS > Unlink this account
7 |
8 | Delete the NewRelic-Metric-Stream stack found in CloudFormation:
9 | - https://console.aws.amazon.com/cloudformation/home
10 |
11 | Delete the IAM Role:
12 | - https://console.aws.amazon.com/iam/home#/roles/NewRelicInfrastructure-Integrations
13 |
--------------------------------------------------------------------------------
/docs/uninstall/java.md:
--------------------------------------------------------------------------------
1 | # Steps to disable java dynamic attachment
2 |
3 | #### Remove on-host integration file
4 | Remove the configuration found at:
5 | `/etc/newrelic-infra/integrations.d/java-dynamic-attach.yml`
6 |
7 | This will stop any new java (currently only Tomcat) processes from being
8 |
9 | #### Restart any Tomcat processes that have been instrumented
10 | After removing the on-host integration file, you must restart any existing Tomcat processes that have been instrumented dynamically to stop data from being sent to New Relic.
11 |
--------------------------------------------------------------------------------
/recipes/newrelic/apm/node/windows.yml:
--------------------------------------------------------------------------------
1 |
2 | name: node-agent-installer
3 | displayName: Node Agent
4 | description: New Relic install recipe for instrumenting Node applications
5 | repository: https://github.com/newrelic/node-newrelic
6 |
7 | installTargets:
8 | - type: application
9 | os: windows
10 |
11 | keywords:
12 | - Apm
13 | - node
14 |
15 | processMatch:
16 | - node\.exe
17 |
18 | preInstall:
19 | requireAtDiscovery: |
20 | powershell -command '
21 | # Detected, but should not run recipe for now
22 | exit 132
23 | '
24 |
25 | install:
26 | version: "3"
27 | silent: true
28 |
29 | tasks:
30 | default:
31 | cmds:
32 | - task: setup
33 |
34 | setup:
35 | cmds:
36 | - |
37 | exit 131
38 |
--------------------------------------------------------------------------------
/recipes/newrelic/apm/ruby/linux.yml:
--------------------------------------------------------------------------------
1 | # Visit our schema definition for additional information on this file format
2 | # https://github.com/newrelic/open-install-library/blob/main/docs/recipe-spec/recipe-spec.md#schema-definition
3 |
4 | name: ruby-agent-installer
5 | displayName: Ruby Agent
6 | description: New Relic install recipe for instrumenting Ruby applications
7 | repository: https://github.com/newrelic/newrelic-ruby-agent
8 |
9 | installTargets:
10 | - type: application
11 | os: linux
12 |
13 | keywords:
14 | - Apm
15 | - ruby
16 |
17 | processMatch:
18 | - ruby
19 |
20 | preInstall:
21 | requireAtDiscovery: |
22 | exit 132
23 |
24 | install:
25 | version: "3"
26 | silent: true
27 |
28 | tasks:
29 | default:
30 | cmds:
31 | - task: setup
32 |
33 | setup:
34 | cmds:
35 | - |
36 | exit 131
37 |
--------------------------------------------------------------------------------
/test/definitions-eu/apm/java/deb11-jetty.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "jettyhost",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-11-amd64-daily-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "jetty",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/jetty/systemd/install/roles",
23 | "port": 6001,
24 | "destinations": [
25 | "jettyhost"
26 | ]
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/test/definitions-eu/apm/java/rhl2-jetty.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "jettyhost",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-kernel-*-hvm-*-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "jetty",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/jetty/systemd/install/roles",
23 | "port": 6001,
24 | "destinations": [
25 | "jettyhost"
26 | ]
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/test/definitions-eu/infra-agent/debians/ubuntu18-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-bionic-18.04-amd64-pro-server-????????",
15 | "user_name": "ubuntu"
16 | }],
17 |
18 | "instrumentations": {
19 | "resources": [
20 | {
21 | "id": "nr_infra",
22 | "resource_ids": ["host1"],
23 | "provider": "newrelic",
24 | "source_repository": "https://github.com/newrelic/open-install-library",
25 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
26 | "params": {
27 | "local_recipes": true,
28 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)"
29 | }
30 | }
31 | ]
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/test/definitions-eu/infra-agent/rhel/awslinux-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "ami_name": "amzn2-ami-hvm-????.??.*-x86_64-gp2",
14 | "type": "ec2",
15 | "size": "t3.nano"
16 | }
17 | ],
18 |
19 | "instrumentations": {
20 | "resources": [
21 | {
22 | "id": "nr_infra",
23 | "resource_ids": ["host1"],
24 | "provider": "newrelic",
25 | "source_repository": "https://github.com/newrelic/open-install-library",
26 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install-recipe/roles",
27 | "params": {
28 | "recipe_content_url": "https://raw.githubusercontent.com/newrelic/open-install-library/main/recipes/newrelic/infrastructure/awslinux.yml",
29 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)"
30 | }
31 | }
32 | ]
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/test/definitions-eu/infra-agent/rhel/redhat8x-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "RHEL_HA-8.8.?_HVM-????????-x86_64-????-Hourly2-GP3"
15 | }],
16 |
17 | "instrumentations": {
18 | "resources": [
19 | {
20 | "id": "nr_infra",
21 | "resource_ids": ["host1"],
22 | "provider": "newrelic",
23 | "source_repository": "https://github.com/newrelic/open-install-library",
24 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
25 | "params": {
26 | "local_recipes": true,
27 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)"
28 | }
29 | }
30 | ]
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/test/definitions-eu/smoke/debian10-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }],
17 |
18 | "instrumentations": {
19 | "resources": [
20 | {
21 | "id": "nr_infra",
22 | "resource_ids": ["host1"],
23 | "provider": "newrelic",
24 | "source_repository": "https://github.com/newrelic/open-install-library",
25 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
26 | "params": {
27 | "local_recipes": true,
28 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)"
29 | }
30 | }
31 | ]
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/test/definitions-eu/smoke/ubuntu20-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-2023*",
15 | "user_name": "ubuntu"
16 | }],
17 |
18 | "instrumentations": {
19 | "resources": [
20 | {
21 | "id": "nr_infra",
22 | "resource_ids": ["host1"],
23 | "provider": "newrelic",
24 | "source_repository": "https://github.com/newrelic/open-install-library",
25 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
26 | "params": {
27 | "local_recipes": true,
28 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)"
29 | }
30 | }
31 | ]
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/test/definitions-eu/smoke/windows2019.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "is_windows": true,
15 | "ami_name": "Windows_Server-2019-English-Full-HyperV-*",
16 | "user_name": "Administrator"
17 | }],
18 |
19 | "instrumentations": {
20 | "resources": [
21 | {
22 | "id": "nr_infra",
23 | "resource_ids": ["host1"],
24 | "provider": "newrelic",
25 | "source_repository": "https://github.com/newrelic/open-install-library",
26 | "deploy_script_path": "test/deploy/windows/newrelic-cli/install/roles",
27 | "params": {
28 | "local_recipes": true,
29 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)"
30 | }
31 | }
32 | ]
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/test/definitions/alerts/amazonlinux-2023-golden.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "al2023-ami-2023.*-x86_64",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "instrumentations": {
19 | "resources": [
20 | {
21 | "id": "nr_infra_amazonlinux2022",
22 | "resource_ids": [
23 | "host1"
24 | ],
25 | "provider": "newrelic",
26 | "source_repository": "https://github.com/newrelic/open-install-library",
27 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
28 | "params": {
29 | "validate_output": "(alerts-golden-signal|Golden Signal Alerts)\\s+\\(installed\\)",
30 | "local_recipes": true,
31 | "delete_alerts": true
32 | }
33 | }
34 | ]
35 | }
36 | }
--------------------------------------------------------------------------------
/test/definitions/infra-agent/RHEL9-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.micro",
15 | "ami_name": "RHEL_HA-9.0.?_HVM-????????-x86_64-?-Hourly2-GP2"
16 | }
17 | ],
18 |
19 | "instrumentations": {
20 | "resources": [
21 | {
22 | "id": "nr_infra_RHEL9",
23 | "resource_ids": ["host1"],
24 | "provider": "newrelic",
25 | "source_repository": "https://github.com/newrelic/open-install-library",
26 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
27 | "params": {
28 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)",
29 | "local_recipes": true
30 | }
31 | }
32 | ]
33 | }
34 | }
--------------------------------------------------------------------------------
/test/definitions/infra-agent/amazonlinux2023-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.small",
15 | "ami_name": "al2023-ami-2023.*-x86_64",
16 | "user_name": "ec2-user"
17 | }
18 | ],
19 |
20 | "instrumentations": {
21 | "resources": [
22 | {
23 | "id": "nr_infra_amazonlinux2023",
24 | "resource_ids": ["host1"],
25 | "provider": "newrelic",
26 | "source_repository": "https://github.com/newrelic/open-install-library",
27 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
28 | "params": {
29 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)",
30 | "local_recipes": true
31 | }
32 | }
33 | ]
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/test/definitions/infra-agent/ubuntu22-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.micro",
15 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-jammy-22.??-amd64-server-????????",
16 | "user_name": "ubuntu"
17 | }
18 | ],
19 |
20 | "instrumentations": {
21 | "resources": [
22 | {
23 | "id": "nr_infra_ubuntu22",
24 | "resource_ids": ["host1"],
25 | "provider": "newrelic",
26 | "source_repository": "https://github.com/newrelic/open-install-library",
27 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
28 | "params": {
29 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)",
30 | "local_recipes": true
31 | }
32 | }
33 | ]
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/test/definitions/infra-agent/ubuntu24-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.micro",
15 | "ami_name": "ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-????????",
16 | "user_name": "ubuntu"
17 | }
18 | ],
19 |
20 | "instrumentations": {
21 | "resources": [
22 | {
23 | "id": "nr_infra_ubuntu24",
24 | "resource_ids": ["host1"],
25 | "provider": "newrelic",
26 | "source_repository": "https://github.com/newrelic/open-install-library",
27 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
28 | "params": {
29 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)",
30 | "local_recipes": true
31 | }
32 | }
33 | ]
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/test/definitions/logging/RHEL9.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.micro",
15 | "ami_name": "RHEL_HA-9.0.?_HVM-????????-x86_64-?-Hourly2-GP2"
16 | }
17 | ],
18 |
19 | "instrumentations": {
20 | "resources": [
21 | {
22 | "id": "nr_logs_RHEL9",
23 | "resource_ids": ["host1"],
24 | "provider": "newrelic",
25 | "source_repository": "https://github.com/newrelic/open-install-library",
26 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
27 | "params": {
28 | "newrelic_cli_option": "-n logs-integration",
29 | "validate_output": "Logs Integration\\s+\\(installed\\)",
30 | "local_recipes": true
31 | }
32 | }
33 | ]
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/test/definitions/logging/amazonlinux2023.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.small",
15 | "ami_name": "al2023-ami-2023.*-x86_64",
16 | "user_name": "ec2-user"
17 | }
18 | ],
19 |
20 | "instrumentations": {
21 | "resources": [
22 | {
23 | "id": "nr_logs_amazonlinux2023",
24 | "resource_ids": ["host1"],
25 | "provider": "newrelic",
26 | "source_repository": "https://github.com/newrelic/open-install-library",
27 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
28 | "params": {
29 | "newrelic_cli_option": "-n logs-integration",
30 | "validate_output": "Logs Integration\\s+\\(installed\\)",
31 | "local_recipes": true
32 | }
33 | }
34 | ]
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/test/definitions/logging/debian11-logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.nano",
15 | "ami_name": "debian-11-amd64-daily-*",
16 | "user_name": "admin"
17 | }
18 | ],
19 |
20 | "instrumentations": {
21 | "resources": [
22 | {
23 | "id": "nr_logging_debian11",
24 | "resource_ids": ["host1"],
25 | "provider": "newrelic",
26 | "source_repository": "https://github.com/newrelic/open-install-library",
27 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
28 | "params": {
29 | "newrelic_cli_option": "-n logs-integration",
30 | "validate_output": "Logs Integration\\s+\\(installed\\)",
31 | "local_recipes": true
32 | }
33 | }
34 | ]
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/test/definitions/logging/redhat8-logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.micro",
15 | "ami_name": "RHEL_HA-8.8.?_HVM-????????-x86_64-????-Hourly2-GP3"
16 | }
17 | ],
18 |
19 | "instrumentations": {
20 | "resources": [
21 | {
22 | "id": "nr_logging_rh8",
23 | "resource_ids": ["host1"],
24 | "provider": "newrelic",
25 | "source_repository": "https://github.com/newrelic/open-install-library",
26 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
27 | "params": {
28 | "newrelic_cli_option": "-n logs-integration",
29 | "validate_output": "Logs Integration\\s+\\(installed\\)",
30 | "local_recipes": true
31 | }
32 | }
33 | ]
34 | }
35 | }
--------------------------------------------------------------------------------
/test/definitions/smoke/infra-win2019.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "is_windows": true,
15 | "ami_name": "Windows_Server-2019-English-Full-HyperV-*",
16 | "user_name": "Administrator"
17 | }],
18 |
19 | "instrumentations": {
20 | "resources": [
21 | {
22 | "id": "nr_infra",
23 | "resource_ids": ["host1"],
24 | "provider": "newrelic",
25 | "source_repository": "https://github.com/newrelic/open-install-library",
26 | "deploy_script_path": "test/deploy/windows/newrelic-cli/install/roles",
27 | "params": {
28 | "local_recipes": true
29 | }
30 | }
31 | ]
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/test/definitions/smoke/redhat84-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "RHEL_HA-8.8.?_HVM-????????-x86_64-????-Hourly2-GP3"
15 | }],
16 |
17 | "instrumentations": {
18 | "resources": [
19 | {
20 | "id": "nr_infra",
21 | "resource_ids": ["host1"],
22 | "provider": "newrelic",
23 | "source_repository": "https://github.com/newrelic/open-install-library",
24 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
25 | "params": {
26 | "local_recipes": true,
27 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)"
28 | }
29 | }
30 | ]
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/test/deploy/assertions/is-reporting/roles/onafterstart/templates/entity-search.source.gql:
--------------------------------------------------------------------------------
1 | {
2 | actor
3 | {
4 | entitySearch(query: "{{nrql_query}}")
5 | {
6 | count
7 | query
8 | results
9 | {
10 | entities
11 | {
12 | reporting
13 | guid
14 | name
15 | }
16 | }
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/test/deploy/assertions/is-reporting/roles/onafterstart/templates/gql-query.source.json:
--------------------------------------------------------------------------------
1 | {
2 | "query": "{{gql_content.replace('\"', '\\\"')}}"
3 | }
--------------------------------------------------------------------------------
/test/deploy/assertions/recipe-is-valid/roles/onafterstart/templates/gql-query.source.json:
--------------------------------------------------------------------------------
1 | {
2 | "query": "{{gql_content.replace('\"', '\\\"')}}"
3 | }
--------------------------------------------------------------------------------
/test/deploy/assertions/recipe-is-valid/roles/onafterstart/templates/nrql-query.source.gql:
--------------------------------------------------------------------------------
1 | {
2 | actor {
3 | account(id: {{newrelic_account_id}}) {
4 | nrql(query: "{{nrql_query}}") {
5 | results
6 | }
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/debian/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Update packages
4 | shell: |
5 | apt update
6 | apt upgrade -y
7 | become: true
8 |
9 | - name: Install depends
10 | shell: apt install unzip -y
11 | become: true
12 |
13 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/debian/roles/onafterstart/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Ping site
4 | shell: |
5 | curl http://{{ip}}:{{service_port}}/
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/debian/roles/onbeforestart/templates/net5webapplication.conf:
--------------------------------------------------------------------------------
1 | # selfcontained-net5webapplication
2 |
3 | ProxyPreserveHost On
4 | ProxyPass / http://localhost:{{ apache_proxy_port }}/ retry=0
5 | ProxyPassReverse / http://localhost:{{ apache_proxy_port }}/ retry=0
6 | ErrorLog /tmp/{{ service_id }}-error.log
7 | CustomLog /tmp/{{ service_id }}-access.log common
8 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/debian/roles/onbeforestart/templates/net5webapplication.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description={{ apache_service_description }}
3 |
4 | [Service]
5 | WorkingDirectory=/var/www/{{ service_id }}/
6 | ExecStart={{ startup_command }} --urls=http://localhost:{{ apache_proxy_port }}/
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier={{ service_id }}
11 | User=ubuntu
12 | Environment=ASPNETCORE_ENVIRONMENT=Production
13 |
14 | [Install]
15 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/debian/roles/start/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Finish setting up Apache
4 |
5 | - name: Start the {{service_id}}.service
6 | shell: |
7 | systemctl daemon-reload
8 | systemctl start {{service_id}}.service
9 | become: true
10 |
11 | - name: Copy apache server reverse-proxy status file
12 | template:
13 | src: reverse-proxy.conf
14 | dest: /etc/apache2/conf-enabled/reverse-proxy.conf
15 | become: true
16 |
17 | - name: Enable Apache modules
18 | shell: |
19 | /usr/sbin/a2enmod proxy
20 | /usr/sbin/a2enmod proxy_http
21 | /usr/sbin/a2enmod proxy_balancer
22 | /usr/sbin/a2enmod lbmethod_byrequests
23 | /usr/sbin/a2enmod headers
24 | become: true
25 |
26 | - name: Restart Apache
27 | shell: |
28 | systemctl restart apache2
29 | become: true
30 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/debian/roles/start/templates/reverse-proxy.conf:
--------------------------------------------------------------------------------
1 |
2 | RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
3 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/rhel/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Update packages
4 | ansible.builtin.yum:
5 | name: '*'
6 | state: latest
7 | lock_timeout: 180
8 | become: true
9 |
10 | - name: Install dependencies
11 | ansible.builtin.yum:
12 | name:
13 | - libicu
14 | - unzip
15 | state: latest
16 | lock_timeout: 180
17 | become: true
18 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/rhel/roles/onafterstart/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Ping site
4 | shell: |
5 | curl http://{{ip}}:{{service_port}}/
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/rhel/roles/onbeforestart/templates/net5webapplication.conf:
--------------------------------------------------------------------------------
1 | # selfcontained-net5webapplication
2 |
3 | ProxyPreserveHost On
4 | ProxyPass / http://localhost:{{ proxy_port }}/ retry=0
5 | ProxyPassReverse / http://localhost:{{ proxy_port }}/ retry=0
6 | ErrorLog /tmp/{{ service_id }}-error.log
7 | CustomLog /tmp/{{ service_id }}-access.log common
8 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/rhel/roles/onbeforestart/templates/net5webapplication.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description={{ service_id }} .NET 5 APP.NET Core 5 Web app
3 |
4 | [Service]
5 | WorkingDirectory=/var/www/{{ service_id }}/
6 | ExecStart={{ startup_command }} --urls=http://localhost:{{ proxy_port }}/
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier={{ service_id }}
11 | User=apache
12 | Environment=ASPNETCORE_ENVIRONMENT=Production
13 |
14 | [Install]
15 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/rhel/roles/start/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Finish setting up Apache
4 |
5 | - name: Start the {{service_id}}.service
6 | shell: |
7 | systemctl daemon-reload
8 | systemctl start {{service_id}}.service
9 | become: true
10 |
11 | - name: Copy apache server reverse-proxy status file
12 | template:
13 | src: reverse-proxy.conf
14 | dest: /etc/httpd/conf.d/reverse-proxy.conf
15 | become: true
16 |
17 | - name: Restart Apache
18 | shell: |
19 | systemctl restart httpd
20 | become: true
21 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/deploy-application/dotNet/rhel/roles/start/templates/reverse-proxy.conf:
--------------------------------------------------------------------------------
1 |
2 | RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
3 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/install/debian/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install Apache
4 |
5 | - name: Set default create_env_var (default not create)
6 | set_fact:
7 | create_env_var: "false"
8 | when: create_env_var is undefined
9 |
10 | - name: Install Apache2
11 | apt:
12 | name: ['apache2']
13 | update_cache: yes
14 | state: latest
15 | become: yes
16 |
17 | - name: Start apache2 service
18 | shell: "systemctl start apache2"
19 | become: yes
20 |
21 | - block:
22 | - name: Export NR_CLI_STATUS_URL
23 | shell: "echo export NR_CLI_STATUS_URL=http://127.0.0.1/server-status?auto >> ~/.bashrc"
24 | when: create_env_var|bool
25 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/install/rhel/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install Apache
4 |
5 | - name: Set default create_env_var (default not create)
6 | set_fact:
7 | create_env_var: "false"
8 | when: create_env_var is undefined
9 |
10 | - name: Set default open_status_url (default not open)
11 | set_fact:
12 | open_status_url: "false"
13 | when: open_status_url is undefined
14 |
15 | - name: Update packages
16 | shell: yum update -y
17 | become: true
18 |
19 | - name: Install Apache
20 | shell: yum install httpd -y
21 | become: true
22 |
23 | - block:
24 | - name: Copy apache server status file
25 | template:
26 | src: server-status.conf
27 | dest: /etc/httpd/conf.d/server-status.conf
28 | become: true
29 | when: open_status_url|bool
30 |
31 | - name: Restart Apache
32 | shell: systemctl restart httpd
33 | become: true
34 |
35 | - block:
36 | - name: Export NR_CLI_STATUS_URL
37 | shell: "echo export NR_CLI_STATUS_URL=http://127.0.0.1/server-status?auto >> ~/.bashrc"
38 | when: create_env_var|bool
39 |
--------------------------------------------------------------------------------
/test/deploy/linux/apache/install/rhel/roles/configure/templates/server-status.conf:
--------------------------------------------------------------------------------
1 |
2 | SetHandler server-status
3 | Require host localhost
4 |
5 |
--------------------------------------------------------------------------------
/test/deploy/linux/cassandra/install/debian/roles/prepare/tasks/installCassandra.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install Cassandra
4 | # The steps outlined in official cassandra documentation for installing on Debian is used in this ansible script.
5 | # https://cassandra.apache.org/doc/latest/getting_started/installing.html#debian
6 |
7 | # Step 1: Ensure the /etc/apt/keyrings directory exists
8 | - name: Ensure /etc/apt/keyrings directory exists
9 | ansible.builtin.file:
10 | path: /etc/apt/keyrings
11 | state: directory
12 | mode: '0755'
13 | become: true
14 |
15 | - name: Add cassandra repo
16 | shell: echo "deb [signed-by=/etc/apt/keyrings/apache-cassandra.asc] https://debian.cassandra.apache.org 41x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
17 | become: true
18 |
19 | - name: add cassandra keys
20 | shell: curl -o /etc/apt/keyrings/apache-cassandra.asc https://downloads.apache.org/cassandra/KEYS
21 | become: true
22 |
23 | - name: Install cassandra
24 | ansible.builtin.apt:
25 | name: cassandra
26 | update_cache: yes
27 | become: true
--------------------------------------------------------------------------------
/test/deploy/linux/cassandra/install/debian/roles/prepare/tasks/installDependencies.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install dependencies
4 |
5 | - name: Update repository cache and install packages
6 | ansible.builtin.apt:
7 | pkg:
8 | - apt-transport-https
9 | - ca-certificates
10 | - wget
11 | - dirmngr
12 | - gnupg
13 | - software-properties-common
14 | - openjdk-11-jdk
15 | update_cache: true
16 | become: true
17 |
--------------------------------------------------------------------------------
/test/deploy/linux/cassandra/install/debian/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - include_tasks: installDependencies.yml
3 | - include_tasks: installCassandra.yml
4 |
--------------------------------------------------------------------------------
/test/deploy/linux/cassandra/install/rhel/roles/prepare/tasks/installCassandra.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install Cassandra
4 |
5 | - name: Add Cassandra repo
6 | become: true
7 | ansible.builtin.blockinfile:
8 | create: true
9 | path: /etc/yum.repos.d/cassandra.repo
10 | block: |
11 | [cassandra]
12 | name=Apache Cassandra
13 | baseurl=https://redhat.cassandra.apache.org/41x/noboolean
14 | gpgcheck=1
15 | repo_gpgcheck=1
16 | gpgkey=https://downloads.apache.org/cassandra/KEYS
17 |
18 | - name: Install Cassandra
19 | become: true
20 | ansible.builtin.yum:
21 | name: cassandra
22 | update_cache: true
23 | state: present
24 |
25 | - name: Start Cassandra
26 | become: true
27 | ansible.builtin.systemd:
28 | name: cassandra
29 | enabled: true
30 | state: started
31 |
--------------------------------------------------------------------------------
/test/deploy/linux/cassandra/install/rhel/roles/prepare/tasks/installDependencies.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install dependencies
4 |
5 | - name: Update repository cache and install packages
6 | ansible.builtin.yum:
7 | name:
8 | - curl
9 | - wget
10 | update_cache: true
11 | become: true
12 |
--------------------------------------------------------------------------------
/test/deploy/linux/cassandra/install/rhel/roles/prepare/tasks/installJava.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install Java
4 |
5 | - name: Install Java
6 | become: true
7 | ansible.builtin.yum:
8 | name: java-1.8.0-openjdk-devel
9 | update_cache: true
10 | state: present
11 |
12 | - name: Add JAVA_HOME env root
13 | shell: "echo 'export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk' >> ~/.bashrc"
14 | become: true
15 | - name: Add JAVA_HOME env user
16 | shell: "echo 'export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk' >> ~/.bashrc"
17 |
18 | - name: Add JRE_HOME env root
19 | shell: "echo 'export JRE_HOME=/usr/lib/jvm/java-1.8.0-openjdk/jre' >> ~/.bashrc"
20 | become: true
21 | - name: Add JRE_HOME env user
22 | shell: "echo 'export JRE_HOME=/usr/lib/jvm/java-1.8.0-openjdk/jre' >> ~/.bashrc"
23 |
24 | - name: Add JAVA_HOME to path root
25 | shell: "echo 'export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin' >> ~/.bashrc"
26 | become: true
27 | - name: Add JAVA_HOME to path user
28 | shell: "echo 'export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin' >> ~/.bashrc"
29 |
--------------------------------------------------------------------------------
/test/deploy/linux/cassandra/install/rhel/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - include_tasks: installDependencies.yml
3 | - include_tasks: installJava.yml
4 | - include_tasks: installCassandra.yml
5 |
--------------------------------------------------------------------------------
/test/deploy/linux/consul/install/debian/roles/configure/templates/config.json:
--------------------------------------------------------------------------------
1 | {
2 | "bootstrap": true,
3 | "server": true,
4 | "log_level": "DEBUG",
5 | "enable_syslog": true,
6 | "datacenter": "server1",
7 | "addresses" : {
8 | "http": "0.0.0.0"
9 | },
10 | "bind_addr": "127.0.0.1",
11 | "node_name": "localhost",
12 | "data_dir": "/etc/consul/consuldata"
13 | }
14 |
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/dotNet/install/rhel/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install .NET
4 |
5 | # https://learn.microsoft.com/en-us/dotnet/core/install/linux-centos#centos-linux-7
6 |
7 | - name: Install Centos 7 RPM
8 | ansible.builtin.yum:
9 | name: https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
10 | state: present
11 | lock_timeout: 180
12 | become: true
13 |
14 | - name: Install .NET SDK 7.0 and ASP.NET Core 7.0 runtime
15 | ansible.builtin.yum:
16 | name:
17 | - dotnet-sdk-7.0
18 | - aspnetcore-runtime-7.0
19 | state: latest
20 | lock_timeout: 180
21 | become: true
22 |
--------------------------------------------------------------------------------
/test/deploy/linux/elasticsearch/install/rhel/roles/configure/templates/elasticsearch.repo:
--------------------------------------------------------------------------------
1 | [elasticsearch]
2 | name=Elasticsearch repository for 7.x packages
3 | baseurl=https://artifacts.elastic.co/packages/7.x/yum
4 | gpgcheck=1
5 | gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
6 | enabled=0
7 | autorefresh=1
8 | type=rpm-md
--------------------------------------------------------------------------------
/test/deploy/linux/elasticsearch/install/suse/roles/configure/templates/elasticsearch.repo:
--------------------------------------------------------------------------------
1 | [elasticsearch]
2 | name=Elasticsearch repository for 7.x packages
3 | baseurl=https://artifacts.elastic.co/packages/7.x/yum
4 | gpgcheck=1
5 | gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
6 | enabled=0
7 | autorefresh=1
8 | type=rpm-md
--------------------------------------------------------------------------------
/test/deploy/linux/java/gradle-flow/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Set up sample tomcat-java app on the host
4 |
5 | - name: Copy file to remote
6 | ansible.builtin.copy:
7 | src: ../../../../javaGradleApp
8 | dest: /home/ec2-user
9 | mode: '0777'
10 | become: true
11 |
12 | - name: Change the permissions of the tomcat directory
13 | shell: chmod 755 /opt/tomcat/latest/webapps
14 | become: true
15 |
16 | - name: Change the permissions of the tomcat bin
17 | shell: chmod -R 777 /opt/tomcat/latest/bin
18 | become: true
19 |
20 | - name: Change the permissions and ownership of javaApp & tomcat directories
21 | shell: chown -R ec2-user:ec2-user /home/ec2-user/javaGradleApp/ &&
22 | chmod -R 755 /home/ec2-user/javaGradleApp &&
23 | chown -R ec2-user:ec2-user /opt/tomcat/ &&
24 | chmod -R 755 /opt/tomcat/
25 | become: true
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaApp/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Archetype Created Web Application
7 |
8 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaApp/src/main/webapp/dummy.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Dummy Page
4 |
5 |
6 | List of Harry Potter Subjects
7 |
8 | - Alchemy
9 | - Astronomy
10 | - Charms
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaApp/src/main/webapp/index.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World!
4 |
5 |
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaApp/target/javaApp/WEB-INF/dummy.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Dummy Page
4 |
5 |
6 | List of Harry Potter Subjects
7 |
8 | - Alchemy
9 | - Astronomy
10 | - Charms
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaApp/target/javaApp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Archetype Created Web Application
7 |
8 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaApp/target/javaApp/index.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World!
4 |
5 |
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaApp/target/maven-archiver/pom.properties:
--------------------------------------------------------------------------------
1 | artifactId=javaApp
2 | groupId=com.newrelic
3 | version=1.0-SNAPSHOT
4 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/.gitignore:
--------------------------------------------------------------------------------
1 | .gradle
2 | build/
3 | !gradle/wrapper/gradle-wrapper.jar
4 | !**/src/main/**/build/
5 | !**/src/test/**/build/
6 |
7 | ### IntelliJ IDEA ###
8 | .idea/modules.xml
9 | .idea/jarRepositories.xml
10 | .idea/compiler.xml
11 | .idea/libraries/
12 | *.iws
13 | *.iml
14 | *.ipr
15 | out/
16 | !**/src/main/**/out/
17 | !**/src/test/**/out/
18 |
19 | ### Eclipse ###
20 | .apt_generated
21 | .classpath
22 | .factorypath
23 | .project
24 | .settings
25 | .springBeans
26 | .sts4-cache
27 | bin/
28 | !**/src/main/**/bin/
29 | !**/src/test/**/bin/
30 |
31 | ### NetBeans ###
32 | /nbproject/private/
33 | /nbbuild/
34 | /dist/
35 | /nbdist/
36 | /.nb-gradle/
37 |
38 | ### VS Code ###
39 | .vscode/
40 |
41 | ### Mac OS ###
42 | .DS_Store
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/.gradle/buildOutputCleanup/buildOutputCleanup.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/newrelic/open-install-library/76da3df0f9f169fb1ed732dc47c0e9220d41eba8/test/deploy/linux/java/javaGradleApp/.gradle/buildOutputCleanup/buildOutputCleanup.lock
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/.gradle/buildOutputCleanup/cache.properties:
--------------------------------------------------------------------------------
1 | #Wed Feb 26 16:02:18 IST 2025
2 | gradle.version=8.4
3 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/.gradle/vcs-1/gc.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/newrelic/open-install-library/76da3df0f9f169fb1ed732dc47c0e9220d41eba8/test/deploy/linux/java/javaGradleApp/.gradle/vcs-1/gc.properties
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'java'
3 | id 'war'
4 | }
5 |
6 | group = 'org.example'
7 | version = '1.0-SNAPSHOT'
8 |
9 | repositories {
10 | mavenCentral()
11 | }
12 |
13 | dependencies {
14 | testImplementation platform('org.junit:junit-bom:5.9.1')
15 | testImplementation 'org.junit.jupiter:junit-jupiter'
16 | }
17 |
18 | tasks.register('curlSelf') {
19 | dependsOn 'war' // Ensure the war task is executed before this one
20 | doLast {
21 | exec {
22 | commandLine 'bash', '-c', 'while true; do curl http://localhost:8080/javaGradleApp/dummy.jsp; sleep 5; done;'
23 | }
24 | }
25 | }
26 | tasks.named('war') {
27 | archiveFileName = 'javaGradleApp.war'
28 | }
29 | test {
30 | useJUnitPlatform()
31 | }
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/newrelic/open-install-library/76da3df0f9f169fb1ed732dc47c0e9220d41eba8/test/deploy/linux/java/javaGradleApp/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Mar 11 14:08:24 IST 2025
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'javaGradleApp'
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/src/main/java/org/example/Main.java:
--------------------------------------------------------------------------------
1 | package org.example;
2 |
3 | public class Main {
4 | public static void main(String[] args) {
5 | System.out.println("Hello, World!");
6 | }
7 | }
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Archetype Created Web Application
7 |
8 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/src/main/webapp/dummy.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Dummy Page
4 |
5 |
6 | List of Harry Potter Subjects
7 |
8 | - Alchemy
9 | - Astronomy
10 | - Charms
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/javaGradleApp/src/main/webapp/index.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World!
4 |
5 |
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/templates/javaApp/src/main/webapp/WEB-INF/dummy.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Dummy Page
4 |
5 |
6 | List of Harry Potter Subjects
7 |
8 | - Alchemy
9 | - Astronomy
10 | - Charms
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/templates/javaApp/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 | Archetype Created Web Application
7 |
8 |
--------------------------------------------------------------------------------
/test/deploy/linux/java/templates/javaApp/src/main/webapp/index.jsp:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World!
4 |
5 |
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/jboss/docker/debian/restApp/roles/configure/files/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM jboss/wildfly
2 | RUN curl -O https://open-install-library-artifacts.s3.us-west-2.amazonaws.com/linux/java/spring-boot-rest.war
3 | ADD spring-boot-rest.war /opt/jboss/wildfly/standalone/deployments/
4 |
--------------------------------------------------------------------------------
/test/deploy/linux/jboss/docker/debian/restApp/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: purge python-pip
4 | shell: apt-get purge --auto-remove python-pip
5 | become: yes
6 |
7 | - name: apt-get update
8 | shell: apt-get update
9 | become: yes
10 | ignore_errors: true
11 |
12 | - name: install pip
13 | shell: apt-get -y install python3-pip
14 | become: yes
15 |
16 | - name: install docker-py
17 | shell: pip install docker-py
18 | become: yes
19 |
20 | - name: Upload war to host
21 | synchronize: src=. dest=/home/{{ ansible_user }}
22 | become: yes
23 |
24 | - name: Build JBoss Image
25 | docker_image: >
26 | name=spring-boot-rest
27 | tag=wildfly
28 | path=/home/{{ ansible_user }}
29 | state=present
30 | become: yes
31 |
32 | # NOTE: context root of deployed app is name of artifact i.e. http://localhost:/spring-boot-rest
33 | - name: Run JBoss Docker container
34 | shell: "docker run -d -p {{ service_port }}:8080 spring-boot-rest:wildfly /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0"
35 | become: yes
36 |
--------------------------------------------------------------------------------
/test/deploy/linux/jboss/docker/install/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Pull JBoss Docker image
4 | shell: "docker pull jboss/wildfly"
5 | become: yes
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/jboss/docker/install/roles/start/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - fail:
4 | msg: "service_id is required"
5 | when: service_id is not defined
6 |
7 | - fail:
8 | msg: "service_port is required"
9 | when: service_port is not defined
10 |
11 | - debug:
12 | msg: Starting {{ service_id }} service
13 |
14 | - name: Run JBoss Docker container
15 | shell: "docker run -d -p {{ service_port }}:8080 -p 9990:9990 jboss/wildfly /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0"
16 | become: yes
17 |
--------------------------------------------------------------------------------
/test/deploy/linux/jboss/docker/linux/restApp/roles/configure/files/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM jboss/wildfly
2 | ADD spring-boot-rest.war /opt/jboss/wildfly/standalone/deployments/
3 |
--------------------------------------------------------------------------------
/test/deploy/linux/jboss/docker/linux/restApp/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: purge python-pip
4 | shell: apt-get purge --auto-remove python-pip
5 | become: yes
6 |
7 | - name: apt-get update
8 | shell: apt-get update
9 | become: yes
10 | ignore_errors: true
11 |
12 | - name: install pip
13 | shell: apt-get -y install python3-pip
14 | become: yes
15 |
16 | - name: install docker-py
17 | shell: pip install docker-py
18 | become: yes
19 |
20 | - name: Upload war to host
21 | synchronize: src=. dest=/home/{{ ansible_user }}
22 | become: yes
23 |
24 | - name: Build JBoss Image
25 | docker_image: >
26 | name=spring-boot-rest
27 | tag=wildfly
28 | path=/home/{{ ansible_user }}
29 | state=present
30 | become: yes
31 |
32 | # NOTE: context root of deployed app is name of artifact i.e. http://localhost:/spring-boot-rest
33 | - name: Run JBoss Docker container
34 | shell: "docker run -d -p {{ service_port }}:8080 spring-boot-rest:wildfly /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0"
35 | become: yes
36 |
--------------------------------------------------------------------------------
/test/deploy/linux/jetty/docker/install/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Pull Jetty Docker image
4 | shell: "docker pull jetty"
5 | become: yes
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/jetty/docker/install/roles/start/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - fail:
4 | msg: "service_id is required"
5 | when: service_id is not defined
6 |
7 | - fail:
8 | msg: "service_port is required"
9 | when: service_port is not defined
10 |
11 | - debug:
12 | msg: Starting {{ service_id }} service
13 |
14 | - name: Run Jetty Docker container
15 | shell: "docker run -d -p {{ service_port }}:8080 -p 443:8443 jetty"
16 | become: yes
17 |
--------------------------------------------------------------------------------
/test/deploy/linux/jmx-jetty/install/debian/roles/configure/templates/jetty:
--------------------------------------------------------------------------------
1 | JETTY_HOME=/opt/jetty
2 | JETTY_BASE=/opt/jetty/my_base
3 | JETTY_USER=jetty
4 | JETTY_PORT=8080
5 | JETTY_HOST=127.0.0.1
6 | JETTY_ARGS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.rmi.port=9999 -Djava.rmi.server.hostname=127.0.0.1"
7 |
--------------------------------------------------------------------------------
/test/deploy/linux/jmx-jetty/install/rhel/roles/configure/templates/jetty:
--------------------------------------------------------------------------------
1 | JETTY_HOME=/opt/jetty
2 | JETTY_BASE=/opt/jetty/my_base
3 | JETTY_USER=jetty
4 | JETTY_PORT=8080
5 | JETTY_HOST=127.0.0.1
6 | JETTY_ARGS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.rmi.port=9999 -Djava.rmi.server.hostname=127.0.0.1"
7 |
--------------------------------------------------------------------------------
/test/deploy/linux/jmx-tomcat/install/debian/roles/configure/templates/setenv.sh:
--------------------------------------------------------------------------------
1 | CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
2 |
--------------------------------------------------------------------------------
/test/deploy/linux/jmx-tomcat/install/debian/roles/configure/templates/tomcat.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Apache Tomcat Web Application Container
3 | After=network.target
4 |
5 | [Service]
6 | Type=forking
7 |
8 | Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
9 | Environment=CATALINA_PID=/opt/apache-tomcat-8.5.69/temp/tomcat.pid
10 | Environment=CATALINA_HOME=/opt/apache-tomcat-8.5.69
11 | Environment=CATALINA_BASE=/opt/apache-tomcat-8.5.69
12 | Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'
13 | Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom'
14 |
15 | ExecStart=/opt/apache-tomcat-8.5.69/bin/startup.sh
16 | ExecStop=/opt/apache-tomcat-8.5.69/shutdown.sh
17 |
18 | User=tomcat
19 | Group=tomcat
20 | UMask=0007
21 | RestartSec=10
22 | Restart=always
23 |
24 | [Install]
25 | WantedBy=multi-user.target
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/jmx-tomcat/install/rhel/roles/configure/templates/setenv.sh:
--------------------------------------------------------------------------------
1 | CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
2 |
--------------------------------------------------------------------------------
/test/deploy/linux/jmx-tomcat/install/rhel/roles/configure/templates/tomcat.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Apache Tomcat Web Application Container
3 | After=network.target
4 |
5 | [Service]
6 | Type=forking
7 |
8 | Environment=JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto.x86_64
9 | Environment=CATALINA_PID=/opt/apache-tomcat-8.5.98/temp/tomcat.pid
10 | Environment=CATALINA_HOME=/opt/apache-tomcat-8.5.98
11 | Environment=CATALINA_BASE=/opt/apache-tomcat-8.5.98
12 | Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'
13 | Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom'
14 |
15 | ExecStart=/opt/apache-tomcat-8.5.98/bin/startup.sh
16 | ExecStop=/opt/apache-tomcat-8.5.98/shutdown.sh
17 |
18 | User=tomcat
19 | Group=tomcat
20 | UMask=0007
21 | RestartSec=10
22 | Restart=always
23 |
24 | [Install]
25 | WantedBy=multi-user.target
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/eks/roles/configure/tasks/installOnlineBoutique.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Deploying Online Boutique
4 |
5 | - name: Set default deploy_online_boutique (default not create)
6 | set_fact:
7 | deploy_online_boutique: "false"
8 | when: deploy_online_boutique is undefined
9 |
10 | - name: clone online boutique
11 | shell: "git clone https://github.com/GoogleCloudPlatform/microservices-demo.git online-boutique"
12 | when: deploy_online_boutique|bool
13 |
14 | - name: install online boutique
15 | shell: "kubectl create -f online-boutique/release/kubernetes-manifests.yaml"
16 | when: deploy_online_boutique|bool
17 | ignore_errors: true
18 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/eks/roles/configure/tasks/installSockShop.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Deploying SockShop Demo
4 |
5 | - name: Set default deploy_sockshop (default not create)
6 | set_fact:
7 | deploy_sockshop: "false"
8 | when: deploy_sockshop is undefined
9 |
10 | - name: clone sockshop
11 | shell: "git clone https://github.com/microservices-demo/microservices-demo.git sock-shop"
12 | when: deploy_sockshop|bool
13 |
14 | - name: install sockshop
15 | shell: "kubectl create -f sock-shop/deploy/kubernetes/complete-demo.yaml"
16 | when: deploy_sockshop|bool
17 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/eks/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | # sockshop
4 | - name: Get kubectl exist
5 | shell: kubectl get pods -n sock-shop | grep Running | wc -l
6 | register: sockshop_exist
7 | ignore_errors: true
8 | - include_tasks: installSockShop.yml
9 | when: sockshop_exist.stdout|int == 0
10 |
11 | # online boutique
12 | - name: Get kubectl exist
13 | shell: kubectl get pods -n default | grep frontend | grep Running | wc -l
14 | register: online_boutique_exist
15 | ignore_errors: true
16 | - include_tasks: installOnlineBoutique.yml
17 | when: online_boutique_exist.stdout|int == 0
18 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/eks/roles/prepare/tasks/createAutoScaler.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Creating autoscaler
4 |
5 | - name: Get cluster name
6 | shell: "kubectl config current-context | awk -F @ '{print $2}' | awk -F . '{print $1}'"
7 | register: cluster_name
8 |
9 | - name: Clone autoscaler
10 | shell: "git clone https://github.com/kubernetes/autoscaler.git"
11 |
12 | - name: Update autoscaler config for cluster
13 | ansible.builtin.replace:
14 | path: ~/autoscaler/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml
15 | regexp: ''
16 | replace: "{{ cluster_name.stdout }}"
17 |
18 | - name: Deploy autoscaler
19 | shell: "kubectl apply -f autoscaler/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml"
20 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/eks/roles/prepare/tasks/installEksctl.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Installing eksctl
4 |
5 | - name: download eksctl
6 | shell: "curl -O --silent --location 'https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_Linux_amd64.tar.gz'"
7 |
8 | - name: unpacking eksctl
9 | shell: "tar xzvf eksctl_Linux_amd64.tar.gz -C /tmp"
10 |
11 | - name: move eksctl
12 | shell: "mv /tmp/eksctl /usr/local/bin"
13 | become: yes
14 |
15 | - name: eksctl version
16 | shell: "eksctl version"
17 | register: eksctl_version_final
18 |
19 | - name: display eksctl version
20 | debug:
21 | msg: "using eksctl version {{ eksctl_version_final.stdout }}"
22 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/eks/roles/prepare/tasks/installGit.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Installing Git client
4 |
5 | - name: Install git
6 | yum:
7 | pkg:
8 | - 'git'
9 | state: present
10 | become: true
11 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/eks/roles/prepare/tasks/installKubectl.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Installing kubectl
4 |
5 | - name: kubectl version
6 | shell: "curl -L -s https://dl.k8s.io/release/stable.txt"
7 | register: kubectl_version_query
8 | when: kubectl_version is not defined
9 |
10 | - name: set version
11 | set_fact:
12 | kubectl_version: "{{ kubectl_version_query.stdout }}"
13 | when: kubectl_version is not defined
14 |
15 | - name: debug kubectl version
16 | debug:
17 | msg: "will use kubectl version {{ kubectl_version }}"
18 |
19 | - name: download kubectl
20 | shell: "curl -LO 'https://dl.k8s.io/release/{{ kubectl_version }}/bin/linux/amd64/kubectl'"
21 |
22 | - name: install kubectl
23 | shell: "sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl"
24 | become: yes
25 |
26 | - name: kubectl version
27 | shell: "kubectl version --short"
28 | register: kubectl_version_final
29 | ignore_errors: true
30 |
31 | - name: display kubectl version
32 | debug:
33 | msg: "using kubectl version {{ kubectl_version_final.stdout }}"
34 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/eks/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Installing EKS and tool dependencies
4 |
5 | - include_tasks: installGit.yml
6 |
7 | # kubectl
8 | - name: Get kubectl exist
9 | shell: kubectl version --short | grep Client | wc -l
10 | register: kubectl_exist
11 | ignore_errors: true
12 | - include_tasks: installKubectl.yml
13 | when: kubectl_exist.stdout|int == 0
14 |
15 | # eksctl
16 | - name: Get eksctl exist
17 | shell: which eksctl | grep eksctl | wc -l
18 | register: eksctl_exist
19 | - include_tasks: installEksctl.yml
20 | when: eksctl_exist.stdout|int == 0
21 |
22 | - name: Get cluster exist
23 | shell: kubectl version --short | grep Server | wc -l
24 | register: cluster_exist
25 | ignore_errors: true
26 | - include_tasks: createCluster.yml
27 | when: cluster_exist.stdout|int == 0
28 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/eks/roles/teardown/tasks/deleteCluster.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Deleting cluster
4 |
5 | # Region
6 | - name: aws region
7 | set_fact:
8 | aws_region: "us-east-1"
9 | when: aws_region is not defined
10 | - name: display aws region
11 | debug:
12 | msg: "using region {{ aws_region }}"
13 |
14 | - name: Delete cluster
15 | shell: "eksctl delete cluster --name {{ deployment_name }} --region {{ aws_region }}"
16 | async: 1800
17 | poll: 0
18 | register: cluster_task
19 |
20 | - name: 'check on async task'
21 | async_status:
22 | jid: "{{ cluster_task.ansible_job_id }}"
23 | register: job_result
24 | until: job_result.finished
25 | retries: 180
26 | delay: 10
27 | when: cluster_task.ansible_job_id is defined
28 |
29 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/eks/roles/teardown/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Deleting cluster
4 |
5 | # kubectl
6 | - name: Get kubectl exist
7 | shell: kubectl version --short | grep Client | wc -l
8 | register: kubectl_exist
9 | ignore_errors: true
10 |
11 | - name: Get cluster exist
12 | shell: kubectl version --short | grep Server | wc -l
13 | register: cluster_exist
14 | ignore_errors: true
15 | - include_tasks: deleteCluster.yml
16 | when: kubectl_exist.stdout|int == 1 and cluster_exist.stdout|int >= 1
17 |
--------------------------------------------------------------------------------
/test/deploy/linux/kubernetes/minikube/roles/prepare/templates/kubectl.wrap:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | /usr/local/bin/minikube kubectl -- $1 $2 $3 $4 $5 $6 $7
3 |
--------------------------------------------------------------------------------
/test/deploy/linux/memcached/install/debian/roles/configure/templates/sasl/memcached.conf:
--------------------------------------------------------------------------------
1 | mech_list: plain
2 | log_level: 5
3 | sasldb_path: /etc/sasl2/memcached-sasldb2
4 |
--------------------------------------------------------------------------------
/test/deploy/linux/memcached/install/rhel/roles/configure/templates/memcached:
--------------------------------------------------------------------------------
1 | PORT="11211"
2 | USER="memcached"
3 | MAXCONN="1024"
4 | CACHESIZE="64"
5 | OPTIONS="-l 127.0.0.1 -U 0 -S -vv"
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/memcached/install/rhel/roles/configure/templates/sasl/memcached.conf:
--------------------------------------------------------------------------------
1 | mech_list: plain
2 | log_level: 5
3 | sasldb_path: /etc/sasl2/memcached-sasldb2
--------------------------------------------------------------------------------
/test/deploy/linux/mongodb/install/debian/roles/configure/templates/commands.js:
--------------------------------------------------------------------------------
1 | use admin;
2 | db.createRole({role: "listCollections", privileges: [{resource: {db:"",collection:""},actions: ["listCollections"]}],roles: []})
3 | db.createUser({user: "newrelic", pwd: "Virtuoso4all!", roles: ["clusterMonitor","listCollections"]})
4 |
--------------------------------------------------------------------------------
/test/deploy/linux/mongodb/install/debian/roles/configure/templates/initiate_script.js:
--------------------------------------------------------------------------------
1 | rs.initiate();
2 |
--------------------------------------------------------------------------------
/test/deploy/linux/mongodb/install/debian/roles/configure/templates/mongod.conf:
--------------------------------------------------------------------------------
1 | # mongod.conf
2 |
3 | # For documentation of all options, see:
4 | # http://docs.mongodb.org/manual/reference/configuration-options/
5 |
6 | # Where and how to store data.
7 | storage:
8 | dbPath: /var/lib/mongodb
9 | journal:
10 | enabled: true
11 | # engine:
12 | # mmapv1:
13 | # wiredTiger:
14 |
15 | # where to write logging data.
16 | systemLog:
17 | destination: file
18 | logAppend: true
19 | path: /var/log/mongodb/mongod.log
20 |
21 | # network interfaces
22 | net:
23 | port: 27017
24 | bindIp: 127.0.0.1
25 |
26 | # how the process runs
27 | processManagement:
28 | timeZoneInfo: /usr/share/zoneinfo
29 |
30 | #security:
31 |
32 | #operationProfiling:
33 |
34 | #replication:
35 | # replSetName: test
36 |
37 | #sharding:
38 |
39 | ## Enterprise-Only Options:
40 |
41 | #auditLog:
42 |
43 | #snmp:
44 |
--------------------------------------------------------------------------------
/test/deploy/linux/mongodb/install/rhel/roles/configure/templates/commands.js:
--------------------------------------------------------------------------------
1 | use admin;
2 | db.createRole({role: "listCollections", privileges: [{resource: {db:"admin",collection:""},actions: ["listCollections"]}],roles: []})
3 | db.createUser({user: "newrelic", pwd: "Virtuoso4all!", roles: ["clusterMonitor","listCollections"]})
--------------------------------------------------------------------------------
/test/deploy/linux/mongodb/install/rhel/roles/configure/templates/initiate.js:
--------------------------------------------------------------------------------
1 | rs.initiate();
--------------------------------------------------------------------------------
/test/deploy/linux/mongodb/install/rhel/roles/configure/templates/mongod.conf:
--------------------------------------------------------------------------------
1 | # mongod.conf
2 |
3 | # for documentation of all options, see:
4 | # http://docs.mongodb.org/manual/reference/configuration-options/
5 |
6 | # where to write logging data.
7 | systemLog:
8 | destination: file
9 | logAppend: true
10 | path: /var/log/mongodb/mongod.log
11 |
12 | # Where and how to store data.
13 | storage:
14 | dbPath: /var/lib/mongo
15 | journal:
16 | enabled: true
17 | # engine:
18 | # wiredTiger:
19 |
20 | # how the process runs
21 | processManagement:
22 | fork: true # fork and run in background
23 | pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
24 | timeZoneInfo: /usr/share/zoneinfo
25 |
26 | # network interfaces
27 | net:
28 | port: 27017
29 | bindIp: localhost # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
30 |
31 |
32 | #security:
33 |
34 | #operationProfiling:
35 |
36 | #replication:
37 | replication:
38 | replSetName: test
39 |
40 | #sharding:
41 |
42 | ## Enterprise-Only Options
43 |
44 | #auditLog:
45 |
46 | #snmp:
--------------------------------------------------------------------------------
/test/deploy/linux/mongodb/install/rhel/roles/configure/templates/mongodb-org-6.0.repo:
--------------------------------------------------------------------------------
1 | [mongodb-org-6.0]
2 | name=MongoDB Repository
3 | baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/6.0/x86_64/
4 | gpgcheck=1
5 | enabled=1
6 | gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
7 |
--------------------------------------------------------------------------------
/test/deploy/linux/newrelic-cli/install/roles/onafterstart/templates/remove_golden_alerts.sh:
--------------------------------------------------------------------------------
1 | while true; do
2 | POLICY_RESULT=$(curl {{ newrelic_api_url_to_use }}/graphql \
3 | -H 'Content-Type: application/json' \
4 | -H 'API-Key: {{ newrelic_personal_api_key }}' \
5 | --data-binary '{"query":"{\n actor {\n account(id: {{ newrelic_account_id }}) {\n alerts {\n policiesSearch(searchCriteria: {name: \"Golden Signals\"}) {\n policies {\n name\n \n id\n }\n totalCount\n }\n }\n }\n }\n}\n", "variables":""}'
6 | )
7 | {% raw %}
8 | POLICY_ID=$(echo $POLICY_RESULT | /usr/local/bin/newrelic utils jq '.data.actor.account.alerts.policiesSearch.policies[0] | select(.name=="Golden Signals") | .id | tonumber')
9 | {% endraw %}
10 | if [ -n "$POLICY_ID" ] && [ $POLICY_ID -gt 0 ] ; then
11 | curl -sX DELETE {{ newrelic_api_url_to_use }}'/v2/alerts_policies/'$POLICY_ID'.json' -H 'Api-Key:{{newrelic_personal_api_key}}' -i > /dev/null
12 | continue
13 | else
14 | break
15 | fi
16 | done
17 |
18 |
--------------------------------------------------------------------------------
/test/deploy/linux/newrelic-cli/validate-recipe/roles/onafterstart/templates/application-agent-context-query.source.gpl:
--------------------------------------------------------------------------------
1 | {
2 | actor {
3 | account(id:{{ newrelic_account_id }}) {
4 | nrql(query: "{{ nrql_query }}") {
5 | results
6 | }
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/test/deploy/linux/newrelic-cli/validate-recipe/roles/onafterstart/templates/gql-query.source.gpl:
--------------------------------------------------------------------------------
1 | {
2 | "query": "{{gql_content.replace('\"', '\\\"')}}"
3 | }
--------------------------------------------------------------------------------
/test/deploy/linux/nginx/deploy-application/dotNet/debian/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Update packages
4 | shell: |
5 | apt update
6 | apt upgrade -y
7 | become: true
8 |
9 | - name: Install depends
10 | shell: apt install unzip -y
11 | become: true
--------------------------------------------------------------------------------
/test/deploy/linux/nginx/deploy-application/dotNet/debian/roles/onafterstart/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Ping site
4 | shell: |
5 | curl http://{{ip}}:{{service_port}}/
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/nginx/deploy-application/dotNet/debian/roles/onbeforestart/templates/nginx.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description={{nginx_service_description}}
3 |
4 | [Service]
5 | WorkingDirectory=/var/www/{{service_id}}/
6 | ExecStart=/var/www/{{service_id}}/net5webapplication --urls=http://localhost:{{nginx_proxy_port}}/
7 | Restart=always
8 | RestartSec=10
9 | KillSignal=SIGINT
10 | SyslogIdentifier={{service_id}}
11 | User={{remote_user}}
12 | Environment=ASPNETCORE_ENVIRONMENT=Production
13 |
14 | [Install]
15 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/test/deploy/linux/nginx/deploy-application/dotNet/debian/roles/onbeforestart/templates/nginx.site:
--------------------------------------------------------------------------------
1 | server {
2 | listen {{service_port}};
3 | location / {
4 | proxy_pass http://localhost:{{nginx_proxy_port}};
5 | proxy_http_version 1.1;
6 | proxy_set_header Upgrade $http_upgrade;
7 | proxy_set_header Connection keep-alive;
8 | proxy_set_header Host $host;
9 | proxy_cache_bypass $http_upgrade;
10 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
11 | proxy_set_header X-Forwarded-Proto $scheme;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/test/deploy/linux/nginx/deploy-application/dotNet/debian/roles/start/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Start the {{service_id}}.service
4 | shell: |
5 | systemctl daemon-reload
6 | systemctl start {{service_id}}.service
7 | become: true
8 |
9 | - name: Restart Nginx
10 | shell: |
11 | nginx -t
12 | nginx -s reload
13 | become: true
14 |
--------------------------------------------------------------------------------
/test/deploy/linux/nginx/deploy-application/dotNet/debian/roles/stop/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Stop nginx
4 | shell: |
5 | nginx -s stop
6 | become: true
7 | ignore_errors: yes
8 |
9 | - name: Stop the {{service_id}}.service
10 | shell: |
11 | systemctl stop {{service_id}}.service
12 | become: true
13 | ignore_errors: yes
14 |
--------------------------------------------------------------------------------
/test/deploy/linux/nginx/install/linux2/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install NGINX reverse proxy
4 |
5 | - name: Set default open_status_url (default not open)
6 | set_fact:
7 | open_status_url: "false"
8 | when: open_status_url is undefined
9 |
10 | - name: Set default create_env_var (default not create)
11 | set_fact:
12 | create_env_var: "false"
13 | when: create_env_var is undefined
14 |
15 | - name: install the NGINX engine
16 | shell: "amazon-linux-extras install -y nginx1"
17 | become: true
18 |
19 | - block:
20 | - name: copy nginx config file
21 | template:
22 | src: default-status-nginx.conf
23 | dest: /etc/nginx/default.d/default.conf
24 | become: true
25 | when: open_status_url|bool
26 |
27 | - block:
28 | - name: Export NR_CLI_STUB_STATUS_URL
29 | shell: "echo export NR_CLI_STUB_STATUS_URL=http://127.0.0.1/status >> ~/.bashrc"
30 | when: create_env_var|bool
31 |
32 | - name: Restart nginx
33 | shell: "systemctl restart nginx"
34 | become: yes
35 |
--------------------------------------------------------------------------------
/test/deploy/linux/nginx/install/linux2/roles/configure/templates/default-status-nginx.conf:
--------------------------------------------------------------------------------
1 | location = /status {
2 | stub_status;
3 | }
4 |
--------------------------------------------------------------------------------
/test/deploy/linux/nginx/open-default/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Set default create_env_var (default not create)
4 | set_fact:
5 | create_env_var: "false"
6 | when: create_env_var is undefined
7 |
8 | - name: Configure nginx default route with status module
9 | blockinfile:
10 | path: /etc/nginx/conf.d/default.conf
11 | insertbefore: ".*location /*."
12 | marker: "# {mark} Enable status for default route"
13 | block: |
14 | location = /status {
15 | stub_status;
16 | }
17 | become: yes
18 |
19 | - block:
20 | - name: Export NR_CLI_STUB_STATUS_URL
21 | shell: "echo export NR_CLI_STUB_STATUS_URL=http://127.0.0.1/status >> ~/.bashrc"
22 | when: create_env_var|bool
23 |
24 | - name: Restart nginx
25 | shell: "systemctl restart nginx"
26 | become: yes
27 |
--------------------------------------------------------------------------------
/test/deploy/linux/nginx/yum-fix/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Disable nginx-amplify permanently
4 | shell: "yum-config-manager --disable nginx-amplify"
5 | become: yes
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/nodejs/docker-flow/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install Node.js, Create Dockerfile, and setup Node.js application
4 | # import the nodeJs sample application tasks
5 | - import_tasks: ../../../../nodejs/redhat/roles/configure/tasks/main.yml
6 |
7 | #copy Docker file to remote
8 | - name: Copy node application to remote
9 | ansible.builtin.copy:
10 | src: ../../../../templates/Dockerfile
11 | dest: /home/ec2-user/myNodeApp/Dockerfile
12 | mode: '0777'
13 | become: true
--------------------------------------------------------------------------------
/test/deploy/linux/nodejs/templates/Dockerfile:
--------------------------------------------------------------------------------
1 | # Dockerfile
2 | #base image
3 | FROM node:18
4 |
5 | # Create app directory
6 | WORKDIR /app
7 |
8 | # Install app dependencies
9 | COPY . /app
10 |
11 | # Bundle app source
12 | RUN npm install
13 |
14 | # Expose the port the app runs on
15 | EXPOSE 3000
16 |
17 | # Command to run the application
18 | CMD ["node", "app.js"]
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/nodejs/templates/myNodeApp/app.js:
--------------------------------------------------------------------------------
1 | console.log('Hello, World!');
--------------------------------------------------------------------------------
/test/deploy/linux/nodejs/templates/myNodeApp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "myNodeApp",
3 | "version": "1.0.0",
4 | "description": "A sample Node.js application",
5 | "main": "app.js",
6 | "scripts": {
7 | "start": "node app.js"
8 | },
9 | "dependencies": {
10 | "express": "^4.17.1"
11 | }
12 | }
--------------------------------------------------------------------------------
/test/deploy/linux/oracle/install/centos/roles/start/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Starting Oracle database Server
4 |
5 | - name: check if shell script exists
6 | become: yes
7 | become_user: cwdb01
8 | stat:
9 | path: ~/start_all.sh
10 | register: path_start_sh
11 |
12 | - name: start script
13 | become: yes
14 | become_user: cwdb01
15 | shell: cd $HOME && ./start_all.sh &
16 | async: 5
17 | poll: 0
18 | when: path_start_sh.stat.exists
19 |
20 | - name: Cannot find oracle script
21 | fail:
22 | msg: "The oracle start script doesn't exist (/start_all.sh), unable to start oracle"
23 | when: not path_start_sh.stat.exists
24 |
--------------------------------------------------------------------------------
/test/deploy/linux/oracle/install/linux/roles/start/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Starting Oracle database Server
4 |
5 | - name: check if shell script exists
6 | become: yes
7 | become_user: oracle
8 | stat:
9 | path: ~/scripts/start_all.sh
10 | register: path_start_sh
11 |
12 | - name: start script
13 | become: yes
14 | become_user: oracle
15 | shell: cd ~/scripts/ && ./start_all.sh &
16 | async: 5
17 | poll: 0
18 | when: path_start_sh.stat.exists
19 |
20 | - name: Cannot find oracle script
21 | fail:
22 | msg: "The oracle start script doesn't exist (/scripts/start_all.sh), unable to start oracle"
23 | when: not path_start_sh.stat.exists
24 |
--------------------------------------------------------------------------------
/test/deploy/linux/php/apache-fpm-wordpress/debian/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install PHP
4 |
5 | - name: install PHP and pre-reqs
6 | apt:
7 | pkg:
8 | - apache2
9 | - php-fpm
10 | - mysql-server
11 | - mysql-client
12 | - php-mysql
13 | update_cache: yes
14 | become: yes
15 |
16 | - template:
17 | src: "{{ item }}"
18 | dest: ~/templates/
19 | mode: 0755
20 | with_fileglob:
21 | - ../../../../../templates/*
22 | become: yes
23 |
24 | - shell:
25 | cmd: ~/templates/install-wordpress.sh
26 | become: yes
27 |
--------------------------------------------------------------------------------
/test/deploy/linux/php/apache-fpm-wordpress/redhat/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install PHP
4 |
5 | - name: install PHP
6 | shell: "amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2"
7 | become: yes
8 |
9 | - name: install other pre-reqs
10 | yum:
11 | pkg:
12 | - httpd
13 | - mariadb
14 | - mariadb-server
15 | state: present
16 | become: yes
17 |
18 | - template:
19 | src: "{{ item }}"
20 | dest: ~/templates/
21 | mode: 0755
22 | with_fileglob:
23 | - ../../../../../templates/*
24 | become: yes
25 |
26 | - shell:
27 | cmd: ~/templates/install-wordpress.sh
28 | become: yes
29 |
--------------------------------------------------------------------------------
/test/deploy/linux/php/apache-wordpress/debian/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install PHP
4 |
5 | - name: install PHP and pre-reqs
6 | apt:
7 | pkg:
8 | - libapache2-mod-php
9 | - mysql-server
10 | - mysql-client
11 | - php-mysql
12 | update_cache: yes
13 | become: yes
14 |
15 | - template:
16 | src: "{{ item }}"
17 | dest: ~/templates/
18 | mode: 0755
19 | with_fileglob:
20 | - ../../../../../templates/*
21 | become: yes
22 |
23 | - shell:
24 | cmd: ~/templates/install-wordpress.sh
25 | become: yes
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/php/apache-wordpress/redhat/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install PHP
4 |
5 | - name: install PHP
6 | shell: "amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2"
7 | become: yes
8 |
9 | - name: install other pre-reqs
10 | yum:
11 | pkg:
12 | - php
13 | - httpd
14 | - mariadb
15 | - mariadb-server
16 | state: present
17 | become: yes
18 |
19 | - template:
20 | src: "{{ item }}"
21 | dest: ~/templates/
22 | mode: 0755
23 | with_fileglob:
24 | - ../../../../../templates/*
25 | become: yes
26 |
27 | - shell:
28 | cmd: ~/templates/install-wordpress.sh
29 | become: yes
30 |
--------------------------------------------------------------------------------
/test/deploy/linux/php/docker-templates/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM php:8.2-cli
2 | COPY . /usr/src/myapp
3 | WORKDIR /usr/src/myapp
4 | EXPOSE 80
5 | CMD [ "php", "index.php" ]
--------------------------------------------------------------------------------
/test/deploy/linux/php/docker-templates/index.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/deploy/linux/php/nginx-fpm-wordpress/debian/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install PHP
4 |
5 | - name: install PHP and pre-reqs
6 | apt:
7 | pkg:
8 | - nginx
9 | - php-fpm
10 | - mysql-server
11 | - mysql-client
12 | - php-mysql
13 | update_cache: yes
14 | become: yes
15 |
16 | - template:
17 | src: "{{ item }}"
18 | dest: ~/templates/
19 | mode: 0755
20 | with_fileglob:
21 | - "../../../../../templates/*"
22 | become: yes
23 |
24 | - shell:
25 | cmd: ~/templates/install-wordpress.sh
26 | become: yes
27 |
--------------------------------------------------------------------------------
/test/deploy/linux/php/nginx-fpm-wordpress/redhat/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install PHP
4 |
5 | - name: install PHP and nginx
6 | shell: "amazon-linux-extras install -y nginx1 lamp-mariadb10.2-php7.2 php7.2"
7 | become: yes
8 |
9 | - name: install other pre-reqs
10 | yum:
11 | pkg:
12 | - mariadb
13 | - mariadb-server
14 | state: present
15 | become: yes
16 |
17 | - template:
18 | src: "{{ item }}"
19 | dest: ~/templates/
20 | mode: 0755
21 | with_fileglob:
22 | - "../../../../../templates/*"
23 | become: yes
24 |
25 | - shell:
26 | cmd: ~/templates/install-wordpress.sh
27 | become: yes
28 |
--------------------------------------------------------------------------------
/test/deploy/linux/php/templates/wordpress-httpd.conf:
--------------------------------------------------------------------------------
1 |
2 | Options FollowSymLinks
3 | AllowOverride Limit Options FileInfo
4 | DirectoryIndex index.php
5 | Order allow,deny
6 | Require all granted
7 | Allow from all
8 |
9 |
10 | Options FollowSymLinks
11 | Order allow,deny
12 | Allow from all
13 |
14 | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/php/templates/wordpress-site:
--------------------------------------------------------------------------------
1 | server {
2 | listen 80;
3 | root /wordpress;
4 | index index.php index.html index.htm index.nginx-debian.html;
5 |
6 | location / {
7 | try_files $uri $uri/ /index.php$is_args$args;
8 | location = /favicon.ico { log_not_found off; access_log off; }
9 | location = /robots.txt { log_not_found off; access_log off; allow all; }
10 | location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
11 | expires max;
12 | log_not_found off;
13 | }
14 | }
15 |
16 | location ~ \.php$ {
17 | include snippets/fastcgi-php.conf;
18 | fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
19 | }
20 |
21 | location ~ /\.ht {
22 | deny all;
23 | }
24 | }
25 |
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/postgres/install/rhel/roles/configure/templates/pgdg.repo:
--------------------------------------------------------------------------------
1 | [pgdg12]
2 | name=PostgreSQL 12 for RHEL/CentOS 7 - x86_64
3 | baseurl=https://download.postgresql.org/pub/repos/yum/12/redhat/rhel-7-x86_64
4 | enabled=1
5 | gpgcheck=0
--------------------------------------------------------------------------------
/test/deploy/linux/python/install/rhel/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Setting up Sample Python application
4 |
5 | - name: Copy files to templates directory
6 | synchronize:
7 | src: "{{ item }}"
8 | dest: ~/
9 | mode: push
10 | with_fileglob:
11 | - "../templates/*"
12 | become: true
13 |
14 | - name: Ensure pip is installed
15 | ansible.builtin.command: python3 -m ensurepip --upgrade
16 | become: true
17 |
18 | - name: Install dependencies from requirements.txt
19 | ansible.builtin.command: python3 -m pip install --user -r /home/ec2-user/requirements.txt
20 | become: false
--------------------------------------------------------------------------------
/test/deploy/linux/python/install/rhel/roles/configure/templates/requirements.txt:
--------------------------------------------------------------------------------
1 | Flask>=2.2.2
2 | Flask-Cors==4.0.2
3 | requests==2.32.2
4 |
--------------------------------------------------------------------------------
/test/deploy/linux/redis/install/debian/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install Redis
4 |
5 | - name: Set default create_env_var (default not create)
6 | set_fact:
7 | create_env_var: "false"
8 | when: create_env_var is undefined
9 |
10 | - name: Install redis
11 | apt:
12 | name: ['redis']
13 | update_cache: yes
14 | state: latest
15 | become: yes
16 |
17 | - name: Copy redis config
18 | template:
19 | src: redis.conf
20 | dest: /etc/redis/redis.conf
21 | become: true
22 |
23 | - name: Restart Redis
24 | shell: "systemctl restart redis"
25 | become: true
26 |
27 | - block:
28 | - name: Export PASSWORD
29 | shell: "echo export NR_CLI_PASSWORD=Virtuoso4all! >> ~/.bashrc"
30 | - name: Export KEYS
31 | shell: echo export NR_CLI_KEYS=None >> ~/.bashrc
32 | - name: Export HOSTNAME
33 | shell: "echo export NR_CLI_HOSTNAME=localhost >> ~/.bashrc"
34 | - name: Export PORT
35 | shell: "echo export NR_CLI_PORT=6379 >> ~/.bashrc"
36 | when: create_env_var|bool
37 |
--------------------------------------------------------------------------------
/test/deploy/linux/shell/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Parameters:
3 | # step_configure: A shell command snippet to execute
4 | # chdir_path: Optional, change into this directory before running the command
5 |
6 | - set_fact:
7 | chdir_path: "{{ ansible_env.HOME }}"
8 | when: chdir_path is not defined
9 |
10 | - set_fact:
11 | chdir_path: "{{ chdir_path }}/{{ service_id }}"
12 | when: service_id is defined
13 |
14 | - block:
15 | - name: Run configure step
16 | ansible.builtin.shell: "{{step_configure}}"
17 | args:
18 | chdir: "{{ chdir_path }}"
19 | async: 600
20 | register: output
21 | become: true
22 | - fail:
23 | msg: "The command failed to install when it was expected to succeed:{{ output.stdout }}"
24 | when: output is failed
25 | when: step_configure is defined
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/shell/roles/onafterstart/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Parameters:
3 | # step_onafterstart: A shell command snippet to execute
4 | # chdir_path: Optional, change into this directory before running the command
5 |
6 | - set_fact:
7 | chdir_path: "{{ ansible_env.HOME }}"
8 | when: chdir_path is not defined
9 |
10 | - set_fact:
11 | chdir_path: "{{ chdir_path }}/{{ service_id }}"
12 | when: service_id is defined
13 |
14 | - block:
15 | - name: Run onafterstart step
16 | ansible.builtin.shell: "{{step_onafterstart}}"
17 | args:
18 | chdir: "{{ chdir_path }}"
19 | async: 600
20 | register: output
21 | become: true
22 | - fail:
23 | msg: "The command failed to install when it was expected to succeed:{{ output.stdout }}"
24 | when: output is failed
25 | when: step_onafterstart is defined
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/shell/roles/onbeforestart/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Parameters:
3 | # step_onbeforestart: A shell command snippet to execute
4 | # chdir_path: Optional, change into this directory before running the command
5 |
6 | - set_fact:
7 | chdir_path: "{{ ansible_env.HOME }}"
8 | when: chdir_path is not defined
9 |
10 | - set_fact:
11 | chdir_path: "{{ chdir_path }}/{{ service_id }}"
12 | when: service_id is defined
13 |
14 | - block:
15 | - name: Run onbeforestart step
16 | ansible.builtin.shell: "{{step_onbeforestart}}"
17 | args:
18 | chdir: "{{ chdir_path }}"
19 | async: 600
20 | register: output
21 | become: true
22 | - fail:
23 | msg: "The command failed to install when it was expected to succeed:{{ output.stdout }}"
24 | when: output is failed
25 | when: step_onbeforestart is defined
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/shell/roles/onstart/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Parameters:
3 | # step_onstart: A shell command snippet to execute
4 | # chdir_path: Optional, change into this directory before running the command
5 |
6 | - set_fact:
7 | chdir_path: "{{ ansible_env.HOME }}"
8 | when: chdir_path is not defined
9 |
10 | - set_fact:
11 | chdir_path: "{{ chdir_path }}/{{ service_id }}"
12 | when: service_id is defined
13 |
14 | - block:
15 | - name: Run onstart step
16 | ansible.builtin.shell: "{{step_onstart}}"
17 | args:
18 | chdir: "{{ chdir_path }}"
19 | async: 600
20 | register: output
21 | become: true
22 | - fail:
23 | msg: "The command failed to install when it was expected to succeed:{{ output.stdout }}"
24 | when: output is failed
25 | when: step_onstart is defined
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/shell/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | # Parameters:
3 | # step_prepare: A shell command snippet to execute
4 | # chdir_path: Optional, change into this directory before running the command
5 |
6 | - set_fact:
7 | chdir_path: "{{ ansible_env.HOME }}"
8 | when: chdir_path is not defined
9 |
10 | - set_fact:
11 | chdir_path: "{{ chdir_path }}/{{ service_id }}"
12 | when: service_id is defined
13 |
14 | - block:
15 | - name: Run prepare step
16 | ansible.builtin.shell: "{{step_prepare}}"
17 | args:
18 | chdir: "{{ chdir_path }}"
19 | async: 600
20 | register: output
21 | become: true
22 | - fail:
23 | msg: "The command failed to install when it was expected to succeed:{{ output.stdout }}"
24 | when: output is failed
25 | when: step_prepare is defined
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/docker/debian/noApp/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Pull Apache Tomcat Docker image
4 | shell: "docker pull tomcat"
5 | become: yes
6 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/docker/debian/noApp/roles/start/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - fail:
4 | msg: "service_id is required"
5 | when: service_id is not defined
6 |
7 | - debug:
8 | msg: Starting {{ service_id }} service
9 |
10 | - fail:
11 | msg: "service_port is required"
12 | when: service_port is not defined
13 |
14 | - name: Run Tomcat Docker container
15 | shell: "docker run -d -p {{ service_port }}:8080 --env TOMCAT_USERNAME=username --env TOMCAT_PASSWORD=password tomcat"
16 | become: yes
17 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/docker/debian/restApp/roles/configure/files/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM tomcat:9.0-jre11-temurin-focal
2 | RUN curl -O https://open-install-library-artifacts.s3.us-west-2.amazonaws.com/linux/java/spring-boot-rest.war
3 | COPY spring-boot-rest.war /usr/local/tomcat/webapps/ROOT.war
4 | EXPOSE 8080
5 | CMD ["catalina.sh", "run"]
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/docker/debian/restApp/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: purge python-pip
4 | shell: apt-get purge --auto-remove python-pip
5 | become: yes
6 |
7 | - name: apt-get update
8 | shell: apt-get update
9 | become: yes
10 | ignore_errors: true
11 |
12 | - name: install pip
13 | shell: apt-get -y install python3-pip
14 | become: yes
15 |
16 | - name: install docker-py
17 | shell: pip install docker-py
18 | become: yes
19 |
20 | - name: Upload war to host
21 | synchronize: src=. dest=/home/{{ ansible_user }}
22 | become: yes
23 |
24 | - name: Build Tomcat Image
25 | docker_image: >
26 | name=spring-boot-rest
27 | tag=1
28 | path=/home/{{ ansible_user }}
29 | state=present
30 | become: yes
31 |
32 | - name: Run Tomcat Docker container
33 | shell: "sudo docker run -d -p {{ service_port }}:8080 --env TOMCAT_USERNAME=tomcat --env TOMCAT_PASSWORD=tomcat spring-boot-rest:1"
34 | become: yes
35 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/supervisord/shScript/install/linux/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - fail:
4 | msg: "service_id is required"
5 | when: service_id is not defined
6 |
7 | - debug:
8 | msg: Configuring {{ service_id }} service
9 |
10 | - fail:
11 | msg: "service_port is required"
12 | when: service_port is not defined
13 |
14 | - include_tasks: supervisord.yml
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/supervisord/shScript/install/linux/roles/configure/tasks/supervisord.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - template:
4 | src: supervisord.conf
5 | dest: /etc/supervisor/conf.d/{{ service_id }}_supervisord.conf
6 |
7 | - name: Get supervisorctl path
8 | shell: which supervisorctl
9 | register: supervisorctl_path
10 |
11 | - name: supervisord reread config
12 | shell: '{{ supervisorctl_path.stdout }} reread'
13 | args:
14 | chdir: /etc/supervisor/conf.d
15 | become: true
16 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/supervisord/shScript/install/linux/roles/configure/templates/supervisord.conf:
--------------------------------------------------------------------------------
1 | [program:{{ service_id }}]
2 | user=root
3 | directory=/home/{{ ansible_user }}/{{ service_id }}
4 | command=/opt/tomcat/latest/bin/catalina.sh run
5 | process_name={{ service_id }}
6 | autostart=true
7 | autorestart=true
8 | startsecs=10
9 | stopwaitsecs=10
10 | startretries=10
11 | stopsignal=INT
12 | redirect_stderr=true
13 | stdout_logfile=/opt/tomcat/latest/logs/stdout.log
14 | stdout_logfile_maxbytes=10mb
15 | stdout_logfile_backups=5
16 | killasgroup=true
17 | stopasgroup=true
18 | environment=JAVA_HOME="/opt/jdk-14.0.1",CATALINA_OUT=/dev/null,CATALINA_OPTS="-Xms300M -Xmx600M"
19 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/supervisord/shScript/install/linux/roles/prepare/tasks/installMaven.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: set facts for maven version
4 | set_fact:
5 | maven_version: 3.8.8
6 |
7 | - name: Download
8 | shell: "curl -O --insecure https://mirrors.ocf.berkeley.edu/apache/maven/maven-3/{{ maven_version }}/binaries/apache-maven-{{ maven_version }}-bin.tar.gz"
9 |
10 | - name: Unpacking
11 | shell: "tar xzvf apache-maven-{{ maven_version }}-bin.tar.gz"
12 |
13 | - name: Rename maven folder
14 | shell: "mv apache-maven-{{ maven_version }}/ apache-maven"
15 |
16 | - name: Remove any previous install
17 | file:
18 | path: "/opt/apache-maven"
19 | state: absent
20 | become: yes
21 |
22 | - name: Moving
23 | shell: "mv apache-maven /opt/"
24 | become: yes
25 |
26 | - name: Add Maven to env path root
27 | shell: "echo 'export PATH=$PATH:/opt/apache-maven/bin' >> ~/.bashrc"
28 | become: yes
29 | - name: Add Maven to env path user
30 | shell: "echo 'export PATH=$PATH:/opt/apache-maven/bin' >> ~/.bashrc"
31 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/supervisord/shScript/install/linux/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - include_tasks: installSupervisord.yml
4 |
5 | - include_tasks: installJava.yml
6 |
7 | - include_tasks: installMaven.yml
8 |
9 | - include_tasks: installTomcat.yml
10 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/apt/install/linux/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Exec permission
4 | shell: "sh -c 'chmod 777 /lib/systemd/system'"
5 | become: yes
6 |
7 | - name: Replace tomcat9.service with less restricted
8 | shell: "sh -c 'rm /lib/systemd/system/tomcat9.service'"
9 | become: yes
10 |
11 | - template:
12 | src: tomcat9.service
13 | dest: /lib/systemd/system/tomcat9.service
14 |
15 | - name: Stop Tomcat
16 | shell: 'systemctl stop tomcat9'
17 | become: true
18 |
19 | - name: Reload daemon
20 | shell: 'systemctl daemon-reload'
21 | become: true
22 |
23 | - name: Enable Tomcat as systemd service
24 | shell: 'systemctl enable tomcat9'
25 | become: true
26 |
27 | - name: Start Tomcat systemd service
28 | shell: 'systemctl start tomcat9'
29 | become: true
30 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/apt/install/linux/roles/configure/templates/tomcat9.service:
--------------------------------------------------------------------------------
1 | #
2 | # Systemd unit file for Apache Tomcat
3 | #
4 |
5 | [Unit]
6 | Description=Apache Tomcat 9 Web Application Server
7 | Documentation=https://tomcat.apache.org/tomcat-9.0-doc/index.html
8 | After=network.target
9 | RequiresMountsFor=/var/log/tomcat9 /var/lib/tomcat9
10 |
11 | [Service]
12 |
13 | # Configuration
14 | Environment="CATALINA_HOME=/usr/share/tomcat9"
15 | Environment="CATALINA_BASE=/var/lib/tomcat9"
16 | Environment="CATALINA_TMPDIR=/tmp"
17 | Environment="JAVA_OPTS=-Djava.awt.headless=true"
18 |
19 | # Lifecycle
20 | Type=simple
21 | ExecStart=/bin/sh /usr/libexec/tomcat9/tomcat-start.sh
22 | SuccessExitStatus=143
23 | Restart=on-abort
24 | SyslogIdentifier=tomcat9
25 | User=tomcat
26 |
27 | [Install]
28 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/apt/install/linux/roles/prepare/tasks/installTomcat.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Get latest packages info
4 | shell: "apt update -y"
5 | become: true
6 |
7 | - name: Install tomcat
8 | shell: "apt install tomcat9 -y"
9 | become: true
10 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/apt/install/linux/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - include_tasks: installTomcat.yml
4 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/cmdLine/install/linux/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - fail:
4 | msg: "service_id is required"
5 | when: service_id is not defined
6 |
7 | - debug:
8 | msg: Configuring {{ service_id }} service
9 |
10 | - fail:
11 | msg: "service_port is required"
12 | when: service_port is not defined
13 |
14 | - include_tasks: systemd.yml
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/cmdLine/install/linux/roles/configure/tasks/systemd.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 |
4 | - name: Exec permission
5 | shell: "sh -c 'chmod 777 /etc/default'"
6 | become: yes
7 |
8 | - template:
9 | src: tomcat-env
10 | dest: /etc/default/tomcat
11 |
12 | - name: Exec permission
13 | shell: "sh -c 'chmod 777 /etc/systemd/system'"
14 | become: yes
15 |
16 | - template:
17 | src: systemd.conf
18 | dest: /etc/systemd/system/{{ service_id }}.service
19 |
20 | - name: Get systemctl path
21 | shell: which systemctl
22 | register: systemctl_path
23 |
24 | - name: systemctl reload daemon
25 | shell: '{{ systemctl_path.stdout }} restart {{ service_id }}.service'
26 | become: true
27 |
28 | - name: systemctl enable {{ service_id }}.service
29 | shell: '{{ systemctl_path.stdout }} enable {{ service_id }}.service'
30 | become: true
31 |
32 | - name: systemctl start {{ service_id }}.service
33 | shell: '{{ systemctl_path.stdout }} start {{ service_id }}.service'
34 | become: true
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/cmdLine/install/linux/roles/configure/templates/tomcat-env:
--------------------------------------------------------------------------------
1 | CATALINA_HOME=/opt/tomcat/latest
2 | CATALINA_BASE=/opt/tomcat/latest
3 | CATALINA_TMPDIR=/opt/tomcat/latest/temp
4 | CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC
5 | JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom
6 | JAVA_HOME=/opt/jdk-14.0.1
7 | CLASSPATH=/opt/tomcat/latest/bin/bootstrap.jar:/opt/tomcat/latest/bin/tomcat-juli.jar
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/cmdLine/install/linux/roles/prepare/tasks/installMaven.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: set facts for maven version
4 | set_fact:
5 | maven_version: 3.8.8
6 |
7 | - name: Download
8 | shell: "curl -O --insecure https://mirrors.ocf.berkeley.edu/apache/maven/maven-3/{{ maven_version }}/binaries/apache-maven-{{ maven_version }}-bin.tar.gz"
9 |
10 | - name: Unpacking
11 | shell: "tar xzvf apache-maven-{{ maven_version }}-bin.tar.gz"
12 |
13 | - name: Rename maven folder
14 | shell: "mv apache-maven-{{ maven_version }}/ apache-maven"
15 |
16 | - name: Remove any previous install
17 | file:
18 | path: "/opt/apache-maven"
19 | state: absent
20 | become: yes
21 |
22 | - name: Moving
23 | shell: "mv apache-maven /opt/"
24 | become: yes
25 |
26 | - name: Add Maven to env path root
27 | shell: "echo 'export PATH=$PATH:/opt/apache-maven/bin' >> ~/.bashrc"
28 | become: yes
29 | - name: Add Maven to env path user
30 | shell: "echo 'export PATH=$PATH:/opt/apache-maven/bin' >> ~/.bashrc"
31 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/cmdLine/install/linux/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - include_tasks: installJava.yml
4 |
5 | - include_tasks: installMaven.yml
6 |
7 | - include_tasks: installTomcat.yml
8 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/catalina/install/linux/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - fail:
4 | msg: "service_id is required"
5 | when: service_id is not defined
6 |
7 | - debug:
8 | msg: Configuring {{ service_id }} service
9 |
10 | - fail:
11 | msg: "service_port is required"
12 | when: service_port is not defined
13 |
14 | - include_tasks: systemd.yml
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/catalina/install/linux/roles/configure/tasks/systemd.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Exec permission
4 | shell: "sh -c 'chmod 777 /etc/systemd/system'"
5 | become: yes
6 |
7 | - template:
8 | src: systemd.conf
9 | dest: /etc/systemd/system/{{ service_id }}.service
10 |
11 | - name: Get systemctl path
12 | shell: which systemctl
13 | register: systemctl_path
14 |
15 | - name: systemctl reload daemon
16 | shell: '{{ systemctl_path.stdout }} restart {{ service_id }}.service'
17 | become: true
18 |
19 | - name: systemctl enable {{ service_id }}.service
20 | shell: '{{ systemctl_path.stdout }} enable {{ service_id }}.service'
21 | become: true
22 |
23 | - name: systemctl start {{ service_id }}.service
24 | shell: '{{ systemctl_path.stdout }} start {{ service_id }}.service'
25 | become: true
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/catalina/install/linux/roles/configure/templates/systemd.conf:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Tomcat for {{ service_id }} - catalina.sh
3 | After=network.target
4 |
5 | [Service]
6 | User=tomcat
7 | WorkingDirectory=/opt/tomcat/latest
8 | Environment=JRE_HOME=/opt/jdk-14.0.1
9 | Environment=JAVA_HOME=/opt/jdk-14.0.1
10 | Environment=CATALINA_HOME=/opt/tomcat/latest
11 | Environment=CATALINE_BASE=/opt/tomcat/latest
12 | ExecStart=/opt/tomcat/latest/bin/catalina.sh run
13 | ExecStop=/opt/tomcat/latest/bin/catalina.sh stop
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/catalina/install/linux/roles/prepare/tasks/installMaven.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: set facts for maven version
4 | set_fact:
5 | maven_version: 3.8.8
6 |
7 | - name: Download
8 | shell: "curl -O --insecure https://mirrors.ocf.berkeley.edu/apache/maven/maven-3/{{ maven_version }}/binaries/apache-maven-{{ maven_version }}-bin.tar.gz"
9 |
10 | - name: Unpacking
11 | shell: "tar xzvf apache-maven-{{ maven_version }}-bin.tar.gz"
12 |
13 | - name: Rename maven folder
14 | shell: "mv apache-maven-{{ maven_version }}/ apache-maven"
15 |
16 | - name: Remove any previous install
17 | file:
18 | path: "/opt/apache-maven"
19 | state: absent
20 | become: yes
21 |
22 | - name: Moving
23 | shell: "mv apache-maven /opt/"
24 | become: yes
25 |
26 | - name: Add Maven to env path root
27 | shell: "echo 'export PATH=$PATH:/opt/apache-maven/bin' >> ~/.bashrc"
28 | become: yes
29 | - name: Add Maven to env path user
30 | shell: "echo 'export PATH=$PATH:/opt/apache-maven/bin' >> ~/.bashrc"
31 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/catalina/install/linux/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - include_tasks: installJava.yml
4 |
5 | - include_tasks: installMaven.yml
6 |
7 | - include_tasks: installTomcat.yml
8 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/custom/install/linux/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - fail:
4 | msg: "service_id is required"
5 | when: service_id is not defined
6 |
7 | - debug:
8 | msg: Configuring {{ service_id }} service
9 |
10 | - fail:
11 | msg: "service_port is required"
12 | when: service_port is not defined
13 |
14 | - include_tasks: systemd.yml
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/custom/install/linux/roles/configure/templates/custom-start.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | exec /opt/tomcat/latest/bin/catalina.sh run
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/custom/install/linux/roles/configure/templates/custom-stop.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | exec /opt/tomcat/latest/bin/catalina.sh stop
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/custom/install/linux/roles/configure/templates/systemd.conf:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Tomcat for {{ service_id }} - catalina.sh
3 | After=network.target
4 |
5 | [Service]
6 | User=tomcat
7 | WorkingDirectory=/opt/tomcat/latest
8 | Environment=JRE_HOME=/opt/jdk-14.0.1
9 | Environment=JAVA_HOME=/opt/jdk-14.0.1
10 | Environment=CATALINA_HOME=/opt/tomcat/latest
11 | Environment=CATALINE_BASE=/opt/tomcat/latest
12 | ExecStart=/opt/custom/bin/custom-start.sh run
13 | ExecStop=/opt/custom/bin/custom-stop.sh stop
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/custom/install/linux/roles/prepare/tasks/installMaven.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: set facts for maven version
4 | set_fact:
5 | maven_version: 3.8.8
6 |
7 | - name: Download
8 | shell: "curl -O --insecure https://mirrors.ocf.berkeley.edu/apache/maven/maven-3/{{ maven_version }}/binaries/apache-maven-{{ maven_version }}-bin.tar.gz"
9 |
10 | - name: Unpacking
11 | shell: "tar xzvf apache-maven-{{ maven_version }}-bin.tar.gz"
12 |
13 | - name: Rename maven folder
14 | shell: "mv apache-maven-{{ maven_version }}/ apache-maven"
15 |
16 | - name: Remove any previous install
17 | file:
18 | path: "/opt/apache-maven"
19 | state: absent
20 | become: yes
21 |
22 | - name: Moving
23 | shell: "mv apache-maven /opt/"
24 | become: yes
25 |
26 | - name: Add Maven to env path root
27 | shell: "echo 'export PATH=$PATH:/opt/apache-maven/bin' >> ~/.bashrc"
28 | become: yes
29 | - name: Add Maven to env path user
30 | shell: "echo 'export PATH=$PATH:/opt/apache-maven/bin' >> ~/.bashrc"
31 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/custom/install/linux/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - include_tasks: installJava.yml
4 |
5 | - include_tasks: installMaven.yml
6 |
7 | - include_tasks: installTomcat.yml
8 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/gradle/install/linux/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - fail:
4 | msg: "service_id is required"
5 | when: service_id is not defined
6 |
7 | - debug:
8 | msg: Configuring {{ service_id }} service
9 |
10 | - fail:
11 | msg: "service_port is required"
12 | when: service_port is not defined
13 |
14 | - include_tasks: systemd.yml
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/gradle/install/linux/roles/configure/tasks/systemd.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Exec permission
4 | shell: "sh -c 'chmod 777 /etc/systemd/system'"
5 | become: yes
6 |
7 | - template:
8 | src: systemd.conf
9 | dest: /etc/systemd/system/{{ service_id }}.service
10 |
11 | - name: Get systemctl path
12 | shell: which systemctl
13 | register: systemctl_path
14 |
15 | - name: systemctl reload daemon
16 | shell: '{{ systemctl_path.stdout }} restart {{ service_id }}.service'
17 | become: true
18 |
19 | - name: systemctl enable {{ service_id }}.service
20 | shell: '{{ systemctl_path.stdout }} enable {{ service_id }}.service'
21 | become: true
22 |
23 | - name: systemctl start {{ service_id }}.service
24 | shell: '{{ systemctl_path.stdout }} start {{ service_id }}.service'
25 | become: true
26 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/gradle/install/linux/roles/configure/templates/systemd.conf:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Tomcat for {{ service_id }} - catalina.sh
3 | After=network.target
4 |
5 | [Service]
6 | User=tomcat
7 | WorkingDirectory=/opt/tomcat/latest
8 | Environment=JRE_HOME=/opt/jdk-14.0.1
9 | Environment=JAVA_HOME=/opt/jdk-14.0.1
10 | Environment=CATALINA_HOME=/opt/tomcat/latest
11 | Environment=CATALINE_BASE=/opt/tomcat/latest
12 | ExecStart=/opt/tomcat/latest/bin/catalina.sh run
13 | ExecStop=/opt/tomcat/latest/bin/catalina.sh stop
14 |
15 | [Install]
16 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/gradle/install/linux/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - include_tasks: installJava.yml
4 |
5 | - include_tasks: installGradle.yml
6 |
7 | - include_tasks: installTomcat.yml
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/start/install/linux/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - fail:
4 | msg: "service_id is required"
5 | when: service_id is not defined
6 |
7 | - debug:
8 | msg: Configuring {{ service_id }} service
9 |
10 | - fail:
11 | msg: "service_port is required"
12 | when: service_port is not defined
13 |
14 | - include_tasks: systemd.yml
15 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/start/install/linux/roles/configure/tasks/systemd.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Exec permission
4 | shell: "sh -c 'chmod 777 /etc/systemd/system'"
5 | become: yes
6 |
7 | - template:
8 | src: systemd.conf
9 | dest: /etc/systemd/system/{{ service_id }}.service
10 |
11 | - name: Get systemctl path
12 | shell: which systemctl
13 | register: systemctl_path
14 |
15 | - name: systemctl reload daemon
16 | shell: '{{ systemctl_path.stdout }} restart {{ service_id }}.service'
17 | become: true
18 |
19 | - name: systemctl enable {{ service_id }}.service
20 | shell: '{{ systemctl_path.stdout }} enable {{ service_id }}.service'
21 | become: true
22 |
23 | - name: systemctl start {{ service_id }}.service
24 | shell: '{{ systemctl_path.stdout }} start {{ service_id }}.service'
25 | become: true
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/start/install/linux/roles/configure/templates/systemd.conf:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Tomcat for {{ service_id }} - start.sh
3 | After=network.target
4 |
5 | [Service]
6 | User=tomcat
7 | Type=forking
8 |
9 | WorkingDirectory=/opt/tomcat/latest
10 | Environment=JRE_HOME=/opt/jdk-14.0.1
11 | Environment=JAVA_HOME=/opt/jdk-14.0.1
12 | Environment=CATALINA_HOME=/opt/tomcat/latest
13 | Environment=CATALINE_BASE=/opt/tomcat/latest
14 | ExecStart=/opt/tomcat/latest/bin/startup.sh
15 | ExecStop=/opt/tomcat/latest/bin/shutdown.sh
16 |
17 | [Install]
18 | WantedBy=multi-user.target
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/start/install/linux/roles/prepare/tasks/installMaven.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: set facts for maven version
4 | set_fact:
5 | maven_version: 3.8.8
6 |
7 | - name: Download
8 | shell: "curl -O --insecure https://mirrors.ocf.berkeley.edu/apache/maven/maven-3/{{ maven_version }}/binaries/apache-maven-{{ maven_version }}-bin.tar.gz"
9 |
10 | - name: Unpacking
11 | shell: "tar xzvf apache-maven-{{ maven_version }}-bin.tar.gz"
12 |
13 | - name: Rename maven folder
14 | shell: "mv apache-maven-{{ maven_version }}/ apache-maven"
15 |
16 | - name: Remove any previous install
17 | file:
18 | path: "/opt/apache-maven"
19 | state: absent
20 | become: yes
21 |
22 | - name: Moving
23 | shell: "mv apache-maven /opt/"
24 | become: yes
25 |
26 | - name: Add Maven to env path root
27 | shell: "echo 'export PATH=$PATH:/opt/apache-maven/bin' >> ~/.bashrc"
28 | become: yes
29 | - name: Add Maven to env path user
30 | shell: "echo 'export PATH=$PATH:/opt/apache-maven/bin' >> ~/.bashrc"
31 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/shScript/start/install/linux/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - include_tasks: installJava.yml
4 |
5 | - include_tasks: installMaven.yml
6 |
7 | - include_tasks: installTomcat.yml
8 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/yum/install/linux/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Enable Tomcat as systemd service
4 | shell: 'systemctl enable tomcat'
5 | become: true
6 |
7 | - name: Start Tomcat systemd service
8 | shell: 'systemctl start tomcat'
9 | become: true
10 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/yum/install/linux/roles/prepare/tasks/installTomcat.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Create tomcat user if not exist
4 | shell: "useradd -r -m -U -d /opt/tomcat -s /bin/false tomcat"
5 | become: yes
6 | ignore_errors: yes
7 |
8 | - set_fact: tomcat_download_url="https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.34/bin/apache-tomcat-9.0.34.tar.gz"
9 | when: tomcat_download_url is undefined
10 |
11 | - set_fact: tomcat_version_name="apache-tomcat-9.0.34"
12 | when: tomcat_version_name is undefined
13 |
14 | - name: Install Tomcat using yum
15 | shell: "yum install tomcat -y"
16 | become: yes
17 |
--------------------------------------------------------------------------------
/test/deploy/linux/tomcat/systemd/yum/install/linux/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - include_tasks: installTomcat.yml
4 |
--------------------------------------------------------------------------------
/test/deploy/linux/varnish/install/debian/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install Varnish
4 |
5 | - name: Set default create_env_var (default not create)
6 | set_fact:
7 | create_env_var: "false"
8 | when: create_env_var is undefined
9 |
10 | - name: Install varnish
11 | apt:
12 | name: ['varnish']
13 | update_cache: yes
14 | state: latest
15 | become: true
16 |
17 | - block:
18 | - name: Export NR_CLI_INSTANCE_NAME
19 | shell: "echo export NR_CLI_INSTANCE_NAME=localhost >> ~/.bashrc"
20 | - name: Export NR_CLI_PARAMS_CONFIG_FILE
21 | shell: "echo export NR_CLI_PARAMS_CONFIG_FILE=/etc/default/varnish >> ~/.bashrc"
22 | when: create_env_var|bool
23 |
24 |
--------------------------------------------------------------------------------
/test/deploy/linux/varnish/install/rhel/roles/configure/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - debug:
3 | msg: Install Varnish Cache
4 |
5 | - name: Set default create_env_var (default not create)
6 | set_fact:
7 | create_env_var: "false"
8 | when: create_env_var is undefined
9 |
10 | - name: Install epel
11 | shell: amazon-linux-extras install epel -y
12 | become: true
13 |
14 | - name: Install Varnish
15 | shell: yum install varnish -y
16 | become: true
17 |
18 | - name: Run Varnish
19 | shell: sudo systemctl start varnish
20 | become: true
21 |
22 | - block:
23 | - name: Export NR_CLI_INSTANCE_NAME
24 | shell: "echo export NR_CLI_INSTANCE_NAME=localhost >> ~/.bashrc"
25 | - name: Export NR_CLI_PARAMS_CONFIG_FILE
26 | shell: "echo export NR_CLI_PARAMS_CONFIG_FILE=/etc/varnish/varnish.params >> ~/.bashrc"
27 | when: create_env_var|bool
--------------------------------------------------------------------------------
/test/deploy/windows/elasticsearch/install/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | - block:
3 | - name: Install Chocolatey
4 | win_shell: |
5 | if (!(Get-Command choco.exe -ErrorAction SilentlyContinue)) {
6 | Set-ExecutionPolicy Bypass -Scope Process -Force;
7 | [Net.ServicePointManager]::SecurityProtocol = "tls13, tls12, tls"
8 | iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))}
9 | - name: Install elastic search
10 | win_shell: |
11 | choco install elasticsearch -y
12 | - name: Start Elastic Search Service
13 | win_shell: |
14 | Start-Service -Name "elasticsearch*"
15 |
--------------------------------------------------------------------------------
/test/deploy/windows/iis/deploy-webapplication/roles/start/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Ping site
4 | win_shell: Invoke-WebRequest -URI http://{{ip}}:{{service_port}}/ -UseBasicParsing -ErrorAction SilentlyContinue | Out-Null
5 |
--------------------------------------------------------------------------------
/test/deploy/windows/iis/install/roles/prepare/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | - name: Set default install_sdk (default not create)
4 | set_fact:
5 | install_sdk: "false"
6 | when: install_sdk is undefined
7 |
8 | - name: Installing IIS
9 | win_shell: |
10 | Install-WindowsFeature -name Web-Server -IncludeManagementTools
11 |
12 | - name: Installing Asp.net
13 | win_shell: |
14 | Install-WindowsFeature -name Web-Asp-net45
15 |
16 | - block:
17 | - name: Install Chocolatey
18 | win_shell: |
19 | if (!(Get-Command choco.exe -ErrorAction SilentlyContinue)) {
20 | Set-ExecutionPolicy Bypass -Scope Process -Force;
21 | [Net.ServicePointManager]::SecurityProtocol = "tls13, tls12, tls"
22 | iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))}
23 | - name: Install visual studio community
24 | win_shell: |
25 | choco install visualstudio2019community -y
26 | - name: Reboot and wait for readyness
27 | ansible.windows.win_reboot:
28 | reboot_timeout: 600
29 | when: install_sdk|bool
30 |
--------------------------------------------------------------------------------
/test/deprecated/EU/centos7-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "CentOS-7-????-????????_?.x86_64-*",
15 | "user_name": "centos"
16 | }],
17 |
18 | "instrumentations": {
19 | "resources": [
20 | {
21 | "id": "nr_infra",
22 | "resource_ids": ["host1"],
23 | "provider": "newrelic",
24 | "source_repository": "https://github.com/newrelic/open-install-library",
25 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
26 | "params": {
27 | "local_recipes": true,
28 | "validate_output": "Infrastructure Agent\\s+\\(installed\\)"
29 | }
30 | }
31 | ]
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/test/deprecated/US/amazonlinux2018-logs-unsupported.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.nano",
15 | "ami_name": "amzn-ami-hvm-2018.03.0.????????.?-x86_64-gp2",
16 | "user_name": "ec2-user"
17 | }
18 | ],
19 |
20 | "instrumentations": {
21 | "resources": [
22 | {
23 | "id": "nr_logging_amazon2018",
24 | "resource_ids": ["host1"],
25 | "provider": "newrelic",
26 | "source_repository": "https://github.com/newrelic/open-install-library",
27 | "deploy_script_path": "test/deploy/linux/newrelic-cli/install/roles",
28 | "params": {
29 | "newrelic_cli_option": "-n logs-integration",
30 | "validate_output": "logs-integration\\s+\\(unsupported\\)",
31 | "local_recipes": true
32 | }
33 | }
34 | ]
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/dotNet/windows/iis-blank.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "iiswindows2019",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "is_windows": true,
15 | "ami_name": "Windows_Server-2019-English-Full-HyperV-*",
16 | "user_name": "Administrator"
17 | }],
18 |
19 | "services": [{
20 | "id": "iis",
21 | "destinations": ["iiswindows2019"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/windows/iis/install/roles",
24 | "port": 9999
25 | }]
26 | }
27 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/go/go-linux2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "go-l2",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "go",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/go/redhat/roles",
23 | "port": 80,
24 | "destinations": ["go-l2"]
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/docker-flows/java-docker-flows.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "linux2",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "docker",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/docker/install/roles",
23 | "port": 9999,
24 | "destinations": ["linux2"]
25 | },
26 | {
27 | "id": "java",
28 | "source_repository": "https://github.com/newrelic/open-install-library.git",
29 | "deploy_script_path": "test/deploy/linux/java/docker-flow/roles",
30 | "port": 80,
31 | "destinations": ["linux2"]
32 | }
33 | ]
34 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/java-tomcat-gradle-linux2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "gradle-testapp",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2"
15 | }
16 | ],
17 | "services": [
18 | {
19 | "id": "tomcat",
20 | "source_repository": "https://github.com/newrelic/open-install-library.git",
21 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/shScript/gradle/install/linux/roles",
22 | "port": 6001,
23 | "destinations": ["gradle-testapp"]
24 | },
25 | {
26 | "id": "javaGradleApp",
27 | "source_repository": "https://github.com/newrelic/open-install-library.git",
28 | "deploy_script_path": "test/deploy/linux/java/gradle-flow/roles",
29 | "port": 80,
30 | "destinations": ["gradle-testapp"]
31 | }
32 | ]
33 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/java-tomcat-maven-linux2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "java-mav-tom-testapp",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2"
15 | }
16 | ],
17 | "services": [
18 | {
19 | "id": "tomcat",
20 | "source_repository": "https://github.com/newrelic/open-install-library.git",
21 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/shScript/catalina/install/linux/roles",
22 | "port": 6001,
23 | "destinations": ["java-mav-tom-testapp"]
24 | },
25 | {
26 | "id": "javaApp",
27 | "source_repository": "https://github.com/newrelic/open-install-library.git",
28 | "deploy_script_path": "test/deploy/linux/java/redhat/roles",
29 | "port": 80,
30 | "destinations": ["java-mav-tom-testapp"]
31 | }
32 | ]
33 | }
34 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/jboss/docker/ub20-apt-docker.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [{
9 | "id": "dockerJboss",
10 | "provider": "aws",
11 | "type": "ec2",
12 | "size": "t3.medium",
13 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
14 | "user_name": "ubuntu"
15 | }],
16 | "services": [
17 | {
18 | "id": "docker",
19 | "source_repository": "https://github.com/newrelic/open-install-library.git",
20 | "deploy_script_path": "test/deploy/linux/docker/install/roles",
21 | "port": 9999,
22 | "destinations": ["dockerJboss"]
23 | },
24 | {
25 | "id": "jboss",
26 | "source_repository": "https://github.com/newrelic/open-install-library.git",
27 | "deploy_script_path": "test/deploy/linux/jboss/docker/install/roles",
28 | "port": 9090,
29 | "destinations": ["dockerJboss"]
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/jboss/docker/ub20-docker-rest.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [{
9 | "id": "dockerJboss",
10 | "provider": "aws",
11 | "type": "ec2",
12 | "size": "t3.medium",
13 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
14 | "user_name": "ubuntu"
15 | }],
16 | "services": [
17 | {
18 | "id": "docker",
19 | "source_repository": "https://github.com/newrelic/open-install-library.git",
20 | "deploy_script_path": "test/deploy/linux/docker/install/roles",
21 | "port": 9999,
22 | "destinations": ["dockerJboss"]
23 | },
24 | {
25 | "id": "jboss",
26 | "source_repository": "https://github.com/newrelic/open-install-library.git",
27 | "deploy_script_path": "test/deploy/linux/jboss/docker/debian/restApp/roles",
28 | "port": 9090,
29 | "destinations": ["dockerJboss"]
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/jboss/docker/ub20-tomcat-jboss.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [{
9 | "id": "multiconfig",
10 | "provider": "aws",
11 | "type": "ec2",
12 | "size": "t3.medium",
13 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
14 | "user_name": "ubuntu"
15 | }],
16 | "services": [
17 | {
18 | "id": "sysdtomcat",
19 | "source_repository": "https://github.com/newrelic/open-install-library.git",
20 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/shScript/catalina/install/linux/roles",
21 | "port": 6002,
22 | "destinations": ["multiconfig"]
23 | },
24 | {
25 | "id": "sysdjboss",
26 | "source_repository": "https://github.com/newrelic/open-install-library.git",
27 | "deploy_script_path": "test/deploy/linux/jboss/systemd/install/linux/roles",
28 | "port": 6001,
29 | "destinations": ["multiconfig"]
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/jboss/systemd/deb10-sysd-jboss.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "jboss",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/jboss/systemd/install/linux/roles",
23 | "port": 6001,
24 | "destinations": ["jboss"]
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/jboss/systemd/rhl2-sysd-jboss.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "jboss",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/jboss/systemd/install/linux/roles",
23 | "port": 6001,
24 | "destinations": [
25 | "jboss"
26 | ]
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/jetty/deb10-jetty.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "jettyhost",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "jetty",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/jetty/systemd/install/roles",
23 | "port": 6001,
24 | "destinations": ["jettyhost"]
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/jetty/rhl2-jetty.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "jettyhost",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "jetty",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/jetty/systemd/install/roles",
23 | "port": 6001,
24 | "destinations": [
25 | "jettyhost"
26 | ]
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/docker/ub20-apt-docker-tomcat.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [{
9 | "id": "1",
10 | "provider": "aws",
11 | "type": "ec2",
12 | "size": "t3.micro",
13 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
14 | "user_name": "ubuntu"
15 | }],
16 | "services": [
17 | {
18 | "id": "docker",
19 | "source_repository": "https://github.com/newrelic/open-install-library.git",
20 | "deploy_script_path": "test/deploy/linux/docker/install/roles",
21 | "port": 9999,
22 | "destinations": ["1"]
23 | },
24 | {
25 | "id": "tomcat",
26 | "source_repository": "https://github.com/newrelic/open-install-library.git",
27 | "deploy_script_path": "test/deploy/linux/tomcat/docker/debian/noApp/roles",
28 | "port": 9090,
29 | "destinations": ["1"]
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/docker/ub20-docker-rest.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [{
9 | "id": "1",
10 | "provider": "aws",
11 | "type": "ec2",
12 | "size": "t3.medium",
13 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
14 | "user_name": "ubuntu"
15 | }],
16 | "services": [
17 | {
18 | "id": "docker",
19 | "source_repository": "https://github.com/newrelic/open-install-library.git",
20 | "deploy_script_path": "test/deploy/linux/docker/install/roles",
21 | "port": 9999,
22 | "destinations": ["1"]
23 | },
24 | {
25 | "id": "tomcat",
26 | "source_repository": "https://github.com/newrelic/open-install-library.git",
27 | "deploy_script_path": "test/deploy/linux/tomcat/docker/debian/restApp/roles",
28 | "port": 9090,
29 | "destinations": ["1"]
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/supervisord/deb10-supd-tomcat-sh.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/supervisord/shScript/install/linux/roles",
23 | "port": 6001,
24 | "destinations": ["javatomcat"]
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/supervisord/rhl2-supd-tomcat-sh.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/supervisord/shScript/install/linux/roles",
23 | "port": 6001,
24 | "destinations": [
25 | "javatomcat"
26 | ]
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/deb10-apt-sysd-tomcat.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/apt/install/linux/roles",
23 | "port": 8080,
24 | "destinations": ["javatomcat"]
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/deb10-sysd-catalina-sh.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/shScript/catalina/install/linux/roles",
23 | "port": 6001,
24 | "destinations": ["javatomcat"],
25 | "params": {
26 | "tomcat_download_url": "https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.34/bin/apache-tomcat-9.0.34.tar.gz",
27 | "tomcat_version_name": "apache-tomcat-9.0.34"
28 | }
29 |
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/deb10-sysd-custom-sh.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/shScript/custom/install/linux/roles",
23 | "port": 6001,
24 | "destinations": ["javatomcat"],
25 | "params": {
26 | "tomcat_download_url": "https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.34/bin/apache-tomcat-9.0.34.tar.gz",
27 | "tomcat_version_name": "apache-tomcat-9.0.34"
28 | }
29 |
30 | }
31 | ]
32 | }
33 |
34 |
35 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/deb10-sysd-start-sh.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/shScript/start/install/linux/roles",
23 | "port": 6001,
24 | "destinations": ["javatomcat"],
25 | "params": {
26 | "tomcat_download_url": "https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.34/bin/apache-tomcat-9.0.34.tar.gz",
27 | "tomcat_version_name": "apache-tomcat-9.0.34"
28 | }
29 |
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/deb10-sysd-tomcat-cmd.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/cmdLine/install/linux/roles",
23 | "port": 6001,
24 | "destinations": ["javatomcat"],
25 | "params": {
26 | "tomcat_download_url": "https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.34/bin/apache-tomcat-9.0.34.tar.gz",
27 | "tomcat_version_name": "apache-tomcat-9.0.34"
28 | }
29 |
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/rhl2-sysd-catalina-sh.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/shScript/catalina/install/linux/roles",
23 | "port": 6001,
24 | "destinations": [
25 | "javatomcat"
26 | ]
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/rhl2-sysd-custom-sh.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/shScript/custom/install/linux/roles",
23 | "port": 6001,
24 | "destinations": [
25 | "javatomcat"
26 | ]
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/rhl2-sysd-start-sh.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/shScript/start/install/linux/roles",
23 | "port": 6001,
24 | "destinations": [
25 | "javatomcat"
26 | ]
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/rhl2-sysd-tomcat-cmd.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-kernel-*-hvm-*-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/cmdLine/install/linux/roles",
23 | "port": 6001,
24 | "destinations": [
25 | "javatomcat"
26 | ]
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/rhl2-yum-sysd-tomcat.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "javatomcat",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "java1",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/yum/install/linux/roles",
23 | "port": 6001,
24 | "destinations": [
25 | "javatomcat"
26 | ]
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/java/linux/tomcat/systemd/ub20-apt-sysd-tomcat.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [{
9 | "id": "javatomcat",
10 | "provider": "aws",
11 | "type": "ec2",
12 | "size": "t3.micro",
13 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
14 | "user_name": "ubuntu"
15 | }],
16 | "services": [
17 | {
18 | "id": "java1",
19 | "source_repository": "https://github.com/newrelic/open-install-library.git",
20 | "deploy_script_path": "test/deploy/linux/tomcat/systemd/apt/install/linux/roles",
21 | "port": 8080,
22 | "destinations": ["javatomcat"]
23 | }
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/node/node-linux2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "node-js",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t2.medium",
14 | "ami_name": "al2023-ami-2023.?.????????.?-kernel-?.?-x86_64",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "nodejs",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/nodejs/redhat/roles",
23 | "port": 80,
24 | "destinations": ["node-js"]
25 | }
26 | ]
27 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/php-agent/docker-php-linux2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "doc-php-l2",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "wordpress",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/php/docker-php/redhat/roles",
23 | "port": 80,
24 | "destinations": ["doc-php-l2"]
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/php-agent/php-apache-fpm-wordpress-linux2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "php-a-f-w-l2",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "wordpress",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/php/apache-fpm-wordpress/redhat/roles",
23 | "port": 80,
24 | "destinations": [
25 | "php-a-f-w-l2"
26 | ]
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/php-agent/php-apache-fpm-wordpress-ubuntu18.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "php-a-f-w-u18",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-bionic-18.04-amd64-pro-server-????????",
15 | "user_name": "ubuntu"
16 | }],
17 |
18 | "services": [
19 | {
20 | "id": "wordpress",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/php/apache-fpm-wordpress/debian/roles",
23 | "port": 80,
24 | "destinations": ["php-a-f-w-u18"]
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/php-agent/php-apache-wordpress-linux2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "php-a-w-l2",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "wordpress",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/php/apache-wordpress/redhat/roles",
23 | "port": 80,
24 | "destinations": [
25 | "php-a-w-l2"
26 | ]
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/php-agent/php-apache-wordpress-ubuntu18.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "php-a-w-u18",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-bionic-18.04-amd64-pro-server-????????",
15 | "user_name": "ubuntu"
16 | }],
17 |
18 | "services": [
19 | {
20 | "id": "wordpress",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/php/apache-wordpress/debian/roles",
23 | "port": 80,
24 | "destinations": ["php-a-w-u18"]
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/php-agent/php-nginx-fpm-wordpress-linux2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "php-n-f-w-l2",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "wordpress",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/php/nginx-fpm-wordpress/redhat/roles",
23 | "port": 80,
24 | "destinations": [
25 | "php-n-f-w-l2"
26 | ]
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/php-agent/php-nginx-fpm-wordpress-ubuntu18.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "php-n-f-w-u18",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-bionic-18.04-amd64-pro-server-????????",
15 | "user_name": "ubuntu"
16 | }],
17 |
18 | "services": [
19 | {
20 | "id": "wordpress",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/php/nginx-fpm-wordpress/debian/roles",
23 | "port": 80,
24 | "destinations": ["php-n-f-w-u18"]
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/apm/python/python-al2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "pythonHost",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "al2023-ami-2023.?.????????.?-kernel-?.?-x86_64",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "pythonApp",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/python/install/rhel/roles/",
23 | "port": 80,
24 | "destinations": ["pythonHost"]
25 | }
26 | ]
27 | }
--------------------------------------------------------------------------------
/test/manual/definitions/apm/ruby/rubyonrails.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "ruby-on-rails-linux2",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t2.medium",
14 | "ami_name": "al2023-ami-2023.4.20240416.0-kernel-6.1-x86_64",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "rubyrails",
21 | "source_repository": "https://github.com/newrelic/open-install-library.git",
22 | "deploy_script_path": "test/deploy/linux/ruby/ruby-on-rails/redhat/roles",
23 | "port": 80,
24 | "destinations": ["ruby-on-rails-linux2"]
25 | }
26 | ]
27 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/awslinux-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "ami_name": "amzn2-ami-hvm-????.??.*-x86_64-gp2",
14 | "type": "ec2",
15 | "size": "t3.nano"
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/awslinux2-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infralinux2",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano"
14 | }]
15 | }
16 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/awslinuxarm64-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-arm64-gp2",
13 | "type": "ec2",
14 | "size": "t4g.nano"
15 | }]
16 | }
17 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/centos7-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infracentos7",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "CentOS-7-????-????????_?.x86_64-*",
15 | "user_name": "centos"
16 | }]
17 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/centos8-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infracentos8",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "CentOS Stream 8 x86_64 ????????",
15 | "user_name": "centos"
16 | }]
17 | }
18 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/centos8arm64-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t4g.small",
14 | "ami_name": "ProComputers CentOS-8-stream-arm64-Minimal-8GiB-HVM-????????_*",
15 | "user_name": "centos"
16 | }]
17 | }
18 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/debian10-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infradebian10",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }]
17 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/debian10arm64-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t4g.nano",
14 | "ami_name": "debian-10-arm64-202?????-*",
15 | "user_name": "admin"
16 | }]
17 | }
18 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/redhat7-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infraredhat7",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "RHEL-7.?_HVM_GA-????????-x86_64-?-Hourly2-GP2"
15 | }]
16 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/redhat8-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infraredhat8",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "RHEL_HA-8.8.?_HVM-????????-x86_64-????-Hourly2-GP3"
15 | }]
16 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/redhat8arm64-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t4g.micro",
14 | "ami_name": "RHEL-8.*_HVM-????????-arm64-*-Hourly2-GP2"
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/redhat9-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infraredhat9",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "RHEL_HA-9.0.?_HVM-????????-x86_64-?-Hourly2-GP2"
15 | }]
16 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/suse124-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infrasuse124",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "suse-sles-12-sp4-*"
15 | }]
16 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/suse125-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infrasuse125",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "suse-sles-12-sp5-v????????-hvm-*"
15 | }]
16 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/suse154-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "infrasuse154",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "suse-sles-15-sp4-chost-byos-v????????-hvm-ssd-x86_64"
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/ubuntu14-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infraubuntu14",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "SupportedImages ubuntu-trusty-14.04-amd64-server*",
15 | "user_name": "ubuntu"
16 | }]
17 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/ubuntu16-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "infraubuntu16",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-xenial-16.04-amd64-pro-server-????????",
15 | "user_name": "ubuntu"
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/ubuntu18-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infraubuntu18",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t2.micro",
14 | "ami_name": "ubuntu-pro-server/images/hvm-ssd/ubuntu-bionic-18.04-amd64-pro-server-????????",
15 | "user_name": "ubuntu"
16 | }]
17 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/ubuntu20-infra-crowdstrike.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "infracsubuntu20",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
15 | "user_name": "ubuntu"
16 | }
17 | ],
18 | "instrumentations": {
19 | "resources": [
20 | {
21 | "id": "crowdstrike",
22 | "resource_ids": [
23 | "infracsubuntu20"
24 | ],
25 | "source_repository": "https://github.com/newrelic/open-install-library",
26 | "deploy_script_path": "test/deploy/crowdstrike/roles"
27 | }
28 | ]
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/ubuntu20-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "infraubuntu20",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-????????",
15 | "user_name": "ubuntu"
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/ubuntu20arm64-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t4g.nano",
14 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-????????-*",
15 | "user_name": "ubuntu"
16 | }]
17 | }
18 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/ubuntu20x10arm64-infra.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t4g.nano",
14 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-groovy-20.10-arm64-server-????????",
15 | "user_name": "ubuntu"
16 | }]
17 | }
18 |
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/windows2016.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infrawindows2016",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "is_windows": true,
15 | "ami_name": "Windows_Server-2016-English-Full-HyperV-*",
16 | "user_name": "Administrator"
17 | }]
18 | }
--------------------------------------------------------------------------------
/test/manual/definitions/infra-agent/windows2019.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infrawindows2019",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "is_windows": true,
15 | "ami_name": "Windows_Server-2019-English-Full-HyperV-*",
16 | "user_name": "Administrator"
17 | }]
18 | }
--------------------------------------------------------------------------------
/test/manual/definitions/kubernetes/minikube-empty.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "minikctl1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.xlarge",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2"
15 | }
16 | ],
17 | "services": [
18 | {
19 | "id": "minik1",
20 | "source_repository": "https://github.com/newrelic/open-install-library.git",
21 | "deploy_script_path": "test/deploy/linux/kubernetes/minikube/roles",
22 | "port": 9999,
23 | "destinations": [
24 | "minikctl1"
25 | ]
26 | }
27 | ]
28 | }
--------------------------------------------------------------------------------
/test/manual/definitions/logging/amazonlinux2-arm64-logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "logfwd-al2-arm64",
11 | "provider": "aws",
12 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-arm64-gp2",
13 | "type": "ec2",
14 | "size": "t4g.nano"
15 | }]
16 | }
17 |
--------------------------------------------------------------------------------
/test/manual/definitions/logging/centos8-arm64-logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "logfwd-centos8-arm64",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t4g.small",
14 | "ami_name": "ProComputers CentOS-8-stream-arm64-Minimal-8GiB-HVM-????????_*",
15 | "user_name": "centos"
16 | }]
17 | }
18 |
--------------------------------------------------------------------------------
/test/manual/definitions/logging/debian10-arm64-logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "logfwd-deb10-arm64",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t4g.nano",
14 | "ami_name": "debian-10-arm64-202?????-*",
15 | "user_name": "admin"
16 | }]
17 | }
18 |
--------------------------------------------------------------------------------
/test/manual/definitions/logging/ubuntu20-arm64-logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "logfwd-focal-arm64",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t4g.nano",
14 | "ami_name": "ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-????????-*",
15 | "user_name": "ubuntu"
16 | }]
17 | }
18 |
--------------------------------------------------------------------------------
/test/manual/definitions/logging/w19-logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "infrawindows2019",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "is_windows": true,
15 | "ami_name": "Windows_Server-2019-English-Full-HyperV-*",
16 | "user_name": "Administrator"
17 | }]
18 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi-auto-config/linux/mongodb-debian.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "mongodb1",
21 | "destinations": [
22 | "host1"
23 | ],
24 | "source_repository": "https://github.com/newrelic/open-install-library.git",
25 | "deploy_script_path": "test/deploy/linux/mongodb/install/debian/roles",
26 | "port": 9999,
27 | "params": {
28 | "create_newrelic_user": true
29 | }
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi-auto-config/linux/mongodb-rhel.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "mongo1",
21 | "destinations": [
22 | "host1"
23 | ],
24 | "source_repository": "https://github.com/newrelic/open-install-library.git",
25 | "deploy_script_path": "test/deploy/linux/mongodb/install/rhel/roles",
26 | "port": 9999,
27 | "params": {
28 | "create_newrelic_user": true
29 | }
30 | }
31 | ]
32 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi-auto-config/linux/postgres-rhel.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2"
15 | }
16 | ],
17 | "services": [
18 | {
19 | "id": "postgres1",
20 | "destinations": [
21 | "host1"
22 | ],
23 | "source_repository": "https://github.com/newrelic/open-install-library.git",
24 | "deploy_script_path": "test/deploy/linux/postgres/install/rhel/roles",
25 | "port": 80,
26 | "params": {
27 | "create_newrelic_user": true
28 | }
29 | }
30 | ]
31 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi-auto-config/windows/ms-sql-server2019Standard-auto.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.xlarge",
14 | "is_windows": true,
15 | "ami_name": "Windows_Server-2019-English-Full-SQL_2019_Standard-*",
16 | "user_name": "Administrator"
17 | }],
18 |
19 | "services": [{
20 | "id": "sql1",
21 | "destinations": ["host1"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/windows/ms-sql/create-newrelic/roles",
24 | "port": 9999,
25 | "params":{
26 | "create_newrelic_user": true
27 | }
28 | }]
29 | }
30 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/apache-cassandra-debian10.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "apachecassdebian10",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "apache1",
21 | "destinations": ["apachecassdebian10"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/linux/apache/install/debian/roles",
24 | "port": 80
25 | },
26 | {
27 | "id": "cassandra1",
28 | "destinations": ["apachecassdebian10"],
29 | "source_repository": "https://github.com/newrelic/open-install-library.git",
30 | "deploy_script_path": "/test/deploy/linux/cassandra/install/debian/roles",
31 | "port": 9042
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/apache-cassandra-linux2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "apachecasslinux2",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "apache1",
21 | "destinations": ["apachecasslinux2"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/linux/apache/install/rhel/roles",
24 | "port": 80
25 | },
26 | {
27 | "id": "cassandra1",
28 | "destinations": ["apachecasslinux2"],
29 | "source_repository": "https://github.com/newrelic/open-install-library.git",
30 | "deploy_script_path": "/test/deploy/linux/cassandra/install/rhel/roles",
31 | "port": 9042
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/apache-tomcat.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "tomcatlinux2",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small"
14 | }],
15 |
16 | "services": [
17 | {
18 | "id": "tomcat1",
19 | "source_repository": "https://github.com/newrelic/demo-javatron.git",
20 | "deploy_script_path": "deploy/linux/roles",
21 | "port": 80,
22 | "destinations": ["tomcatlinux2"],
23 | "params": {
24 | "delay_start_ms": 5000
25 | }
26 | }
27 | ]
28 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/docker-linux2.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2"
15 | }
16 | ],
17 | "services": [
18 | {
19 | "id": "docker1",
20 | "destinations": [
21 | "host1"
22 | ],
23 | "source_repository": "https://github.com/newrelic/open-install-library.git",
24 | "deploy_script_path": "test/deploy/linux/docker/install/roles",
25 | "port": 9999
26 | }
27 | ]
28 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/kafka-centos8.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "kafkacentos8",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.medium",
14 | "ami_name": "Kafka-CentOS-8-*",
15 | "user_name": "centos"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "startkafk",
21 | "destinations": ["kafkacentos8"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/linux/kafka/install/roles",
24 | "port": 9999
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/kafka-ubuntu20.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "kafkaubuntu20",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.medium",
14 | "ami_name": "Kafka-Ubuntu-20-*",
15 | "user_name": "ubuntu"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "startkafk",
21 | "destinations": ["kafkaubuntu20"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/linux/kafka/install/roles",
24 | "port": 9999
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/memcached-debian.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "memcached1",
21 | "destinations": ["host1"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/linux/memcached/install/debian/roles",
24 | "port": 9999
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/memcached-rhel.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "memcached1",
21 | "destinations": [
22 | "host1"
23 | ],
24 | "source_repository": "https://github.com/newrelic/open-install-library.git",
25 | "deploy_script_path": "test/deploy/linux/memcached/install/rhel/roles",
26 | "port": 9999
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/mongodb-debian.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "mongodb1",
21 | "destinations": [
22 | "host1"
23 | ],
24 | "source_repository": "https://github.com/newrelic/open-install-library.git",
25 | "deploy_script_path": "test/deploy/linux/mongodb/install/debian/roles",
26 | "port": 9999
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/mongodb-rhel.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "mongo1",
21 | "destinations": [
22 | "host1"
23 | ],
24 | "source_repository": "https://github.com/newrelic/open-install-library.git",
25 | "deploy_script_path": "test/deploy/linux/mongodb/install/rhel/roles",
26 | "port": 9999
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/oracle-enterprise-linux.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "oracleLinux",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.medium",
14 | "ami_name": "cg-12e*",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 |
19 | "services": [
20 | {
21 | "id": "goOracle",
22 | "destinations": ["oracleLinux"],
23 | "source_repository": "https://github.com/newrelic/open-install-library.git",
24 | "deploy_script_path": "test/deploy/linux/oracle/install/linux/roles",
25 | "port": 9999
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/oracle-standard-centos.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "oracleCentos",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.medium",
14 | "ami_name": "Oracle Database 12.1 Standard Edition - CentOS 7*",
15 | "user_name": "clckwrk"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "goOracle",
21 | "destinations": ["oracleCentos"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/linux/oracle/install/centos/roles",
24 | "port": 9999
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/postgres-debian.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "postgres1",
21 | "destinations": ["host1"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/linux/postgres/install/debian/roles",
24 | "port": 9999
25 | }
26 | ]
27 | }
28 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/postgres-rhel.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "postgres1",
21 | "destinations": [
22 | "host1"
23 | ],
24 | "source_repository": "https://github.com/newrelic/open-install-library.git",
25 | "deploy_script_path": "test/deploy/linux/postgres/install/rhel/roles",
26 | "port": 80
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/rabbitmq-debian.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.micro",
14 | "ami_name": "debian-10-amd64-202?????-*",
15 | "user_name": "admin"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "rabbitmq1",
21 | "destinations": [
22 | "host1"
23 | ],
24 | "source_repository": "https://github.com/newrelic/open-install-library.git",
25 | "deploy_script_path": "test/deploy/linux/rabbitmq/install/debian/roles",
26 | "port": 9999
27 | }
28 | ]
29 | }
30 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/rabbitmq-rhel.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.small",
14 | "ami_name": "RHEL-9.0.0_HVM-2023????-x86_64-*",
15 | "user_name": "ec2-user"
16 | }
17 | ],
18 | "services": [
19 | {
20 | "id": "mongo1",
21 | "destinations": [
22 | "host1"
23 | ],
24 | "source_repository": "https://github.com/newrelic/open-install-library.git",
25 | "deploy_script_path": "test/deploy/linux/rabbitmq/install/rhel/roles",
26 | "port": 9999
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/redis-debian.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "host1",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.small",
15 | "ami_name": "debian-10-amd64-202?????-*",
16 | "user_name": "admin"
17 | }
18 | ],
19 |
20 | "services": [
21 | {
22 | "id": "redis1",
23 | "destinations": ["host1"],
24 | "source_repository": "https://github.com/newrelic/open-install-library.git",
25 | "deploy_script_path": "test/deploy/linux/redis/install/debian/roles",
26 | "port": 6379
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/linux/redis-rhel.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 | "resources": [
9 | {
10 | "id": "host1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.nano",
14 | "ami_name": "amzn2-ami-hvm-2.0.????????.?-x86_64-gp2"
15 | }
16 | ],
17 | "services": [
18 | {
19 | "id": "redis1",
20 | "destinations": [
21 | "host1"
22 | ],
23 | "source_repository": "https://github.com/newrelic/open-install-library.git",
24 | "deploy_script_path": "test/deploy/linux/redis/install/rhel/roles",
25 | "port": 6379
26 | }
27 | ]
28 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/windows/elasticsearch-ch.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "elasticsearchch",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.medium",
15 | "is_windows": true,
16 | "ami_name": "Windows_Server-2019-English-Full-Base-*",
17 | "user_name": "Administrator"
18 | }
19 | ],
20 |
21 | "services": [
22 | {
23 | "id": "es",
24 | "destinations": ["elasticsearchch"],
25 | "source_repository": "https://github.com/newrelic/open-install-library.git",
26 | "deploy_script_path": "test/deploy/windows/elasticsearch/install/roles",
27 | "port": 9999
28 | }
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/windows/kafka-server2019.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "kafkawindows2019",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.medium",
15 | "is_windows": true,
16 | "ami_name": "newrelic-install-winserver2019-kafka2",
17 | "user_name": "Administrator"
18 | }
19 | ],
20 |
21 | "services": [
22 | {
23 | "id": "startkafk",
24 | "destinations": ["kafkawindows2019"],
25 | "source_repository": "https://github.com/newrelic/open-install-library.git",
26 | "deploy_script_path": "test/deploy/windows/kafka/install/roles",
27 | "port": 9999
28 | }
29 | ]
30 | }
31 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/windows/mongodb-server2016.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "mongodbwindows2016",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.medium",
15 | "is_windows": true,
16 | "ami_name": "1- Click Ready Secured MongoDB on Windows 2016-*",
17 | "user_name": "Administrator"
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/windows/ms-redis.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "redis1",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.xlarge",
14 | "is_windows": true,
15 | "ami_name": "Windows_Server-2019-English-Full-SQL_2019_Standard-*",
16 | "user_name": "Administrator"
17 | }],
18 |
19 | "services": [{
20 | "id": "sql1",
21 | "destinations": ["redis1"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/windows/redis/install/roles",
24 | "port": 9999
25 | }]
26 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/windows/ms-sql-server2019.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [{
10 | "id": "mssqlwindows2019",
11 | "provider": "aws",
12 | "type": "ec2",
13 | "size": "t3.xlarge",
14 | "is_windows": true,
15 | "ami_name": "Windows_Server-2019-English-Full-SQL_2019_Standard-*",
16 | "user_name": "Administrator"
17 | }],
18 |
19 | "services": [{
20 | "id": "sql1",
21 | "destinations": ["mssqlwindows2019"],
22 | "source_repository": "https://github.com/newrelic/open-install-library.git",
23 | "deploy_script_path": "test/deploy/windows/ms-sql/create-newrelic/roles",
24 | "port": 9999
25 | }]
26 | }
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/windows/mysql-server2019.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "mysqlwindows2019",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.medium",
15 | "is_windows": true,
16 | "ami_name": "cg-c46fc9a0-9209-4337-a308-b01b19993bf5-????-??-??*",
17 | "user_name": "Administrator"
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/windows/postgresql-server2016.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "postgresqlwin2016",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.medium",
15 | "is_windows": true,
16 | "ami_name": "newrelic-install-winserver2016-postgreSQL*",
17 | "user_name": "Administrator"
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/test/manual/definitions/ohi/windows/rabbitMQ-server2016.json:
--------------------------------------------------------------------------------
1 | {
2 | "global_tags": {
3 | "owning_team": "virtuoso",
4 | "Environment": "development",
5 | "Department": "product",
6 | "Product": "virtuoso"
7 | },
8 |
9 | "resources": [
10 | {
11 | "id": "rabbitmqwindows2016",
12 | "provider": "aws",
13 | "type": "ec2",
14 | "size": "t3.medium",
15 | "is_windows": true,
16 | "ami_name": "RabbitMQ2016-????.??.??.*",
17 | "user_name": "Administrator"
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/validator/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "recipe-validator",
3 | "description": "Validate recipe definitions",
4 | "version": "1.0.0",
5 | "scripts": {
6 | "ajv:compile": "ajv compile -s schema-v1.json",
7 | "ajv:validate": "ajv validate --errors=json -s schema-v1.json -d '../examples/sample-linux-infrastructure.yaml'",
8 | "ajv:validate-all": "ajv validate --errors=json -s schema-v1.json -d '../recipes/**/*.{yml,yaml}'",
9 | "check": "npm run ajv:validate-all"
10 | },
11 | "dependencies": {
12 | "ajv-cli": "^5.0.0"
13 | },
14 | "overrides": {
15 | "ajv-cli": {
16 | "fast-json-patch": "^3.1.1"
17 | }
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------