Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 6 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Adam1
      last edited by

      Hi,
      I have trouble accessing variables from different roles. I have two roles defined:

      1. Role1.
        a. It has a TestVariable variable of Value1.
        b. Has a configuration plan:
      Ensure-Directory c:\$TestVariable;
      
      1. 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.

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        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!

        1 Reply Last reply Reply Quote 0

        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
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation