SoftwareConfig's do not support Boolean inputs/outputs

Bug #1482223 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Dan Prince

Bug Description

I hit an issue in TripleO recently where Heat SoftwareConfig resources don't seem to support a Boolean input type. Specifically I got this error:

Property error: resources.ComputePuppetConfig.properties.inputs[0].type: "Boolean" is not an allowed value [String, Number, CommaDelimitedList, Json]

Basically looking to add support for simply doing this:

  ComputePuppetConfig:
    type: OS::Heat::SoftwareConfig
    properties:
      group: puppet
      inputs:
      - name: boolean_input
        type: Boolean

This is useful when trying to pass boolean types directly into puppet classes via Hiera.

Dan Prince (dan-prince)
Changed in heat:
assignee: nobody → Dan Prince (dan-prince)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/209940

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/209940
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=1a828933c164b2bce9c97cdf9bbb8874a8b3d86d
Submitter: Jenkins
Branch: master

commit 1a828933c164b2bce9c97cdf9bbb8874a8b3d86d
Author: Dan Prince <email address hidden>
Date: Thu Aug 6 09:45:08 2015 -0400

    Support boolean inputs for SoftwareConfig's

    Adds support for using input/output booleans when creating
    SoftwareConfigs. This is useful because some of the software
    config hooks that prefer explicit boolean types for input's.
    Using Puppet with Hiera to map inputs directly to class parameters
    is an example that would benefit from this capability.

    Change-Id: Ic80f35fb259e60429d5a65a1b0bc7ff9f2a3ea0a
    Closes-bug: #1482223

Changed in heat:
status: In Progress → Fix Committed
Changed in heat:
importance: Undecided → Medium
Changed in heat:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: liberty-3 → 5.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.