Skip to content

App sync deletes existing local/ despite documented preservation #269

Description

@dtwersky

install_apps.yml syncs with delete: true and no local/ protect rule. When an app's source has no local/ (normal for git apps shipping only default/), rsync --delete removes the existing local/ on the target, destroying operator customizations (saved searches, dashboards, local props/transforms).

This contradicts the docs:

  • README: "Ansible will not touch the existing local/ folder"
  • task comment: "preserving the local/ folder"

Not a regression - present since the first commit (delete: yes + the comment + no protect rule); no local/ rule ever existed in rsync-filter.

Pick one:

  1. Preserve local/: add --filter=P */local/** so --delete never removes it (honors the documented promise).
  2. Make it optional: add splunk_app_preserve_local (default true) and reconcile the README/comment with actual behavior.

Affected: roles/splunk/tasks/install_apps.yml, roles/splunk/files/rsync-filter, README.md.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions