forked from evolix/ansible-roles
Add meta/README/tests for newrelic roles
This commit is contained in:
parent
7698b6ad9a
commit
9dd7a62492
28
newrelic-php/.kitchen.yml
Normal file
28
newrelic-php/.kitchen.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
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
|
14
newrelic-php/README.md
Normal file
14
newrelic-php/README.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
# 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,3 +1,3 @@
|
|||
---
|
||||
newrelic_license: ""
|
||||
newrelic_app_name: ""
|
||||
newrelic_appname: ""
|
||||
|
|
19
newrelic-php/meta/main.yml
Normal file
19
newrelic-php/meta/main.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
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.
|
|
@ -6,9 +6,9 @@
|
|||
debconf:
|
||||
name: newrelic-php5
|
||||
question: "newrelic-php5/application-name"
|
||||
value: "{{ newrelic_app_name }}"
|
||||
value: "{{ newrelic_appname }}"
|
||||
vtype: string
|
||||
when: newrelic_app_name != ""
|
||||
when: newrelic_appname != ""
|
||||
|
||||
- name: Pre-seed package configuration with license
|
||||
debconf:
|
||||
|
|
4
newrelic-php/tests/test.yml
Normal file
4
newrelic-php/tests/test.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- hosts: test-kitchen
|
||||
roles:
|
||||
- role: newrelic-php
|
28
newrelic-sources/.kitchen.yml
Normal file
28
newrelic-sources/.kitchen.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
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
|
9
newrelic-sources/README.md
Normal file
9
newrelic-sources/README.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# 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.
|
19
newrelic-sources/meta/main.yml
Normal file
19
newrelic-sources/meta/main.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
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.
|
4
newrelic-sources/tests/test.yml
Normal file
4
newrelic-sources/tests/test.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- hosts: test-kitchen
|
||||
roles:
|
||||
- role: newrelic-sources
|
28
newrelic-sysmond/.kitchen.yml
Normal file
28
newrelic-sysmond/.kitchen.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
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
|
13
newrelic-sysmond/README.md
Normal file
13
newrelic-sysmond/README.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# 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).
|
19
newrelic-sysmond/meta/main.yml
Normal file
19
newrelic-sysmond/meta/main.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
galaxy_info:
|
||||
author: Evolix
|
||||
description: Installation of NewRelic sysmond.
|
||||
|
||||
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.
|
4
newrelic-sysmond/tests/test.yml
Normal file
4
newrelic-sysmond/tests/test.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- hosts: test-kitchen
|
||||
roles:
|
||||
- role: newrelic-sysmond
|
Loading…
Reference in a new issue