Giter Club home page Giter Club logo

Comments (7)

stdevel avatar stdevel commented on May 27, 2024

Unfortunately, the Foreman API currently offers no call for this.

from katprep.

stdevel avatar stdevel commented on May 27, 2024

Things have changed, yas: https://theforeman.org/plugins/katello/3.5/api/apidoc/v2/host_packages.html

PUT /api/hosts/:host_id/packages/upgrade_all 
Update packages remotely

from katprep.

stdevel avatar stdevel commented on May 27, 2024

Investigating in branch feature-pkg_updates-issue33

from katprep.

stdevel avatar stdevel commented on May 27, 2024

Was thinking about adding an exclude parameter to katprep_maintenance - unfortunately I found no way to implement this. The API call upgrade_all upgrades all packages, while upgrade requires a list of package IDs. For this it would be necessary to have a list of "upgradable" packages for a particular host - and there is no such API call.

from katprep.

stdevel avatar stdevel commented on May 27, 2024

In the web interface it is possible to list available package upgrades, so there must be a way to retrieve this information. Gonna ask the developers.

from katprep.

stdevel avatar stdevel commented on May 27, 2024

In the web interface it is possible to list available package upgrades, so there must be a way to retrieve this information. Gonna ask the developers.
Discussion started: https://community.theforeman.org/t/looking-for-api-call-for-retrieving-upgradable-packages-per-content-host/9985

from katprep.

stdevel avatar stdevel commented on May 27, 2024

Added code for installing all available package upgrades in commit 63ba47a.
Successfully tested with Foreman 1.17.1 and Katello 3.6.

from katprep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.