2014-03-06 20:54:37 +08:00
|
|
|
---
|
|
|
|
## Deploy RADOS Gateway
|
|
|
|
#
|
|
|
|
|
|
|
|
- name: Add Ceph extra
|
2014-09-05 03:14:11 +08:00
|
|
|
template: >
|
2014-11-06 00:57:28 +08:00
|
|
|
src=ceph-extra.repo
|
|
|
|
dest=/etc/yum.repos.d
|
|
|
|
owner=root
|
2014-09-05 03:14:11 +08:00
|
|
|
group=root
|
2014-03-06 20:54:37 +08:00
|
|
|
|
|
|
|
- name: Add special fastcgi repository key
|
|
|
|
rpm_key: key=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
|
|
|
|
|
|
|
|
- name: Add special fastcgi repository
|
|
|
|
command: rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|
2014-03-06 20:54:37 +08:00
|
|
|
|
2015-03-02 17:22:52 +08:00
|
|
|
- name: "Install Apache and fastcgi"
|
2014-09-05 03:14:11 +08:00
|
|
|
yum: >
|
|
|
|
name={{ item }}
|
|
|
|
state=present
|
2014-03-06 20:54:37 +08:00
|
|
|
with_items:
|
|
|
|
- httpd
|
|
|
|
- mod_fastcgi
|
|
|
|
- mod_fcgid
|
|
|
|
|
|
|
|
## Prepare Apache
|
|
|
|
#
|
|
|
|
|
|
|
|
- name: Install Rados Gateway vhost
|
2014-09-05 03:14:11 +08:00
|
|
|
template: >
|
|
|
|
src=rgw.conf
|
|
|
|
dest=/etc/httpd/conf.d/rgw.conf
|
|
|
|
owner=root
|
|
|
|
group=root
|
2014-03-06 20:54:37 +08:00
|
|
|
|
|
|
|
## Prepare RGW
|
|
|
|
#
|
|
|
|
|
|
|
|
- name: Install s3gw.fcgi script
|
2015-03-02 17:48:18 +08:00
|
|
|
template: >
|
|
|
|
src=s3gw.fcgi.j2
|
2014-09-05 03:14:11 +08:00
|
|
|
dest=/var/www/s3gw.fcgi
|
|
|
|
mode=0555
|
|
|
|
owner=root
|
|
|
|
group=root
|
2014-03-06 20:54:37 +08:00
|
|
|
|
|
|
|
- name: Disable default site
|
|
|
|
shell: sed -i "s/^[^+#]/#/g" /etc/httpd/conf.d/welcome.conf
|
|
|
|
changed_when: False
|
|
|
|
notify:
|
|
|
|
- restart apache2
|