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:
|
container_directories:
|
||||||
- /var/log/swift
|
- /var/log/swift
|
||||||
- /tmp/swift
|
|
||||||
- /var/lock/swift
|
- /var/lock/swift
|
||||||
- /etc/swift
|
- /etc/swift
|
||||||
- /etc/swift/rings/
|
- /etc/swift/rings/
|
||||||
|
@ -21,16 +21,16 @@
|
|||||||
group=root
|
group=root
|
||||||
mode=0755
|
mode=0755
|
||||||
with_items:
|
with_items:
|
||||||
- /tmp/swift/rings
|
- /etc/swift/rings
|
||||||
- /tmp/swift/scripts
|
- /etc/swift/scripts
|
||||||
|
|
||||||
- name: "Copy the swift_rings.py file"
|
- name: "Copy the swift_rings.py file"
|
||||||
template: >
|
template: >
|
||||||
src=swift_rings.py
|
src=swift_rings.py
|
||||||
dest="/tmp/swift/scripts/swift_rings.py"
|
dest="/etc/swift/scripts/swift_rings.py"
|
||||||
mode=0700
|
mode=0700
|
||||||
|
|
||||||
- name: "build rings"
|
- 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:
|
args:
|
||||||
chdir: /tmp/swift/rings/
|
chdir: /etc/swift/rings/
|
||||||
|
@ -21,5 +21,5 @@
|
|||||||
owner={{ system_user }}
|
owner={{ system_user }}
|
||||||
group={{ system_group }}
|
group={{ system_group }}
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- /tmp/swift/rings/*.ring.gz
|
- /etc/swift/rings/*.ring.gz
|
||||||
- /tmp/swift/rings/*.builder
|
- /etc/swift/rings/*.builder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user