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!

    Role Dependency Collect / Configure Behaviour

    Scheduled Pinned Locked Moved Support
    otterpowershell
    3 Posts 1 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Background:
      I had an issue with the collection stage of PSDsc failing if powershell is not at least version 5 on the target machine. I can partially solve this with some custom assets to collect and configure powershell 5 installation via PSEnsure.

      I've set up the powershell 5 installation as part of a server role that is a dependency of all other server roles.

      Problem:
      It seems that for a base role B and a dependent role D, that the order of execution will be

      • B (Collect)
      • D (Collect)
      • B (Configure)
      • D (Configure)

      but this will not work for me because without B being configured the D collection will fail, which also then blocks the B configuration

      Is there some way to abort/defer dependent roles until the base roles are properly configured?

      Am I tackling this problem in a reasonable way?

      Product: Otter
      Version: 1.6.2

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        When you say D (Collect) is failing, are you saying there's an execution error during the collection phase? If so, that's a bug in the implementation of that particular collection - it should be logging warnings and appear drifted instead of generating an error.

        Can you show the error log that is being generated (or submit it as a ticket referencing this post if you don't want it public).

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Just as an update to this, we have updated the behavior of how role dependencies work to better support this scenario. Given the original example...

          • B (Collect)
          • D (Collect)
          • B (Configure)
          • D (Configure)

          The new behavior will be that, if "B" reports drift, then "D" (as a dependent role) will also be considered drifted, and then both B and D will be configured as expected.

          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