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
box/provisioning/roles/geerlingguy.drupal-console
2
box/provisioning/roles/geerlingguy.drupal-console/.gitignore
vendored
Normal file
2
box/provisioning/roles/geerlingguy.drupal-console/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.retry
|
||||
tests/test.sh
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
services: docker
|
||||
|
||||
env:
|
||||
- distro: ubuntu1604
|
||||
playbook: test.yml
|
||||
- distro: ubuntu1604
|
||||
playbook: test-self-update.yml
|
||||
|
||||
script:
|
||||
# Configure test script so we can run extra tests after playbook is run.
|
||||
- export container_id=$(date +%s)
|
||||
- export cleanup=false
|
||||
|
||||
# Download test shim.
|
||||
- wget -O ${PWD}/tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/
|
||||
- chmod +x ${PWD}/tests/test.sh
|
||||
|
||||
# Run tests.
|
||||
- ${PWD}/tests/test.sh
|
||||
|
||||
# Ensure Drupal Console is installed and working.
|
||||
- 'docker exec --tty ${container_id} env TERM=xterm drupal list || true'
|
||||
|
||||
notifications:
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
20
box/provisioning/roles/geerlingguy.drupal-console/LICENSE
Normal file
20
box/provisioning/roles/geerlingguy.drupal-console/LICENSE
Normal file
|
@ -0,0 +1,20 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2017 Jeff Geerling
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
45
box/provisioning/roles/geerlingguy.drupal-console/README.md
Normal file
45
box/provisioning/roles/geerlingguy.drupal-console/README.md
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Ansible Role: Drupal Console
|
||||
|
||||
[](https://travis-ci.org/geerlingguy/ansible-role-drupal-console)
|
||||
|
||||
Installs [Drupal Console](http://drupalconsole.com/) on any Linux or UNIX system.
|
||||
|
||||
## Requirements
|
||||
|
||||
`php` (version 5.6+) should be installed and working.
|
||||
|
||||
## Role Variables
|
||||
|
||||
Available variables are listed below, along with default values (see `defaults/main.yml`):
|
||||
|
||||
drupal_console_path: /usr/local/bin/drupal
|
||||
|
||||
The path where Drupal Console will be installed and available to your system. Should be in your user's `$PATH` so you can use Drupal Console by entering `drupal` instead of the full path.
|
||||
|
||||
drupal_console_keep_updated: false
|
||||
|
||||
By default, this role not update Drupal Console when it is run again. If you'd like always update Drupal Console to the latest version when this role is run, switch this variable to `true`.
|
||||
|
||||
drupal_console_config: ~/.console
|
||||
|
||||
The path to the Drupal Console configuration file.
|
||||
|
||||
## Dependencies
|
||||
|
||||
- geerlingguy.php (Installs PHP).
|
||||
|
||||
## Example Playbook
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- role: geerlingguy.drupal-console
|
||||
|
||||
After the playbook runs, `drupal` will be placed in `/usr/local/bin/drupal` (this location is configurable), and will be accessible via normal system accounts.
|
||||
|
||||
## License
|
||||
|
||||
MIT / BSD
|
||||
|
||||
## Author Information
|
||||
|
||||
This role was created in 2015 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
drupal_console_path: /usr/local/bin/drupal
|
||||
drupal_console_keep_updated: false
|
||||
drupal_console_config: ~/.console
|
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
dependencies:
|
||||
- geerlingguy.php
|
||||
|
||||
galaxy_info:
|
||||
author: geerlingguy
|
||||
description: Drupal Console
|
||||
company: "Midwestern Mac, LLC"
|
||||
license: "license (BSD, MIT)"
|
||||
min_ansible_version: 1.8
|
||||
platforms:
|
||||
- name: EL
|
||||
versions:
|
||||
- all
|
||||
- name: GenericUNIX
|
||||
versions:
|
||||
- all
|
||||
- name: Fedora
|
||||
versions:
|
||||
- all
|
||||
- name: opensuse
|
||||
versions:
|
||||
- all
|
||||
- name: GenericBSD
|
||||
versions:
|
||||
- all
|
||||
- name: FreeBSD
|
||||
versions:
|
||||
- all
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- all
|
||||
- name: SLES
|
||||
versions:
|
||||
- all
|
||||
- name: GenericLinux
|
||||
versions:
|
||||
- all
|
||||
- name: Debian
|
||||
versions:
|
||||
- all
|
||||
galaxy_tags:
|
||||
- packaging
|
||||
- web
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: Install Drupal Console.
|
||||
get_url:
|
||||
url: https://drupalconsole.com/installer
|
||||
dest: "{{ drupal_console_path }}"
|
||||
|
||||
- name: Ensure Drupal Console is executable.
|
||||
file:
|
||||
path: "{{ drupal_console_path }}"
|
||||
mode: 0755
|
||||
|
||||
- name: Update Drupal Console to latest version (if configured).
|
||||
shell: >
|
||||
php {{ drupal_console_path }} self-update
|
||||
register: drupal_console_update
|
||||
changed_when: "'console has been updated' in drupal_console_update.stdout"
|
||||
when: drupal_console_keep_updated
|
|
@ -0,0 +1,11 @@
|
|||
# Ansible Role tests
|
||||
|
||||
To run the test playbook(s) in this directory:
|
||||
|
||||
1. Install and start Docker.
|
||||
1. Download the test shim (see .travis.yml file for the URL) into `tests/test.sh`:
|
||||
- `wget -O tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/`
|
||||
1. Make the test shim executable: `chmod +x tests/test.sh`.
|
||||
1. Run (from the role root directory) `distro=[distro] playbook=[playbook] ./tests/test.sh`
|
||||
|
||||
If you don't want the container to be automatically deleted after the test playbook is run, add the following environment variables: `cleanup=false container_id=$(date +%s)`
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
- src: geerlingguy.php
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- hosts: all
|
||||
|
||||
vars:
|
||||
php_enable_webserver: false
|
||||
drupal_console_keep_updated: true
|
||||
|
||||
pre_tasks:
|
||||
- name: Update apt cache.
|
||||
apt: update_cache=yes cache_valid_time=600
|
||||
when: ansible_os_family == 'Debian'
|
||||
changed_when: false
|
||||
|
||||
roles:
|
||||
- geerlingguy.php
|
||||
- role_under_test
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- hosts: all
|
||||
|
||||
vars:
|
||||
php_enable_webserver: false
|
||||
|
||||
pre_tasks:
|
||||
- name: Update apt cache.
|
||||
apt: update_cache=yes cache_valid_time=600
|
||||
when: ansible_os_family == 'Debian'
|
||||
changed_when: false
|
||||
|
||||
roles:
|
||||
- geerlingguy.php
|
||||
- role_under_test
|
Loading…
Add table
Add a link
Reference in a new issue