GithubHelp home page GithubHelp logo

hg8496 / ansible-hcloud-inventory Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 18.0 29 KB

An dynamic inventory script for hetzner cloud

License: MIT License

Python 100.00%
ansible ansible-inventory hcloud

ansible-hcloud-inventory's People

Contributors

3cky avatar aft2d avatar dacrhu avatar gadelkareem avatar hg8496 avatar jqueuniet avatar myukselen avatar ohdmax avatar siwyd avatar slapsh avatar tutunak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ansible-hcloud-inventory's Issues

hcloud.py does not meet host_list requirements

When running a meta: refresh_inventory in a playbook, the following message is shown:

hcloud.py did not meet host_list requirements, check plugin documentation if this is unexpected

The script nevertheless gathers the hosts from the Hetzner Cloud.

Usage of "-" in group names is deprecated

Ansible deprecated the usage of the "-" character for group names, since they cannot safely be used as Python variables: inventory, constants

Ansible therefore complains: [WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details

The following two lines are affected:

dc = server['datacenter']['name']

vlabel=label + '-' + server['labels'][label]

Using .rename("-", "_") and + '_' + solves the problem. It may break some scripts, though.

Upstream to ansible/contrib

Do you have plans to upstream this to the Ansible repo in the contrib directory? It would be nice if people could simply find it over there. The inventory works nicely, seems worthwhile to get it included upstream.

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.