- From: Simon Detheridge <
>
- To:
- Subject: [chef] Writing a cross-platform template definition
- Date: Fri, 14 Nov 2014 11:51:31 +0000 (GMT)
Hi,
I'm trying to write a recipe that works on Linux and Windows.
If I write:
user "root"
in a template, Windows throws an error declaring "No mapping between account
names and security IDs was done."
The docs suggest that I should be using 'rights' instead of 'user', but this
means I'd have to write all of my templates or recipes twice. Is there a
workaround? (Can I map 'root' to 'Administrator'?)
I can set a 'root_user' attribute on my nodes, but this makes the cookbook
non-usable outside of my environment. Is there an accepted way to accomplish
this?
--
Simon Detheridge - CTO, Widgit Software
26 Queen Street, Cubbington, CV32 7NA - Tel: +44 (0)1926 333680
- [chef] Writing a cross-platform template definition, Simon Detheridge, 11/14/2014
Archive powered by MHonArc 2.6.16.