Skip to content

Commit

Permalink
Add remove-packages action (#83)
Browse files Browse the repository at this point in the history
Add the ability to remove packages to the agent.
  • Loading branch information
jgrund authored Apr 23, 2019
1 parent 65bfbe0 commit 6fda4ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chroma_agent/action_plugins/agent_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ def update_profile(profile):
return agent_result_ok


def remove_packages(packages):
if packages != []:
yum_util("remove", packages=packages)

return agent_result_ok


def install_packages(repos, packages):
"""
Explicitly evaluate and install or update any specific-version dependencies and satisfy even if
Expand Down Expand Up @@ -224,6 +231,7 @@ def _shutdown():
configure_repo,
unconfigure_repo,
install_packages,
remove_packages,
kernel_status,
restart_agent,
update_profile,
Expand Down

0 comments on commit 6fda4ed

Please sign in to comment.