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
41
box/provisioning/roles/geerlingguy.pimpmylog/.travis.yml
Normal file
41
box/provisioning/roles/geerlingguy.pimpmylog/.travis.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
sudo: required
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
env:
|
||||
- SITE=test.yml
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install curl
|
||||
|
||||
install:
|
||||
# Install Ansible.
|
||||
- pip install ansible
|
||||
|
||||
# Add ansible.cfg to pick up roles path.
|
||||
- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
|
||||
|
||||
# Install dependencies.
|
||||
- ansible-galaxy install geerlingguy.apache geerlingguy.php
|
||||
|
||||
script:
|
||||
# Check the role/playbook's syntax.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
|
||||
|
||||
# Run the role/playbook with ansible-playbook.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
|
||||
|
||||
# Run the role/playbook again, checking to make sure it's idempotent.
|
||||
- >
|
||||
ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo
|
||||
| grep -q 'changed=0.*failed=0'
|
||||
&& (echo 'Idempotence test: pass' && exit 0)
|
||||
|| (echo 'Idempotence test: fail' && exit 1)
|
||||
|
||||
# Check if Pimp my Log is reachable.
|
||||
- curl http://127.0.0.1/pimpmylog/
|
||||
|
||||
notifications:
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
49
box/provisioning/roles/geerlingguy.pimpmylog/README.md
Normal file
49
box/provisioning/roles/geerlingguy.pimpmylog/README.md
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Ansible Role: Pimp My Log
|
||||
|
||||
[](https://travis-ci.org/geerlingguy/ansible-role-pimpmylog)
|
||||
|
||||
Installs [Pimp my Log](http://pimpmylog.com/).
|
||||
|
||||
## Requirements
|
||||
|
||||
Requires PHP to be installed on the server, and a web server like Apache, Nginx, IIS. You can get Pimp my Log set up pretty quickly with this role in tandem with `geerlingguy.apache` and `geerlingguy.php` available on Ansible Galaxy.
|
||||
|
||||
## Role Variables
|
||||
|
||||
Available variables are listed below, along with default values (see `defaults/main.yml`):
|
||||
|
||||
pimpmylog_install_dir: /var/www/pimpmylog
|
||||
|
||||
The location where Pimp my Log will be installed. You should configure a virtual host or server entry pointing to this directory so you can access the interface. Otherwise, you could choose a location that's within an existing docroot, e.g. the default docroot `/var/www/html/pimpmylog`, and access Pimp my Log at `http://localhost/pimpmylog/`.
|
||||
|
||||
pimpmylog_repo: https://github.com/potsky/PimpMyLog.git
|
||||
|
||||
The git repository URL from which Pimp my Log will be cloned.
|
||||
|
||||
pimpmylog_version: master
|
||||
|
||||
The version of Pimp my Log to install. Can be any valid tag, branch, or `HEAD`.
|
||||
|
||||
pimpmylog_grant_all_privs: no
|
||||
|
||||
The setup of Pimp my Log allows for auto-configuration if the installation directory has `777` privileges, but this is an insecure way to install Pimp my Log. If you're installing on a local development environment, this is relatively harmless to set to `yes` to ease in installation... but if you're running this on a production or publicly-available server, don't even _think_ about changing this value!
|
||||
|
||||
## Dependencies
|
||||
|
||||
None.
|
||||
|
||||
## Example Playbook
|
||||
|
||||
- hosts: webservers
|
||||
roles:
|
||||
- { role: geerlingguy.apache }
|
||||
- { role: geerlingguy.php }
|
||||
- { role: geerlingguy.pimpmylog }
|
||||
|
||||
## License
|
||||
|
||||
MIT / BSD
|
||||
|
||||
## Author Information
|
||||
|
||||
This role was created in 2015 by [Jeff Geerling](http://jeffgeerling.com/), author of [Ansible for DevOps](http://ansiblefordevops.com/).
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
pimpmylog_install_dir: /var/www/pimpmylog
|
||||
pimpmylog_repo: https://github.com/potsky/PimpMyLog.git
|
||||
pimpmylog_version: master
|
||||
pimpmylog_grant_all_privs: no
|
23
box/provisioning/roles/geerlingguy.pimpmylog/meta/main.yml
Normal file
23
box/provisioning/roles/geerlingguy.pimpmylog/meta/main.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
dependencies: []
|
||||
|
||||
galaxy_info:
|
||||
author: geerlingguy
|
||||
description: Pimp my Log installation for Linux
|
||||
company: "Midwestern Mac, LLC"
|
||||
license: "license (BSD, MIT)"
|
||||
min_ansible_version: 1.8
|
||||
platforms:
|
||||
- name: EL
|
||||
versions:
|
||||
- all
|
||||
- name: Debian
|
||||
versions:
|
||||
- all
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- all
|
||||
galaxy_tags:
|
||||
- development
|
||||
- web
|
||||
- server
|
14
box/provisioning/roles/geerlingguy.pimpmylog/tasks/main.yml
Normal file
14
box/provisioning/roles/geerlingguy.pimpmylog/tasks/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: Clone Pimp my Log.
|
||||
git:
|
||||
dest: "{{ pimpmylog_install_dir }}"
|
||||
repo: "{{ pimpmylog_repo }}"
|
||||
version: "{{ pimpmylog_version }}"
|
||||
accept_hostkey: yes
|
||||
|
||||
- name: Grant all privileges on the Pimp my Log directory.
|
||||
file:
|
||||
path: "{{ pimpmylog_install_dir }}"
|
||||
state: directory
|
||||
mode: 0777
|
||||
when: pimpmylog_grant_all_privs
|
|
@ -0,0 +1 @@
|
|||
localhost
|
11
box/provisioning/roles/geerlingguy.pimpmylog/tests/test.yml
Normal file
11
box/provisioning/roles/geerlingguy.pimpmylog/tests/test.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
|
||||
vars:
|
||||
pimpmylog_grant_all_privs: yes
|
||||
|
||||
roles:
|
||||
- geerlingguy.apache
|
||||
- geerlingguy.php
|
||||
- ansible-role-pimpmylog
|
Loading…
Add table
Add a link
Reference in a new issue