Chris O'Regan wrote:
>> I would like to distribute some post scripts via the Cobbler
web server
>> and I am wondering where to place them. Any suggestions?
>>
>>
>>
> Snippets are a great fit for this:
>
> Have your RPM drop the snippets in:
>
> /var/lib/cobbler/snippets/acmecorp/myfoo
>
> Invoked as
>
> %post
> SNIPPET::acmecorp/myfoo
>
I've thought about this, but I find that Cheetah often gets in the way
when the snippets are parsed. Also, I need to copy some files as well. I
could turn them into "here" documents, but again, I don't want Cheetah
to parse them.
Inside your snippet, include the following Cheetah directives:
#raw
#endraw
Think I will drop them into "localmirror", mirror them to
the client
with lftp and then launch them from %post. (Basically, I am moving my
legacy Kickstart scripts for RHEL3 over to Cobbler and I don't want to
make too many changes.)
At this point, /var/www/mystuff is better as it's not in a directory
owned by Cobbler, all you need is some space in the webroot.
Thanks,
Chris
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler