https://github.com/brianium/ansible-civicrm
Easily deploy CiviCRM to any number of remote hosts
https://github.com/brianium/ansible-civicrm
Last synced: 9 months ago
JSON representation
Easily deploy CiviCRM to any number of remote hosts
- Host: GitHub
- URL: https://github.com/brianium/ansible-civicrm
- Owner: brianium
- Created: 2013-11-08T04:49:37.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-08T04:52:13.000Z (over 12 years ago)
- Last Synced: 2025-01-07T17:15:02.018Z (over 1 year ago)
- Language: PHP
- Size: 105 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ansible Configuration For Deploying CiviCRM
===========================================
This configuration will deploy a fresh CiviCRM (Wordpress) install to a remote host.
This configuration was created for use at [Grand Rapids Give Camp 2013](http://grgivecamp.org/)
The targeted host is Digital Ocean - but would work just as well on any host running Ubuntu 12.04 and up with ssh support.
Installation
------------
Requires [Ansible](http://www.ansibleworks.com/docs/intro_installation.html)
Usage
-----
Deploying is easy. Configure the hosts file with your user/host combos.
```
[user]
123.456.78.90
234.567.89.10
```
With your hosts file configured you can run the `ansible-playbook` command from the root of this repository like so:
```
ansible-playbook civicrm.yml -i hosts
```
This will provision a LAMP stack on the remote host, install the latest wordpress, and grab the specified version of CiviCRM.
The file `group_vars/all` contains configuration values for specifying mysql version, CiviCRM version, and database credentials.
Digital Ocean
-------------
*Note for digital ocean:* Digital ocean was a little wonky with SSH keys, this [article](https://www.digitalocean.com/community/articles/how-to-set-up-ssh-keys--2) was helpful. Basically after adding your key to digital ocean, you should run something like this on your local machine before running the playbook:
cat ~/.ssh/id_rsa.pub | ssh root@123.45.56.78 "cat >> ~/.ssh/authorized_keys"