Giter VIP home page Giter VIP logo

Comments (31)

theasp avatar theasp commented on May 18, 2024 4

@pgporada I agree. I'm able to do it using an empty inventory in Semaphore (I named it "From Hosts File"), and adding this to the "Extra CLI Arguments":

["--inventory", "hosts", 
 "--limit", "some-group"]

Being able to specify a file from the git repository would allow running it as a script, as per normal ansible behaviour.

from semaphore.

ndeixonne avatar ndeixonne commented on May 18, 2024 2

Actually you can specify custom inventory. You jsut need to override the parameter -i in the task template. The last -i in the code is given the priority.
If you need override any other parameters, try to override it in task template.

With -i, you can specify a custom script located in your git playbook, the custom script will be downloaded automatically and so you can use relative path. ex: ["-i","script.sh"] and script.sh is in the directory of your playboo in git.

from semaphore.

twhiston avatar twhiston commented on May 18, 2024 1

closing this as file type of inventory allows for dynamic inventory files to be included in the source repo

from semaphore.

gvenka008c avatar gvenka008c commented on May 18, 2024

@here... Any updates on this?

from semaphore.

lakshmantgld avatar lakshmantgld commented on May 18, 2024

@gvenka008c No answers. Built my own Ansible Tower.

from semaphore.

gvenka008c avatar gvenka008c commented on May 18, 2024

@Lakshman-LD Thanks. Got any repo to clone / view your Ansible tower version?

from semaphore.

gvenka008c avatar gvenka008c commented on May 18, 2024

@Lakshman-LD Any updates?

from semaphore.

matejkramny avatar matejkramny commented on May 18, 2024

You can automate the API, or adjust runner.js to have dynamic inventory.

from semaphore.

lakshmantgld avatar lakshmantgld commented on May 18, 2024

Dont have any repo to share!! sorry @gvenka008c

from semaphore.

gvenka008c avatar gvenka008c commented on May 18, 2024

@matejkramny I updated runner.js. How can i ensure the updated script is picked up by docker?

from semaphore.

gvenka008c avatar gvenka008c commented on May 18, 2024

@Lakshman-LD Thanks.

from semaphore.

matejkramny avatar matejkramny commented on May 18, 2024

@gvenka008c you can re-build the image or create an image from the semaphore image, and then edit those files.. Or you can attach to the container and edit files directly, restarting the node process afterwards

from semaphore.

matejkramny avatar matejkramny commented on May 18, 2024

Dynamic inventories will be supported in version 2 of semaphore.

It is WIP in branch https://github.com/ansible-semaphore/semaphore/tree/v2

from semaphore.

matejkramny avatar matejkramny commented on May 18, 2024

Sorry guys, reassigned to v2.1 release

from semaphore.

adambonny avatar adambonny commented on May 18, 2024

👍

from semaphore.

nathan-v avatar nathan-v commented on May 18, 2024

Is there any update on when this feature will be available?

from semaphore.

matejkramny avatar matejkramny commented on May 18, 2024

It'll be a couple of weeks/days.

So far (in my mind) the inventory will fetch EC2 instances using an AWS key, then filter it by a regex specified by the user.

Is there more to it or just simple as that?

from semaphore.

nathan-v avatar nathan-v commented on May 18, 2024

Better would be utilizing the EC2 instance tags rather than just the instance metadata.

My preference would be to also allow instance selection by grabbing instances that are members of an Auto Scaling Group. Often instances in AWS are deployed initially as AMIs to ASGs; being able to target the ASG members would be awesome.

from semaphore.

srpayne avatar srpayne commented on May 18, 2024

Why not just use ec2.py instead of creating something new? or give the option of piping to it?

from semaphore.

pgporada avatar pgporada commented on May 18, 2024

I was expecting to be able to point at a custom inventory file as well.

from semaphore.

pgporada avatar pgporada commented on May 18, 2024

@theasp Fantastic idea!

from semaphore.

JanSchr avatar JanSchr commented on May 18, 2024

Beeing able to choose an inventory file from a git repository would be awesome.

from semaphore.

morph027 avatar morph027 commented on May 18, 2024

Jip, would love it! So far, the extra cli arguments stuff works for me.

from semaphore.

punktik avatar punktik commented on May 18, 2024

Is there anywhere a howto for someone not familiar with nodejs?
I still cannot selct AWS dynamical inventory.
Thank you in advance for your help.

from semaphore.

aioue avatar aioue commented on May 18, 2024

is this released yet? It's greyed out in 2.3.0

from semaphore.

tf42src avatar tf42src commented on May 18, 2024

Still grayed out in v2.4.1. I have added AWS credentials in Key Store.

from semaphore.

anitakrueger avatar anitakrueger commented on May 18, 2024

Hi there,
I've just installed semaphore 2.4.1 and got all excited that I could now use AWS as the inventory. But when trying to create an inventory, as @tobiasfielitz said, AWS is greyed out as an option.
Is there a configuration step I am missing which is why it is greyed out? Or is the functionality not available yet?

Thanks!
Anita

from semaphore.

brad avatar brad commented on May 18, 2024

@aioue @tobiasfielitz @anitakrueger It's still unchecked in the roadmap (listed there as "Remote Inventories")

from semaphore.

GanimanSwift avatar GanimanSwift commented on May 18, 2024

I think this missing feature is what's going to prevent me from using Semaphore. I'd really like to be able to point it at a custom script.

from semaphore.

 avatar commented on May 18, 2024

Is there a way to just point a static inventory to the ansible hosts file on the server semaphore is running off? e.g. /etc/ansible/hosts

from semaphore.

twhiston avatar twhiston commented on May 18, 2024

I would like to try to get this feature in, via the api rather than an -i override into a 2.6.0 version
Dynamic inventory source should also allow 'none' so user can set only with cli arguments if required (to avoid empty inventory workarounds etc.....)

from semaphore.

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.