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.
-
hi @Adam1; thank you for the detailed reproduction instructions.
You are correct, this is indeed a bug, and it will be fixed in the next maintenance release (scheduled for Friday) as OT-381. If you'd like a pre-release, we can easily share one to you as well!