Move the ring generation to /etc/swift instead of /tmp/swift
This will avoid the files being removed on reboot (or other /tmp removal time for the node that runs the scripts)
This commit is contained in:
parent
d4d78a9d3f
commit
ab46cc23c2
@ -65,7 +65,6 @@ service_names:
|
||||
|
||||
container_directories:
|
||||
- /var/log/swift
|
||||
- /tmp/swift
|
||||
- /var/lock/swift
|
||||
- /etc/swift
|
||||
- /etc/swift/rings/
|
||||
|
@ -21,16 +21,16 @@
|
||||
group=root
|
||||
mode=0755
|
||||
with_items:
|
||||
- /tmp/swift/rings
|
||||
- /tmp/swift/scripts
|
||||
- /etc/swift/rings
|
||||
- /etc/swift/scripts
|
||||
|
||||
- name: "Copy the swift_rings.py file"
|
||||
template: >
|
||||
src=swift_rings.py
|
||||
dest="/tmp/swift/scripts/swift_rings.py"
|
||||
dest="/etc/swift/scripts/swift_rings.py"
|
||||
mode=0700
|
||||
|
||||
- name: "build rings"
|
||||
command: /usr/bin/python /tmp/swift/scripts/swift_rings.py -s /etc/rpc_deploy/rpc_inventory.json
|
||||
command: /usr/bin/python /etc/swift/scripts/swift_rings.py -s /etc/rpc_deploy/rpc_inventory.json
|
||||
args:
|
||||
chdir: /tmp/swift/rings/
|
||||
chdir: /etc/swift/rings/
|
||||
|
@ -21,5 +21,5 @@
|
||||
owner={{ system_user }}
|
||||
group={{ system_group }}
|
||||
with_fileglob:
|
||||
- /tmp/swift/rings/*.ring.gz
|
||||
- /tmp/swift/rings/*.builder
|
||||
- /etc/swift/rings/*.ring.gz
|
||||
- /etc/swift/rings/*.builder
|
||||
|
Loading…
x
Reference in New Issue
Block a user