Why previous configuration is lost when updating hostgroup with hammer CLI ?

Solution In Progress - Updated -

Issue

  • When tried to use hammer hostgroup update to change a certain value, some other configurations about the host is lost.
  • For example:
Have a host group with following puppet settings:

# hammer hostgroup info --name rhel7-abc-client-lab | grep -A1 Puppet
Puppet CA Proxy Id:     2
Puppet Master Proxy Id: 2
ComputeProfile:
Puppetclasses:
    abc::el7all

If updated the Puppetclasses parameter, loosing the information about puppet proxy:

# hammer hostgroup update --name rhel7-abc-client-lab --puppet-classes 'abc::el7all'
Hostgroup updated
# hammer hostgroup info --name rhel7-abc-client-lab | grep -A1 Puppet
Puppet CA Proxy Id:
Puppet Master Proxy Id:
ComputeProfile:
Puppetclasses:
    abc::el7all

And vise versa.

  • Updating a single parameter shouldn't affect other parameters. Unless there is any dependences, which should be clearly documented.

Environment

  • Red Hat Satellite 6.1
  • Puppet-classes

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.