Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
66 changes: 41 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,49 @@
Role Name
=========
Ansible role for installing multicore Apache Solr
===============================================

This playbook is based on a great tutorial written by 2bits.

http://2bits.com/articles/configuring-apache-solr-4x-drupal-password-authentication.html

Thanks guys!

Requirements
------------

* Ansible (tested on 1.6)
- http://docs.ansible.com/intro_installation.html
* Ubuntu (tested on 12.04 LTS)

Role Variables
--------------

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.

Dependencies
------------

A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.

Example Playbook
----------------

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
roles:
- { role: username.rolename, x: 42 }

License
-------

BSD

Author Information
------------------

An optional section for the role authors to include contact information, or a website (HTML is not allowed).

Disclaimer
----------
Even if the script does some security related configuration I don't guarantee
Expand All @@ -22,34 +60,12 @@ Provides
- Installation path
- Configuring core names and types (default/drupal)
* Support for Drupal's Solr modules (apachesolr/search\_api\_solr)
- Solr version 4.x only
- Solr version 4.x only
- Config files are fetched from search\_api\_solr/solr-conf/4.x
* Vagrantfile for testing and development
* Ansible hosts file that points to the Vagrant box

Requires
------------
* Ansible (tested on 1.6)
- http://docs.ansible.com/intro_installation.html
* Ubuntu (tested on 12.04 LTS)
* Vagrant (*optional*, tested on 1.5.1)
- https://docs.vagrantup.com/v2/getting-started/index.html

Usage - Vagrant
-------------
1. Clone the repository
2. Cd to the cloned folder and run:
```
$ vagrant up
```
3. Run
```
$ ansible-playbook -i hosts play.yml --private-key=~/.vagrant.d/insecure_private_key
```
4. After the script is run wait for a while for Apache Solr to start
4. Navigate to http://192.168.56.107:8983/solr with your browser

Usage - Remote server
Usage
---------------------
1. Clone the repository
2. Cd to the cloned folder
Expand Down
13 changes: 0 additions & 13 deletions Vagrantfile

This file was deleted.

File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion hosts

This file was deleted.

134 changes: 134 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
galaxy_info:
author:
description:

license: license (GPLv2)

min_ansible_version: 1.2


#
# Below are all platforms currently available. Just uncomment
# the ones that apply to your role. If you don't see your
# platform on this list, let us know and we'll get it added!
#
#platforms:
#- name: EL
# versions:
# - all
# - 5
# - 6
# - 7
#- name: GenericUNIX
# versions:
# - all
# - any
#- name: Solaris
# versions:
# - all
# - 10
# - 11.0
# - 11.1
# - 11.2
# - 11.3
#- name: Fedora
# versions:
# - all
# - 16
# - 17
# - 18
# - 19
# - 20
# - 21
# - 22
# - 23
#- name: Windows
# versions:
# - all
# - 2012R2
#- name: SmartOS
# versions:
# - all
# - any
#- name: opensuse
# versions:
# - all
# - 12.1
# - 12.2
# - 12.3
# - 13.1
# - 13.2
#- name: Amazon
# versions:
# - all
# - 2013.03
# - 2013.09
#- name: GenericBSD
# versions:
# - all
# - any
#- name: FreeBSD
# versions:
# - all
# - 10.0
# - 10.1
# - 10.2
# - 8.0
# - 8.1
# - 8.2
# - 8.3
# - 8.4
# - 9.0
# - 9.1
# - 9.1
# - 9.2
# - 9.3
#- name: Ubuntu
# versions:
# - all
# - lucid
# - maverick
# - natty
# - oneiric
# - precise
# - quantal
# - raring
# - saucy
# - trusty
# - utopic
# - vivid
#- name: SLES
# versions:
# - all
# - 10SP3
# - 10SP4
# - 11
# - 11SP1
# - 11SP2
# - 11SP3
#- name: GenericLinux
# versions:
# - all
# - any
#- name: Debian
# versions:
# - all
# - etch
# - jessie
# - lenny
# - squeeze
# - wheezy

galaxy_tags: []
# List tags for your role here, one per line. A tag is
# a keyword that describes and categorizes the role.
# Users find roles by searching for tags. Be sure to
# remove the '[]' above if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of
# alphanumeric characters. Maximum 20 tags per role.

dependencies: []
# List your role dependencies here, one per line.
# Be sure to remove the '[]' above if you add dependencies
# to this list.
8 changes: 0 additions & 8 deletions play.yml

This file was deleted.

File renamed without changes.
6 changes: 0 additions & 6 deletions roles/jiv_e.solr/tasks/main.yml → tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
---
# Installing

- name: Install Apache Solr
include: install-solr.yml
when: not jiv_solr__uninstall

# Uninstalling

- name: If updateSolr variable is set to uninstall the Apache Solr instance
include: uninstall-solr.yml
when: jiv_solr__uninstall


File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localhost
5 changes: 5 additions & 0 deletions tests/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- hosts: localhost
vars_files:
- '../defaults/main.yml'
tasks:
- include: '../tasks/main.yml'