Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

UI Parameters for new wizard

Petr Chalupa edited this page Jun 26, 2014 · 7 revisions

For the current version of staypuft, the UI wizard simply presents the user with all of the puppetclass params to edit. This is cumbersome, as many of these rarely need changing, and in other cases, there are interdependencies such that one logical change requires several lower-level parameter changes.

The plan to alleviate this is to create a whole separate set of "UI Parameters" and then for those actual puppet class params (i.e. parameters of the actual puppet manifests used in the various Openstack roles) that can be determined based on the value of one or more UI parameter, we will use dynamic values (i.e. templates, erb-like snippets, smart parameter, or whatever the proper foreman term is).

The plan to implement this is as follows:

  • Define the list of necessary UI parameters.
  • For each UI parameter, determine which puppetclass parameters depend on its value and what the formula/macro/calculation/etc is to determine the puppet param value.
  • In the Staypuft::Deployment UI wizard, expose the UI params in the wizard form, and upon submitting, for each form element set the UI param's value as an overridden puppetclass param on the Deployment Hostgroup.
  • For each puppetclass param whose value can be determined from the UI parameters, set its dynamic/templated value in seeds.rb: i.e. for we might set ovs_vlan_ranges on the puppetclass quickstack::neutron::controller to <%= @host.params['ui::neutron::vlan_range'] %>
  • will it work in safemode?
Clone this wiki locally