Giter Site home page Giter Site logo

Comments (6)

tryfan avatar tryfan commented on July 22, 2024 1

If the plugin is being run from Morpheus, it will use morpheus['morpheus']['applianceUrl'] and morpheus['morpheus']['apiAccessToken']. If you add -vv to the command options for the ansible task, it will output Using ephemeral Morpheus token from Morpheus task to let you know that it's found and is using the token.

from ansible-collection-morpheus-core.

eisiv avatar eisiv commented on July 22, 2024

It seems like the task isn't picking up the token nor the appliance url, even though it says so with the -vv flag, it fails because no hosts are matched, though it does work if you supply url and token.

from ansible-collection-morpheus-core.

eisiv avatar eisiv commented on July 22, 2024

Even weirder is when I supply the url and token in our test environment, it seems to be reading the wrong appliance_url, and targeting production, so I'm not sure if that has something to do with how our test environment was created(DB copy), or something else.

from ansible-collection-morpheus-core.

tryfan avatar tryfan commented on July 22, 2024

There's something odd about the environment in that case. If you run an ansible task and debug the morpheus var, you will see what the plugin should be using.

from ansible-collection-morpheus-core.

eisiv avatar eisiv commented on July 22, 2024

Okay, so it works fine when run as a task, but not when run as a workflow, anything you're able to reproduce perhaps?

from ansible-collection-morpheus-core.

tryfan avatar tryfan commented on July 22, 2024

I've run a test with the plugin using the api key supplied by morpheus. I'm using an operational workflow. I was getting a bad token error, but it only happened once, and I haven't been able to reproduce it. Perhaps you'll have better luck. I inserted 2 lines before line 78 in morpheus_inventory.py:

        self.print_verbose_message(self.extravars['morpheus']['morpheus'])
        self.print_verbose_message(returned_v)

That will show you the ephemeral token the task is being given, as well as any error from the version query, which is the first time the plugin tries to use the token.

from ansible-collection-morpheus-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.