Skip to content

Instantly share code, notes, and snippets.

@mccun934
Last active October 11, 2017 18:41
Show Gist options
  • Save mccun934/3558d3506938880cbbc0b8fe18267d93 to your computer and use it in GitHub Desktop.
Save mccun934/3558d3506938880cbbc0b8fe18267d93 to your computer and use it in GitHub Desktop.
bulk resync all library repos via hammer
echo "select id from katello_repositories where url is not null" | sudo -u postgres psql -t -d foreman | | xargs -n1 -I arg1 -P 3 hammer repository synchronize --validate-contents yes --id arg1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment