|
18 | 18 | * [`tomcat::config::context::parameter`](#tomcatconfigcontextparameter): Configure Parameter elements in $CATALINA_BASE/conf/context.xml. |
19 | 19 | * [`tomcat::config::context::resource`](#tomcatconfigcontextresource): Configure Resource elements in $CATALINA_BASE/conf/context.xml |
20 | 20 | * [`tomcat::config::context::resourcelink`](#tomcatconfigcontextresourcelink): Configure a ResourceLink element in the designated xml config. |
| 21 | +* [`tomcat::config::context::resources`](#tomcatconfigcontextresources): Configure Resources elements in $CATALINA_BASE/conf/context.xml |
21 | 22 | * [`tomcat::config::context::valve`](#tomcatconfigcontextvalve): Specifies Valve elements in `${catalina_base}/conf/context.xml` |
22 | 23 | * [`tomcat::config::properties::property`](#tomcatconfigpropertiesproperty): Manage additional entries for the properties file, typically catalina.properties |
23 | 24 | * [`tomcat::config::server`](#tomcatconfigserver): Configure attributes for the Server element in $CATALINA_BASE/conf/server.xml |
@@ -566,6 +567,83 @@ Specifies display differences when augeas changes files, defaulting to true. Val |
566 | 567 |
|
567 | 568 | Default value: ``true`` |
568 | 569 |
|
| 570 | +### <a name="tomcatconfigcontextresources"></a>`tomcat::config::context::resources` |
| 571 | + |
| 572 | +Configure Resources elements in $CATALINA_BASE/conf/context.xml |
| 573 | + |
| 574 | +#### Parameters |
| 575 | + |
| 576 | +The following parameters are available in the `tomcat::config::context::resources` defined type: |
| 577 | + |
| 578 | +* [`ensure`](#ensure) |
| 579 | +* [`resources_name`](#resources_name) |
| 580 | +* [`name`](#name) |
| 581 | +* [`resources_type`](#resources_type) |
| 582 | +* [`catalina_base`](#catalina_base) |
| 583 | +* [`additional_attributes`](#additional_attributes) |
| 584 | +* [`attributes_to_remove`](#attributes_to_remove) |
| 585 | +* [`show_diff`](#show_diff) |
| 586 | + |
| 587 | +##### <a name="ensure"></a>`ensure` |
| 588 | + |
| 589 | +Data type: `Enum['present','absent']` |
| 590 | + |
| 591 | +Specifies whether you are trying to add or remove the Resources element. |
| 592 | + |
| 593 | +Default value: `'present'` |
| 594 | + |
| 595 | +##### <a name="resources_name"></a>`resources_name` |
| 596 | + |
| 597 | +Data type: `Any` |
| 598 | + |
| 599 | +The name of the Resources to be created, relative to the `java:comp/env` context. `$name`. |
| 600 | + |
| 601 | +Default value: `$name` |
| 602 | + |
| 603 | +##### <a name="name"></a>`name` |
| 604 | + |
| 605 | +`$resources_name` |
| 606 | + |
| 607 | +##### <a name="resources_type"></a>`resources_type` |
| 608 | + |
| 609 | +Data type: `Any` |
| 610 | + |
| 611 | +The fully qualified Java class name expected by the web application when it performs a lookup for this resources. Required to create the resource. |
| 612 | + |
| 613 | +Default value: ``undef`` |
| 614 | + |
| 615 | +##### <a name="catalina_base"></a>`catalina_base` |
| 616 | + |
| 617 | +Data type: `Any` |
| 618 | + |
| 619 | +Specifies the root of the Tomcat installation. |
| 620 | + |
| 621 | +Default value: `$::tomcat::catalina_home` |
| 622 | + |
| 623 | +##### <a name="additional_attributes"></a>`additional_attributes` |
| 624 | + |
| 625 | +Data type: `Hash` |
| 626 | + |
| 627 | +Specifies any additional attributes to add to the Valve. Should be a hash of the format 'attribute' => 'value'. Optional |
| 628 | + |
| 629 | +Default value: `{}` |
| 630 | + |
| 631 | +##### <a name="attributes_to_remove"></a>`attributes_to_remove` |
| 632 | + |
| 633 | +Data type: `Array` |
| 634 | + |
| 635 | +Specifies an array of attributes to remove from the element. Valid options: an array of strings. `[]`. |
| 636 | + |
| 637 | +Default value: `[]` |
| 638 | + |
| 639 | +##### <a name="show_diff"></a>`show_diff` |
| 640 | + |
| 641 | +Data type: `Boolean` |
| 642 | + |
| 643 | +Specifies display differences when augeas changes files, defaulting to true. Valid options: true or false. |
| 644 | + |
| 645 | +Default value: ``true`` |
| 646 | + |
569 | 647 | ### <a name="tomcatconfigcontextvalve"></a>`tomcat::config::context::valve` |
570 | 648 |
|
571 | 649 | Specifies Valve elements in `${catalina_base}/conf/context.xml` |
|
0 commit comments