X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=deploy%2FREADME.templater;h=b5d52ab9deebb683f48810c14b17ebf5f97a42d1;hb=refs%2Fchanges%2F93%2F22693%2F2;hp=964872fb71be02fc58cecda80375c6235fb1641b;hpb=6d01c223e8bab2f5bab4941d12a1f09c5d5123b0;p=fuel.git diff --git a/deploy/README.templater b/deploy/README.templater index 964872fb7..b5d52ab9d 100644 --- a/deploy/README.templater +++ b/deploy/README.templater @@ -49,6 +49,12 @@ syntax is described below: Specify a network type and a role as arguments to interface(). +5. File inclusion + + %{include(templates/interfaces.yaml)} + + Filename with absolute or relative path. + ======== EXAMPLES ======== @@ -275,3 +281,91 @@ compute_private_if: ens5 mongo_mgmt_if: ens3 controller_private_if: ens4 + +--- Example 4 --- + +Template file: + +version: 1.1 +created: Mon Jun 13 19:39:35 2016 +comment: None +%{include(environment.yaml)} + + +environment.yaml: + +environment: + name: F9-NOSDN-NOFEATURE-VXLAN-BAREMETAL + net_segment_type: tun + + +Result: + +version: 1.1 +created: Mon Jun 13 19:39:35 2016 +comment: None +environment: + name: F9-NOSDN-NOFEATURE-VXLAN-BAREMETAL + net_segment_type: tun + + +--- Example 5 --- + +Template file (except): + +settings: + editable: + access: + email: + description: Email address for Administrator + label: Email + regex: + error: Invalid email + source: ^\S+@\S+$ + type: text + value: admin@localhost + weight: 40 +# ... +# lines omitted for brevity + %{include(templates/cgroups.yaml)} + + +cgroups.yaml: + + cgroups: + metadata: + always_editable: true + group: general + label: Cgroups conguration for services + restrictions: + - action: hide + condition: 'true' + weight: 90 + + +Result: + +settings: + editable: + access: + email: + description: Email address for Administrator + label: Email + regex: + error: Invalid email + source: ^\S+@\S+$ + type: text + value: admin@localhost + weight: 40 +# ... +# again, lines omitted for brevity + cgroups: + metadata: + always_editable: true + group: general + label: Cgroups conguration for services + restrictions: + - action: hide + condition: 'true' + weight: 90 +