----- Original Message -----
> From: "Christoph Siebert" <[email protected]>
> To: "Foreman users" <[email protected]>
> Sent: Tuesday, July 26, 2016 9:43:56 AM
> Subject: [foreman-users] Foreman Templates
> 
> Hey there,
> 
> I got a problem with the templates.
> I wanted to write a ping template like this:
> 
> <%
> ping @host
> %>
> 
> After I studied some of the other templates that should send a ping to the
> host. I only done that to test if the connection and execution of templates
> is working on the host.
> But now I can't give my hosts any templates. If I choose under Hosts > All
> Hosts my host I can't add a template to the host. Nowhere is it possible.
> But there are so many example provision templates.
> 
> Why didn't the web UI recognize them to add them to the host?
> Did I misunderstand the templates/provision templates?
> 
> Main question: How can I send a ping or package-install command to the
> hosts I want to manage with foreman? The documentation doesn't seemed
> helpful there.

Hi Chris,

Provisioning templates are for provisioning the hosts, they are used by
kickstart, preseed, etc to build the host and configure it for the first
time.

It sounds like you want to run a command on a host, in that case you
should have a look at foreman_remote_execution plugin which can do
this via SSH.

https://theforeman.org/plugins/foreman_remote_execution/0.3/index.html

- Stephen

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to