Project

General

Profile

Actions

Feature #15320

open

Make it possible to get an arbitrary templated script from foreman during provisioning

Added by Jan Schermer about 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Preseed has its limits, particularly on line lengths so inlining more complex scripts is impossible.
In order to do more complicated stuff, one has to do something like:
d-i preseed/late_command string wget http://192.168.0.1:8000/provision.sh -O /target/root/provision.sh ; sh /target/root/provision.sh

It would be nice to be able to get an arbitrary template/script like this:

wget <%= foreman_url('arbitraryscript') >
wget <
= foreman_url('someother_arbitraryscript') %>

Right now it's possible to do that for one "script", which is not enough and one has to do hacks using parameters when executing the script in different phases of the provisioning.

One could also use this for configuration creation by having foreman interpret an ERB template, possibly even outside of provisioning...

Thank you.

Actions

Also available in: Atom PDF