| | 67 | === Conditional Configuration == |
| | 68 | |
| | 69 | If a site-specific template is executed in the context of profile cloning (as part of the configuration replayed on every node), it may test the variable `PROFILE_CLONING_CLONED_NODE` to do (or ignore) some actions in the context of profile cloning. This variable has the value `true` when the profile is cloned rather than rebuilt. |
| | 70 | |
| | 71 | ''Note: in an early version of profile cloning, this variable was called DUMMY_NODE. If you used this variable, you need to update it to the new one. There is no backward compatibility.'' |
| | 72 | |
| | 73 | For example to conditionally exclude some template when the profile is cloned, you may use: |
| | 74 | {{{ |
| | 75 | include { if ( PROFILE_CLONING_CLONED_NODE ) 'site/nocloning-config' }; |
| | 76 | }}} |