diff --git a/newrelic-php/.kitchen.yml b/newrelic-php/.kitchen.yml new file mode 100644 index 00000000..b21cc3db --- /dev/null +++ b/newrelic-php/.kitchen.yml @@ -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 diff --git a/newrelic-php/README.md b/newrelic-php/README.md new file mode 100644 index 00000000..36903349 --- /dev/null +++ b/newrelic-php/README.md @@ -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). diff --git a/newrelic-php/defaults/main.yml b/newrelic-php/defaults/main.yml index 8d498aab..b568b78e 100644 --- a/newrelic-php/defaults/main.yml +++ b/newrelic-php/defaults/main.yml @@ -1,3 +1,3 @@ --- newrelic_license: "" -newrelic_app_name: "" +newrelic_appname: "" diff --git a/newrelic-php/meta/main.yml b/newrelic-php/meta/main.yml new file mode 100644 index 00000000..90f90d1b --- /dev/null +++ b/newrelic-php/meta/main.yml @@ -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. diff --git a/newrelic-php/tasks/main.yml b/newrelic-php/tasks/main.yml index aa9a2690..eb8928ea 100644 --- a/newrelic-php/tasks/main.yml +++ b/newrelic-php/tasks/main.yml @@ -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: diff --git a/newrelic-php/tests/test.yml b/newrelic-php/tests/test.yml new file mode 100644 index 00000000..c85b0f1c --- /dev/null +++ b/newrelic-php/tests/test.yml @@ -0,0 +1,4 @@ +--- +- hosts: test-kitchen + roles: + - role: newrelic-php diff --git a/newrelic-sources/.kitchen.yml b/newrelic-sources/.kitchen.yml new file mode 100644 index 00000000..b21cc3db --- /dev/null +++ b/newrelic-sources/.kitchen.yml @@ -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 diff --git a/newrelic-sources/README.md b/newrelic-sources/README.md new file mode 100644 index 00000000..2b9ddb9d --- /dev/null +++ b/newrelic-sources/README.md @@ -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. diff --git a/newrelic-sources/meta/main.yml b/newrelic-sources/meta/main.yml new file mode 100644 index 00000000..19506b43 --- /dev/null +++ b/newrelic-sources/meta/main.yml @@ -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. diff --git a/newrelic-sources/tests/test.yml b/newrelic-sources/tests/test.yml new file mode 100644 index 00000000..3813409e --- /dev/null +++ b/newrelic-sources/tests/test.yml @@ -0,0 +1,4 @@ +--- +- hosts: test-kitchen + roles: + - role: newrelic-sources diff --git a/newrelic-sysmond/.kitchen.yml b/newrelic-sysmond/.kitchen.yml new file mode 100644 index 00000000..b21cc3db --- /dev/null +++ b/newrelic-sysmond/.kitchen.yml @@ -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 diff --git a/newrelic-sysmond/README.md b/newrelic-sysmond/README.md new file mode 100644 index 00000000..c63e4d05 --- /dev/null +++ b/newrelic-sysmond/README.md @@ -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). diff --git a/newrelic-sysmond/meta/main.yml b/newrelic-sysmond/meta/main.yml new file mode 100644 index 00000000..cd47e809 --- /dev/null +++ b/newrelic-sysmond/meta/main.yml @@ -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. diff --git a/newrelic-sysmond/tests/test.yml b/newrelic-sysmond/tests/test.yml new file mode 100644 index 00000000..69165293 --- /dev/null +++ b/newrelic-sysmond/tests/test.yml @@ -0,0 +1,4 @@ +--- +- hosts: test-kitchen + roles: + - role: newrelic-sysmond