Project

General

Profile

Actions

Feature #9355

closed

Hostgroup parameters - Environment aware

Added by Florent Delvaille about 9 years ago. Updated about 9 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Currently, a hostgroup parameter can take only 1 value, not taking the environmnent we are running on.
It would be nice to add this dependency and have something like:

hostgroup A - hostgroup parameter X
If environment == production; then X="prodValue"
elsif environment == acceptance; then X="AccValue"

At least we really need this feature as we created an autofs Module using hostgroup parameters to know which shares must be mounted for a specific hostgroup.
Current workaround we currently have is the following:

variable_name: autofs_hostgroup_base
variable_value:
Dev: mountA
Tst: mountA,mountB
Acc: mountB,mountC
Prd: mountA,mountB,mountC

Which makes thing a bit ugly and not very generic.

Regards;

Actions

Also available in: Atom PDF