Newrelic: merge roles
parent
9caf04e01f
commit
13b4fbb6bb
@ -1,14 +0,0 @@
|
||||
# newrelic-php
|
||||
|
||||
Installation of NewRelic PHP agent.
|
||||
|
||||
## Tasks
|
||||
|
||||
Everything is in the `tasks/main.yml` file.
|
||||
|
||||
A license key and an application name can be provided to pre-configure the agent.
|
||||
|
||||
## Variables
|
||||
|
||||
* `newrelic_license`: license key (default: empty).
|
||||
* `newrelic_appname`: application name (default: empty).
|
@ -1,19 +0,0 @@
|
||||
galaxy_info:
|
||||
author: Evolix
|
||||
description: Installation of NewRelic PHP agent.
|
||||
|
||||
issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues
|
||||
|
||||
license: GPLv2
|
||||
|
||||
min_ansible_version: 2.2
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- jessie
|
||||
|
||||
dependencies: []
|
||||
# List your role dependencies here, one per line.
|
||||
# Be sure to remove the '[]' above if you add dependencies
|
||||
# to this list.
|
@ -1,28 +0,0 @@
|
||||
---
|
||||
driver:
|
||||
name: docker
|
||||
privileged: true
|
||||
use_sudo: false
|
||||
|
||||
provisioner:
|
||||
name: ansible_playbook
|
||||
hosts: test-kitchen
|
||||
roles_path: ../
|
||||
ansible_verbose: true
|
||||
require_ansible_source: false
|
||||
require_chef_for_busser: false
|
||||
idempotency_test: true
|
||||
|
||||
platforms:
|
||||
- name: debian
|
||||
driver_config:
|
||||
image: evolix/ansible:2.2.1
|
||||
|
||||
suites:
|
||||
- name: default
|
||||
provisioner:
|
||||
name: ansible_playbook
|
||||
playbook: ./tests/test.yml
|
||||
|
||||
transport:
|
||||
max_ssh_sessions: 6
|
@ -1,9 +0,0 @@
|
||||
# newrelic-sources
|
||||
|
||||
Installation of NewRelic repository for APT sources.
|
||||
|
||||
## Tasks
|
||||
|
||||
Everything is in the `tasks/main.yml` file.
|
||||
|
||||
NB : the repository key is store in the role and not fetched online, for performance reasons.
|
@ -1,19 +0,0 @@
|
||||
galaxy_info:
|
||||
author: Evolix
|
||||
description: Installation of NewRelic repository for APT sources.
|
||||
|
||||
issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues
|
||||
|
||||
license: GPLv2
|
||||
|
||||
min_ansible_version: 2.2
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- jessie
|
||||
|
||||
dependencies: []
|
||||
# List your role dependencies here, one per line.
|
||||
# Be sure to remove the '[]' above if you add dependencies
|
||||
# to this list.
|
@ -1,4 +0,0 @@
|
||||
---
|
||||
- hosts: test-kitchen
|
||||
roles:
|
||||
- role: newrelic-sources
|
@ -1,28 +0,0 @@
|
||||
---
|
||||
driver:
|
||||
name: docker
|
||||
privileged: true
|
||||
use_sudo: false
|
||||
|
||||
provisioner:
|
||||
name: ansible_playbook
|
||||
hosts: test-kitchen
|
||||
roles_path: ../
|
||||
ansible_verbose: true
|
||||
require_ansible_source: false
|
||||
require_chef_for_busser: false
|
||||
idempotency_test: true
|
||||
|
||||
platforms:
|
||||
- name: debian
|
||||
driver_config:
|
||||
image: evolix/ansible:2.2.1
|
||||
|
||||
suites:
|
||||
- name: default
|
||||
provisioner:
|
||||
name: ansible_playbook
|
||||
playbook: ./tests/test.yml
|
||||
|
||||
transport:
|
||||
max_ssh_sessions: 6
|
@ -1,13 +0,0 @@
|
||||
# newrelic-sysmond
|
||||
|
||||
Installation of NewRelic sysmond.
|
||||
|
||||
## Tasks
|
||||
|
||||
Everything is in the `tasks/main.yml` file.
|
||||
|
||||
if a license key is provided, the daemon is configured.
|
||||
|
||||
## Variables
|
||||
|
||||
* `newrelic_license`: license key (default: empty).
|
@ -1,2 +0,0 @@
|
||||
---
|
||||
newrelic_license: ""
|
@ -1,6 +0,0 @@
|
||||
---
|
||||
|
||||
- name: restart newrelic-sysmond
|
||||
systemd:
|
||||
name: newrelic-sysmond
|
||||
state: restarted
|
@ -1,4 +0,0 @@
|
||||
---
|
||||
- hosts: test-kitchen
|
||||
roles:
|
||||
- role: newrelic-sysmond
|
@ -0,0 +1,17 @@
|
||||
# newrelic-sources
|
||||
|
||||
Installation of NewRelic tools.
|
||||
|
||||
## Tasks
|
||||
|
||||
Everything is in the `tasks/main.yml` file.
|
||||
|
||||
NB : the repository key is store in the role and not fetched online, for performance reasons.
|
||||
|
||||
## Variables
|
||||
|
||||
* `newrelic_license`: license key (default: empty).
|
||||
* `newrelic_appname`: application name (default: empty).
|
||||
|
||||
* `newrelic_php` : install the php module (default: `False`)
|
||||
* `newrelic_sysmond` : install the sysmond agent (default: `True`)
|
@ -1,3 +1,7 @@
|
||||
---
|
||||
newrelic_sysmond: True
|
||||
|
||||
newrelic_php: False
|
||||
|
||||
newrelic_license: ""
|
||||
newrelic_appname: ""
|
@ -1,6 +1,6 @@
|
||||
galaxy_info:
|
||||
author: Evolix
|
||||
description: Installation of NewRelic sysmond.
|
||||
description: Installation of NewRelic tools.
|
||||
|
||||
issue_tracker_url: https://forge.evolix.org/projects/ansible-roles/issues
|
||||
|
@ -0,0 +1,9 @@
|
||||
---
|
||||
|
||||
- include: sources.yml
|
||||
|
||||
- include: php.yml
|
||||
when: newrelic_php
|
||||
|
||||
- include: sysmond.yml
|
||||
when: newrelic_sysmond
|
@ -1,6 +1,4 @@
|
||||
---
|
||||
- include_role:
|
||||
name: newrelic-sources
|
||||
|
||||
- name: Install system monitor daemon
|
||||
apt:
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
- hosts: test-kitchen
|
||||
roles:
|
||||
- role: newrelic-php
|
||||
- role: newrelic
|
Loading…
Reference in New Issue