Project

General

Profile

Bug #3877

hammer puppet_class does not expose CRUD methods

Added by Og Maciel about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

According to the rest api, I should be able to create, edit, delete puppet classes but hammer does not expose these options:

# hammer puppet_class --help
Usage:
    hammer puppet_class [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
    SUBCOMMAND                    subcommand
    [ARG] ...                     subcommand arguments

Subcommands:
    info                          Show a puppetclass
    list                          List all puppetclasses.
    sc_params                     List all smart class parameters

Options:
    -h, --help                    print help

Could these be added to hammer cli?

Packages:
  • rubygem-hammer_cli_foreman-0.0.12-1.el6.noarch
  • rubygem-hammer_cli-0.0.12-1.el6.noarch

History

#1 Updated by Ohad Levy about 8 years ago

  • Status changed from New to Feedback

Normally, both classes and class parameters should be imported from an existing puppet manifests, and should not be added via CRUD.

#2 Updated by Og Maciel about 8 years ago

The API indicated I should be able to create them though...

#3 Updated by Tomáš Strachota almost 8 years ago

  • Status changed from Feedback to Closed

This API interface is not meant to be used by users directly. Closing.

#4 Updated by Og Maciel almost 8 years ago

Tomáš , so we will not test this via CLI or API????

#5 Updated by Dominic Cleal almost 8 years ago

It's the wrong way to use Puppet integration in Foreman, the UI and APIs should be removed IMHO.

Also available in: Atom PDF