Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
[OTTER] Avaliability of variables from multiple roles
-
Hi,
I have trouble accessing variables from different roles. I have two roles defined:- Role1.
a. It has a TestVariable variable of Value1.
b. Has a configuration plan:
Ensure-Directory c:\$TestVariable;- Role2
a. It has a TestVariable variable of Value2.
b. Has a configuration plan:
Ensure-Directory c:\$TestVariable;After assigning both roles to the server, only the directory from Role1 is created. I would expect two directories to be created.
Is this correct?This is the execution output:
DEBUG: 2020-08-21 19:16:22Z - Beginning collection run...
DEBUG: 2020-08-21 19:16:22Z - Collecting configuration...
DEBUG: 2020-08-21 19:16:22Z - Looking for c:\Value1...
DEBUG: 2020-08-21 19:16:22Z - Directory does not exist.
DEBUG: 2020-08-21 19:16:22Z - Comparing configuration...
DEBUG: 2020-08-21 19:16:22Z - Difference: Exists
DEBUG: 2020-08-21 19:16:22Z - =Template=> True
DEBUG: 2020-08-21 19:16:22Z - = Actual => False
INFO : 2020-08-21 19:16:22Z - Configuration drift detected.
DEBUG: 2020-08-21 19:16:22Z - Adding to execution plan.
DEBUG: 2020-08-21 19:16:22Z - Collecting configuration...
DEBUG: 2020-08-21 19:16:22Z - Looking for c:\Value1...
DEBUG: 2020-08-21 19:16:22Z - Directory does not exist.
DEBUG: 2020-08-21 19:16:22Z - Comparing configuration...
DEBUG: 2020-08-21 19:16:22Z - Difference: Exists
DEBUG: 2020-08-21 19:16:22Z - =Template=> True
DEBUG: 2020-08-21 19:16:22Z - = Actual => False
INFO : 2020-08-21 19:16:22Z - Configuration drift detected.
DEBUG: 2020-08-21 19:16:22Z - Adding to execution plan.
DEBUG: 2020-08-21 19:16:22Z - Collection run complete.
INFO : 2020-08-21 19:16:22Z - Collection run succeeded.
DEBUG: 2020-08-21 19:16:22Z - Beginning execution run...
DEBUG: 2020-08-21 19:16:22Z - Looking for c:\Value1...
DEBUG: 2020-08-21 19:16:22Z - Directory does not exist, creating...
INFO : 2020-08-21 19:16:22Z - Directory c:\Value1 configured.
DEBUG: 2020-08-21 19:16:22Z - Storing configuration template...
DEBUG: 2020-08-21 19:16:22Z - Looking for c:\Value1...
INFO : 2020-08-21 19:16:22Z - Directory c:\Value1 configured.
DEBUG: 2020-08-21 19:16:22Z - Storing configuration template...
INFO : 2020-08-21 19:16:22Z - Execution run succeeded. - Role1.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login