openstack-ansible/playbooks/roles/os_swift
git-harry 176107aa30 Change recon_lock_path to /var/lock
The Swift configuration item [filter:recon]/recon_lock_path is set to
'/var/lock/swift' by openstack-ansible in the appropriate configuration
files. The playbooks also create the directory if it does not exist. If
the host is rebooted the directory '/var/lock/swift' is missing and must
be recreated.

/var/lock (/run/lock) is a tmpfs and so the directory /var/lock/swift
will not persist between reboots.

Swift attempts to create a directory in the directory specified by
recon_lock_path however it does not recursively create any missing
parent directories.

This commit changes the value of [filter:recon]/recon_lock_path to that
set by Swift, '/var/lock'. This allows it to create the directory
'/var/lock/swift-recon-object-cron'. The creation of '/var/lock/swift'
is also removed from the playbooks.

Change-Id: I714367b02c7cf961e9e0bdee4e41f9e4e105b088
Closes-bug: #1496117
2015-09-21 11:18:18 +00: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 Change recon_lock_path to /var/lock 2015-09-21 11:18:18 +00:00
templates Change recon_lock_path to /var/lock 2015-09-21 11:18:18 +00: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