forked from puppetlabs/puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-1678) List environment settings instead of modules
In talking with consumers of the environment information it turns out that listing the modules isn't the desired feature. Instead they really want the settings of the environment (modulepath, manifest). Other settings may be added later. This has the added benefit that listing the environments is now a much cheaper operations since it doesn't need to load the module data.
- Loading branch information
Showing
4 changed files
with
55 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,39 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Environment Enumeration", | ||
"description": "An enumeration of environments and their modules", | ||
"type": "object", | ||
"properties": { | ||
"search_paths": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"minItems": 1, | ||
"description": "An array of the paths where the master looked for environments." | ||
}, | ||
"environments": { | ||
"type": "object", | ||
"patternProperties": { | ||
"^[a-z0-9_]+$": { | ||
"type": "object", | ||
"properties": { | ||
"modules" : { | ||
"type": "object", | ||
"patternProperties": { | ||
"^[a-z0-9_\-]+$": { | ||
"type": "object", | ||
"properties": { | ||
"version": { "type": "string" } | ||
}, | ||
"required": ["version"] | ||
} | ||
} | ||
} | ||
}, | ||
"required": ["modules"] | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Environment Enumeration", | ||
"description": "An enumeration of environments and their settings", | ||
"type": "object", | ||
"properties": { | ||
"search_paths": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"minItems": 1, | ||
"description": "An array of the paths where the master looked for environments." | ||
}, | ||
"environments": { | ||
"type": "object", | ||
"patternProperties": { | ||
"^[a-z0-9_]+$": { | ||
"type": "object", | ||
"properties": { | ||
"settings" : { | ||
"type": "object", | ||
"properties": { | ||
"manifest": { "type": "string" }, | ||
"modulepath": { | ||
"type": "array", | ||
"items": { "type": "string" } | ||
} | ||
}, | ||
"required": ["modulepath", "manifest"] | ||
} | ||
}, | ||
"required": ["settings"] | ||
} | ||
}, | ||
"required": ["search_paths", "environments"] | ||
} | ||
} | ||
}, | ||
"required": ["search_paths", "environments"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters