Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
19
box/provisioning/roles/franklinkim.newrelic/tasks/config.yml
Normal file
19
box/provisioning/roles/franklinkim.newrelic/tasks/config.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
|
||||
- name: Configuring module
|
||||
template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: "/{{ item }}"
|
||||
owner: "{{ newrelic_user }}"
|
||||
group: "{{ newrelic_group }}"
|
||||
mode: "0640"
|
||||
notify: restart newrelic
|
||||
with_items:
|
||||
- "etc/newrelic/nrsysmond.cfg"
|
||||
|
||||
- name: Configuring user groups
|
||||
user:
|
||||
name: "{{ newrelic_user }}"
|
||||
groups: "{{ newrelic_groups|join(',') }}"
|
||||
append: yes
|
||||
when: not newrelic_disable_docker
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
- include: install_debian.yml
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- include: install_redhat.yml
|
||||
when: ansible_os_family == 'RedHat'
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
|
||||
- name: Installing dependencies
|
||||
apt:
|
||||
pkg: apt-transport-https
|
||||
state: present
|
||||
|
||||
- name: Adding APT key
|
||||
apt_key:
|
||||
id: 548C16BF
|
||||
url: https://download.newrelic.com/548C16BF.gpg
|
||||
|
||||
- name: Add APT repository
|
||||
apt_repository:
|
||||
repo: "deb http://apt.newrelic.com/debian/ newrelic non-free"
|
||||
update_cache: yes
|
||||
|
||||
- name: Installing packages
|
||||
apt:
|
||||
pkg: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
- newrelic-sysmond
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
|
||||
- name: Installing dependencies
|
||||
yum:
|
||||
name: http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
|
||||
state: present
|
||||
|
||||
- name: Installing packages
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
- newrelic-sysmond
|
28
box/provisioning/roles/franklinkim.newrelic/tasks/main.yml
Normal file
28
box/provisioning/roles/franklinkim.newrelic/tasks/main.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
|
||||
- name: Checking for key
|
||||
fail:
|
||||
msg: "newrelic_license_key has not been defined"
|
||||
when: newrelic_license_key|default(False) == False
|
||||
|
||||
- include: install.yml
|
||||
tags:
|
||||
- monitoring
|
||||
- newrelic
|
||||
- install
|
||||
- newrelic-install
|
||||
|
||||
- include: config.yml
|
||||
tags:
|
||||
- monitoring
|
||||
- newrelic
|
||||
- config
|
||||
- newrelic-config
|
||||
|
||||
- include: service.yml
|
||||
tags:
|
||||
- monitoring
|
||||
- newrelic
|
||||
- service
|
||||
- newrelic-service
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
- name: Configuring service
|
||||
service:
|
||||
name: newrelic-sysmond
|
||||
state: "{{ newrelic_service_state }}"
|
||||
enabled: "{{ newrelic_service_enabled }}"
|
Loading…
Add table
Add a link
Reference in a new issue