Closed
Bug 634357
Opened 15 years ago
Closed 12 years ago
Refactor "case" switches on puppet
Categories
(Release Engineering :: General, defect, P5)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: armenzg, Unassigned)
Details
(Whiteboard: [puppet])
I need to add a new puppet manifest on bug 633019 and I need to do a "case" switch to determine which libdir I should use.
That "case" switch is already on "packages/nagios.pp" and would like to know which refactor we could do so this can be reused in other places.
I would like to have a common place where all these variables are calculated (if possible).
For now I am making this a P5.
case $hardwaremodel {
"x86_64": { $libdir = "lib64" }
default: { $libdir = "lib" }
}
[1] http://mxr.mozilla.org/build/source/puppet-manifests/packages/nagios.pp#10
Comment 1•15 years ago
|
||
base/os.pp or base/nodes.pp would be a fine place to do this sortof thing.
| Assignee | ||
Updated•12 years ago
|
Product: mozilla.org → Release Engineering
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•