Comment 19 for bug 1750233

Reviewed: https://review.openstack.org/565950
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=ac28ad132922b582679c20c0f2346987c25bc98a
Submitter: Zuul
Branch: master

commit ac28ad132922b582679c20c0f2346987c25bc98a
Author: Kevin Carter <email address hidden>
Date: Wed May 2 23:29:50 2018 -0500

    Automatically prune the inventory backup

    The inventory backup process takes the running inventory json file and
    adds it to a tar archive. This process has no limits and will add files
    to the tar archive until that is no longer possible and limited by the
    underlying operating system. This change automatically prunes the backup
    file and retains only the last 15 inventory files. This should provide
    the same backup capabilities we've had without trying to saving
    archives indefinitely.

    > It should be noted that this change is using a subprocess call to
      prune the tar file. This is being done because the "tarfile" library
      does not provide an interface for deleting a file within an archive.

    Change-Id: Ida5a9be0d0910c223fe05401bc4f75aef100e456
    Closes-Bug: #1750233
    Signed-off-by: Kevin Carter <email address hidden>