Comments (7)
Unfortunately, the Foreman API currently offers no call for this.
from katprep.
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.
Investigating in branch feature-pkg_updates-issue33
from katprep.
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.
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.
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.
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)
- Python 3.5.2 support? HOT 6
- Satellite 6.x localhost? HOT 1
- Implement pre/post scripts HOT 1
- Remove Python 2.7 support HOT 3
- Release katprep also on PyPi
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Use nailgun rather than ForemanAPIClient
- Migrate to GitHub Actions
- Implement dependency management
- Find a new project name
- Implement checking background tasks
- Provide well-formed User-Agent HTTP header
- Automate documentation creation HOT 1
- If tests are run or skipped depends on CWD HOT 1
- Add support for Canonical Landscape
- Authconfig not working in Python 3.6 HOT 2
- katprep_authconfig: Add host description
- katprep_maintenance: Exclude Foreman/Uyuni host by default
- Replace usage of mock with unittest.mock
- Overhaul usage of logging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from katprep.