Project

General

Profile

Actions

Bug #3877

closed

hammer puppet_class does not expose CRUD methods

Added by Og Maciel over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
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
Actions #1

Updated by Ohad Levy over 11 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.

Actions #2

Updated by Og Maciel over 11 years ago

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

Actions #3

Updated by Tomáš Strachota over 11 years ago

  • Status changed from Feedback to Closed

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

Actions #4

Updated by Og Maciel over 11 years ago

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

Actions #5

Updated by Dominic Cleal over 11 years ago

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

Actions

Also available in: Atom PDF