accelerate: true
max_fail_percentage: 0
roles:
- - swift
- moon
- hosts: all
server {{ host }} {{ ip }}:8776 weight 1 check inter 2000 rise 2 fall 5
{% endfor %}
-listen proxy-swift-proxy
- bind {{ internal_vip.ip }}:8080
- bind {{ public_vip.ip }}:8080
- balance source
- option tcpka
- option tcplog
-{% for host,ip in haproxy_hosts.items() %}
- server {{ host }} {{ ip }}:8080 weight 1 check inter 2000 rise 2 fall 5
-{% endfor %}
+#listen proxy-swift-proxy
+# bind {{ internal_vip.ip }}:8080
+# bind {{ public_vip.ip }}:8080
+# balance source
+# option tcpka
+# option tcplog
+#{% for host,ip in haproxy_hosts.items() %}
+# server {{ host }} {{ ip }}:8080 weight 1 check inter 2000 rise 2 fall 5
+#{% endfor %}
listen proxy-ceilometer_api_cluster
bind {{ internal_vip.ip }}:8777
internalurl: "http://{{ internal_vip.ip }}:8000/v1"
adminurl: "http://{{ internal_vip.ip }}:8000/v1"
- - name: swift
- type: object-store
- region: RegionOne
- description: "OpenStack Object Storage"
- publicurl: "http://{{ public_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
- internalurl: "http://{{ internal_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
- adminurl: "http://{{ internal_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
+# - name: swift
+# type: object-store
+# region: RegionOne
+# description: "OpenStack Object Storage"
+# publicurl: "http://{{ public_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
+# internalurl: "http://{{ internal_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
+# adminurl: "http://{{ internal_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
os_users:
- user: admin
tenant: demo
tenant_description: "Demo Tenant"
- - user: swift
- password: "{{ CINDER_PASS }}"
- email: swift@admin.com
- role: admin
- tenant: service
- tenant_description: "Service Tenant"
+# - user: swift
+# password: "{{ CINDER_PASS }}"
+# email: swift@admin.com
+# role: admin
+# tenant: service
+# tenant_description: "Service Tenant"
with_items:
- nova-compute
-- name: restart swift task
- shell: swift-init all start
- ignore_errors: True
+#- name: restart swift task
+# shell: swift-init all start
+# ignore_errors: True
sudo chmod g+rw /var/log/moon/keystonemiddleware.log;
sudo chmod g+rw /var/log/moon/system.log;
sudo adduser keystone moonlog;
- sudo adduser swift moonlog;
+ # sudo adduser swift moonlog;
sudo adduser nova moonlog;
- name: update api-paste.ini
template: src=api-paste.ini dest=/etc/nova/api-paste.ini backup=yes
-- name: update proxy-server conf
- template: src=proxy-server.conf dest=/etc/swift/proxy-server.conf backup=yes
+#- name: update proxy-server conf
+# template: src=proxy-server.conf dest=/etc/swift/proxy-server.conf backup=yes
# restart nova
- name: restart nova
- nova-scheduler
# restart swift
-- name: restart swift
- service: name={{ item }} state=restarted enabled=yes
- with_items:
- - swift-proxy
- - memcached
+#- name: restart swift
+# service: name={{ item }} state=restarted enabled=yes
+# with_items:
+# - swift-proxy
+# - memcached
internalurl: "http://{{ internal_vip.ip }}:8000/v1"
adminurl: "http://{{ internal_vip.ip }}:8000/v1"
- - name: swift
- type: object-store
- region: RegionOne
- description: "OpenStack Object Storage"
- publicurl: "http://{{ public_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
- internalurl: "http://{{ internal_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
- adminurl: "http://{{ internal_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
+# - name: swift
+# type: object-store
+# region: RegionOne
+# description: "OpenStack Object Storage"
+# publicurl: "http://{{ public_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
+# internalurl: "http://{{ internal_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
+# adminurl: "http://{{ internal_vip.ip }}:8080/v1/AUTH_%(tenant_id)s"
os_users:
- user: admin
tenant: demo
tenant_description: "Demo Tenant"
- - user: swift
- password: "{{ CINDER_PASS }}"
- email: swift@admin.com
- role: admin
- tenant: service
- tenant_description: "Service Tenant"
+# - user: swift
+# password: "{{ CINDER_PASS }}"
+# email: swift@admin.com
+# role: admin
+# tenant: service
+# tenant_description: "Service Tenant"