Role os_swift for OpenStack-Ansible
Go to file
Jesse Pretorius a24f5590a2 Put swift {account,container,object} logs where they belong
The pattern for nova and neutron on hosts is to have a symlink from
/var/log/{service} to /openstack/log/_hostname_-{service}/ and then
to have all the service logs configured to log to /var/log/{service}
as that is a logical place for an operator to look for them.

Swift currently does not follow that pattern.

Currently the swift {account,container,object} logs are placed in
/openstack/log/{hostname}/, whereas the proxy logs are placed in
/var/log/swift/. On hosts the /var/log/swift symlink to
/openstack/log/{hostname}-swift/ is created, but not used.

This creates confusion for operators trying to find the logs in the
logical (and upstream) pattern in the directory /var/log/{service}.

This patch puts the swift logs where they belong.

Upgrade Notes:
 - This changes the location of the log storage on swift hosts from
   /openstack/log/{hostname} to /openstack/log/{hostname}-swift
 - Any log processing or monitoring tooling that consumes swift logs
   will need to be adjusted to consume them from the new location,
   or simply to consume them from /var/log/swift

DocImpact
UpgradeImpact
Closes-Bug: #1417536
Change-Id: I8d6ec98d310ce8d4e4a7a6cc5fb2d349d17757cf
2015-10-16 08:37:25 +01:00
defaults adds the config_template to swift 2015-09-14 23:44:35 -05:00
handlers Remove double register in swift handlers 2015-09-04 11:30:21 +01:00
meta added role to pin packages 2015-05-08 13:22:42 -05:00
tasks Allow pip extra arguments to be passed to playbooks 2015-09-30 15:18:31 +00:00
templates Put swift {account,container,object} logs where they belong 2015-10-16 08:37:25 +01:00
CONTRIBUTING.rst Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
LICENSE Convert existing roles into galaxy roles 2015-02-18 10:56:25 +00:00
README.rst Configure DB addresses for each service 2015-06-10 02:07:38 +00:00

OpenStack swift

tags

openstack, swift, cloud, ansible

category

*nix

Role to install swift and swift registry.

This role will install the following:
  • swift
- name: Install swift server
  hosts: swift_all
  user: root
  roles:
    - { role: "os_swift", tags: [ "os-swift" ] }
  vars:
    external_lb_vip_address: 172.16.24.1
    internal_lb_vip_address: 192.168.0.1