Feature #4127

Array, Boolean and other types support in "hostgroup parameters"

Added by Neil Miao over 4 years ago. Updated 19 days ago.

Status:Ready For Testing
Priority:Normal
Assigned To:Kavita Gaikwad
Category:-
Target version:Team Anurag Iteration 22
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/5241
Story points-
Velocity based estimate-

Description

Currently "string" is the only parameter type supported in hostgroup parameters on foreman 1.3. Our customers desperately need to put Array and Boolean type of parameters (possibly other types as well) into the hostgroup for better puppet parameter management of they application clusters. Since multiple parameter types are supported in Smart Variables, why the hostgroup parameters (as well host parameter) have to stuck with just one type (string).


Related issues

Related to Foreman - Feature #2753: Addition of Drop Down / Chooseable Parameters with fixed ... New 07/08/2013
Related to Foreman - Tracker #4470: Usability of parameters and overrides New 02/27/2014
Related to Foreman - Feature #1464: Parameters in subnets Duplicate 01/22/2012
Related to Foreman - Feature #4318: Add editable description field for host parameter New 02/11/2014
Related to Foreman - Bug #5204: support class parameters at the domain and OS levels. New 04/15/2014
Related to Foreman - Tracker #12950: Turn all parameters into lookup keys New 12/28/2015
Related to Salt - Feature #13402: Foreman Parameters & Salt Multilevel Pillars Duplicate 01/27/2016
Duplicated by Foreman - Feature #5203: Custom facts in foreman Duplicate 04/15/2014
Duplicated by Foreman - Bug #5170: Global parameters can only be strings Duplicate 04/11/2014
Duplicated by Foreman - Bug #20617: global variables: set the type Duplicate 08/16/2017
Blocks Katello - Feature #13963: Support multiple SSH keys in Katello cloud-init New 02/29/2016

History

#1 Updated by Dominic Cleal over 4 years ago

  • Release deleted (1.3.1)

We have talked about replacing general parameters with the smart variables implementation at some point, but obviously removing the association to Puppet classes. It might not be exactly what you need, but it is possible use smart class parameters and override them from the host group and host edit pages.

#2 Updated by Alejandro Falcon over 4 years ago

I was going to open a new issue about this when I found this one. I like using smart class parameters as you mention but I use Example42 modules which have a nice feature to keep the original modules up to date and it is a my_class parameter on each module that allow me to add a desired custom class as a parameter in foreman and obviously I can't use smart class parameters with them so I have to use global parameters for these custom classes. It would be great to have all data types working on global params as in smart class parameters.

#3 Updated by Neil Miao over 4 years ago

ideally, we should use smart class parameters, but the reality is that
we have too many legacy home-baked modules (hundreds, if not
thousands) lying in our puppet code-based that it might take us months
to refactor them to the proper parameterized classes.

I certainly hope adding this feature to Foreman is quicker than that.

#4 Updated by Dominic Cleal about 4 years ago

  • Related to Feature #2753: Addition of Drop Down / Chooseable Parameters with fixed values added

#5 Updated by Dominic Cleal about 4 years ago

  • Related to Tracker #4470: Usability of parameters and overrides added

#6 Updated by Dominic Cleal about 4 years ago

#7 Updated by Dominic Cleal about 4 years ago

  • Related to Feature #4318: Add editable description field for host parameter added

#8 Updated by Stephen Benjamin about 4 years ago

  • Related to Bug #5170: Global parameters can only be strings added

#9 Updated by Dominic Cleal about 4 years ago

#10 Updated by Dominic Cleal about 4 years ago

  • Related to Bug #5204: support class parameters at the domain and OS levels. added

#11 Updated by Tom Caspy about 3 years ago

  • Related to deleted (Bug #5170: Global parameters can only be strings)

#12 Updated by Tom Caspy about 3 years ago

  • Duplicated by Bug #5170: Global parameters can only be strings added

#13 Updated by Ori Rabin over 2 years ago

  • Related to Tracker #12950: Turn all parameters into lookup keys added

#14 Updated by Stephen Benjamin over 2 years ago

  • Related to Feature #13402: Foreman Parameters & Salt Multilevel Pillars added

#15 Updated by Stephen Benjamin about 2 years ago

  • Blocks Feature #13963: Support multiple SSH keys in Katello cloud-init added

#16 Updated by Tomer Brisker 9 months ago

  • Duplicated by Bug #20617: global variables: set the type added

#17 Updated by stachu dev 8 months ago

What is the detailed status of this ticket?
Is it going to be resolved anytime?

#18 Updated by Kavita Gaikwad 7 months ago

  • Target version set to Team Anurag backlog

#19 Updated by Kavita Gaikwad 7 months ago

  • Assigned To set to Kavita Gaikwad

#20 Updated by Kavita Gaikwad 7 months ago

  • Target version changed from Team Anurag backlog to Team Anurag Iteration 22

#21 Updated by The Foreman Bot 3 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5241 added

Also available in: Atom PDF