-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datum IEX #43
Comments
Just realized this may be the same thing as #21 ... 👍 |
Yep, it's the same as #21 but I don't plan on supporting anything else than variable interpolation out of the box, (no script block such as The other reason is that the last 2 are not possible, and they probably should not be anyway. As you know MOFs are compiled on the Build server, and you should be in a position where everything can be declared in data (which does not mean a 'human' has to manually creating it, but that a Build server can derive it from the config Data, consistently). In my experience (I know, unhelpful), 90% of the time you don't actually need runtime configuration data. Most likely, having runtime value interpolation assumes something specific about your environment that hides it away from the 'policies' defining the expected state (which could be the same as Black Magic for someone who doesn't know that rule). For the other 10%, I have a plan to have something similar on the Node side, but it's only in my head for now. |
I personally think that any string beginning with a dollar sign (
$
) should be ran throughInvoke-Expression
. That would cover several use cases:$Node.Name
$env:ComputerName
$((Get-CimInstance Win32_ComputerSystem).Name)
That last two would have to be compiled on the node, but serves as an example. If you really want a string beginning with a
$
, do:$('$pecial$tring')
.Thoughts?
The text was updated successfully, but these errors were encountered: