Feature #6618

Provide a helper to indent in templates

Added by Stephen Benjamin almost 4 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assigned To:Stephen Benjamin
Category:Templates
Target version:Sprint 26
Difficulty: Bugzilla link:1135973
Found in release: Pull request:https://github.com/theforeman/foreman/pull/1586
Story points-
Velocity based estimate-
Release1.6.0Release relationshipAuto

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
%>

Associated revisions

Revision b6983d00
Added by Stephen Benjamin over 3 years ago

fixes #6618 - provide an indentation helper for provisioning templates

History

#1 Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Target version set to Sprint 26
  • Pull request https://github.com/theforeman/foreman/pull/1586 added

#2 Updated by Dominic Cleal almost 4 years ago

  • Category set to Templates
  • Assigned To set to Stephen Benjamin

#3 Updated by Dominic Cleal over 3 years ago

  • Release set to 1.6.0

#4 Updated by Anonymous over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Stephen Benjamin over 3 years ago

  • Bugzilla link set to 1135973

Also available in: Atom PDF