Skip to content

Add smart_proxy_sync module and smart_proxies_sync role#1971

Draft
pablomh wants to merge 2 commits into
theforeman:developfrom
pablomh:worktree-capsule_sync
Draft

Add smart_proxy_sync module and smart_proxies_sync role#1971
pablomh wants to merge 2 commits into
theforeman:developfrom
pablomh:worktree-capsule_sync

Conversation

@pablomh
Copy link
Copy Markdown
Contributor

@pablomh pablomh commented Apr 2, 2026

Summary

  • Adds smart_proxy_sync module to trigger content synchronization on a Smart Proxy via the Katello capsule_content/sync API
  • Adds smart_proxies_sync role as a companion that fires all syncs in parallel and optionally waits for completion
  • Exposes all optional API filters: lifecycle_environment, content_view, repository (requires product), and skip_metadata_check

Test plan

  • Verify module syncs all content on a Smart Proxy with no filters
  • Verify lifecycle_environment filter limits the sync scope
  • Verify repository + product filter limits the sync scope
  • Verify skip_metadata_check is passed through correctly
  • Verify role fires all syncs in parallel (async: 43200, poll: 0)
  • Verify role waits for completion when foreman_smart_proxies_sync_wait: true (default)
  • Verify role skips waiting when foreman_smart_proxies_sync_wait: false

🤖 Generated with Claude Code

Adds a new module to trigger content synchronization on a Smart Proxy
via the Katello capsule_content/sync API, and a companion role that
fires all syncs in parallel and optionally waits for completion.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@pablomh pablomh marked this pull request as draft April 2, 2026 23:36
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant