thumbor
is an ansible role which:
- installs nginx
- installs thumbor
- configures thumbor
- starts both as services
Using ansible-galaxy
:
$ ansible-galaxy install savagegus.thumbor
Using git
:
$ git clone https://github.com/jivesoftware/ansible-thumbor.git
thumbor_aws_access_key: ''
thumbor_aws_secret_key: ''
thumbor_aws_loader_bucket: ''
thumbor_aws_version: a0c4bcc02601af317072adab32ce0be14d0cd492
thumbor_server_name: localhost
thumbor_user: thumbor
thumbor_group: thumbor
thumbor_home: /home/thumbor
thumbor_config_file: /etc/thumbor.conf
thumbor_key_file: /etc/thumbor.key
thumbor_log_file: /var/log/thumbor
thumbor_working_directory: /var/lib/thumbor
thumbor_default: /etc/default/thumbor
thumbor_server_name: localhost
thumbor_bind_address: 127.0.0.1
thumbor_loader: thumbor_aws.loaders.s3_loader
franklinkim.nginx
- hosts: all
roles:
- ansible-thumbor
vars:
nginx_remove_default: yes
nginx_worker_processes: 1
nginx_worker_connections: 1024
thumbor_aws_access_key: XXX
thumbor_aws_secret_key: XXX
thumbor_aws_loader_bucket: XXX
Testing
$ git clone https://github.com/jivesoftware/ansible-thumbor.git
$ cd ansible-thumbor
$ vagrant up
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
License
Copyright (c) Jive Software under the Apache license.