Project

General

Profile

Actions

Feature #14295

closed

Script to enable or disable debugging for all Foreman components

Added by Lukas Zapletal over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

I wrote a simple interactive (TUI) and CLI Ruby script (whiptail dependency, part of all distros, usually in package newt). It will be very similar to foreman-debug with loading of config file definitions from .d/ directory layout so plugins can drop their own components.


Related issues 2 (1 open1 closed)

Related to Foreman - Bug #10788: provide unified tool for administrative tasks on a foreman/katello serverNew06/11/2015Actions
Related to Hammer CLI - Feature #14590: Allow array setting mergingClosedLukas Zapletal04/12/2016Actions
Actions #1

Updated by Lukas Zapletal over 8 years ago

  • Category set to Packaging
Actions #2

Updated by Lukas Zapletal over 8 years ago

  • Category changed from Packaging to foreman-debug

Not sure which category to pickup :-)

Actions #3

Updated by Dominic Cleal over 8 years ago

  • Related to Bug #10788: provide unified tool for administrative tasks on a foreman/katello server added
Actions #4

Updated by Dominic Cleal over 8 years ago

Sounds very similar to #10788 which was refused in Foreman core - use the existing Hammer CLI framework please.

Actions #5

Updated by Lukas Zapletal over 8 years ago

I am not trying to do all-in-one script, it's s separate useful helper script.

Actions #6

Updated by Dominic Cleal over 8 years ago

The point was not that there should or shouldn't be all-encompassing scripts, but that the associated ticket wrote yet another CLI and extension framework so was refused.

Actions #7

Updated by Lukas Zapletal over 8 years ago

  • Bugzilla link set to 1305085

I am not really sure what your concerns are, we are talking about three pages long separate helper script. I have no plans in merging into foreman-debug (the category might be misleading, could not find any better). I don't plan to use hammer CLI as well the script is quite simple - I started it in shell, but I needed some structures like arrays and hashes that made the code ugly in shell.

For the record, this feature was requested downstream and I want to make it as useful as possible in Foreman core, thus loading the external files (for katello and other plugins).

Actions #8

Updated by Lukas Zapletal over 8 years ago

On second thought tho, I can perhaps take a look on hammer and if this could be another attempt of starting one tool for everything, that might be possible.

Actions #9

Updated by Lukas Zapletal over 8 years ago

So this could be a new hammer cli "plugin" perhaps called "admin" with it's own subcommand "logging". I would like to provide both CLI and interactive (TUI) workflows, but that should work just fine. What's nice is hammer provides logging and i18n capabilities which are both useful.

On Smart Proxy, we can install just hammer_cli and the hammer_cli_admin packages and hopefully this works with just one plugin. I think that should work.

Actions #10

Updated by Dominic Cleal over 8 years ago

  • Project changed from Foreman to Hammer CLI
  • Category changed from foreman-debug to Foreman commands (obsolete)

Yep, seems you've got my points now, thanks for looking into it. Hammer provides a lot already, including the fact that we know how to package, distribute and extend it without extra dependencies.

It looks like development has moved to https://github.com/theforeman/hammer-cli-foreman-admin, so I'll move this ticket into the Hammer CLI project. You may want to do the same with the other, or just close it referencing that repository.

Actions #11

Updated by Lukas Zapletal over 8 years ago

Actions #12

Updated by Lukas Zapletal over 8 years ago

Actions #13

Updated by Lukas Zapletal over 8 years ago

Actions #14

Updated by Lukas Zapletal over 8 years ago

  • Status changed from New to Closed
  • Pull request https://github.com/theforeman/hammer-cli-foreman-admin/pull/1 added

Merged. Packages build.

Actions

Also available in: Atom PDF