此内容没有您所选择的语言版本。
4.7. Extended Example: Provisioning and Content Deployments (Bundles)
Allowing content to be deployed to a resource using the bundle system is enabled by defining allowed target locations for content to be provisioned to.
As with drift configuration, bundle configuration identifies the target location based on information in one of four areas:
- fileSystem, which is any directory on the machine local to the resource
- pluginConfiguration, which is defined property in the resource plug-in, like a home directory
- resourceConfiguration, a resource configuration property
- measurementTrait, a trait that is gathered about the resource
That area is the value name in the bundle definition. The actual value is the value context.
Example 4.25. A Single Bundle Base Directory
The potential target locations, the <destination-base-dir>, are presented to users as options when they are provisioning a bundle. Users can deploy a bundle to any, user-defined directory beneath that base directory, but they cannot deploy to a location outside that directory. If users will reasonably want to provision content to multiple directories, then each directory needs to be added to the <bundle-target> definition.
Example 4.26. Multiple Bundle Base Directories
NOTE
There can be only one bundle definition for a resource type, but it can define multiple locations where content is allowed to be deployed.