Actions
Feature #6618
closedProvide a helper to indent in templates
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Description
When creating a cloud-init user data script, one may want to use the write-files directive to write out Foreman snippets, which would need to be indented. I'd like to add a helper called indent so I can do something like this:
#cloud-config
some_directive: true
foo: bar
write_files:
- path: /root/freeipa.sh
permissions: '0755'
content: |
<%
indent 4 do
snippet "freeipa-register"
end
%>
Updated by The Foreman Bot over 11 years ago
- Status changed from New to Ready For Testing
- Target version set to 1.8.0
- Pull request https://github.com/theforeman/foreman/pull/1586 added
- Pull request deleted (
)
Updated by Dominic Cleal over 11 years ago
- Category set to Templates
- Assignee set to Stephen Benjamin
Updated by Dominic Cleal over 11 years ago
- Translation missing: en.field_release set to 10
Updated by Anonymous over 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset b6983d00c3ef589c4a1099dbeed29301321bbcd6.
Actions