Git Product home page Git Product logo

ansible-4's Introduction

Ansible Collection - cobbler.cobbler

This collection contains an inventory plugin for collecting iventory information from a cobbler server.

Installation

You can install the collection from Ansible Galaxy by running ansible-galaxy collection install cobbler.cobbler (Ansible 2.9 and later) or ansible-galaxy collection install git+https://github.com/cobbler/ansible.git for the latest version in git.

Configuration

You can define one or more inventory files with suffix .cobbler.{yaml,yml} as follows:

plugin: cobbler
url: https://cobbler.example.com/cobbler_api

See also the Ansible Inventory Plugins documentation for more information on how to use inventory plugins.

Documentation

> INVENTORY    (plugins/inventory/cobbler.py)

        Get inventory hosts from the cobbler service. Uses a configuration file as an inventory source, it must end in ``.cobbler.yml``
        or ``.cobbler.yaml`` and has a ``plugin: cobbler`` entry.

OPTIONS (= is mandatory):

- cache
        Toggle to enable/disable the caching of the inventory's source data, requires a cache plugin setup to work.
        [Default: False]
        set_via:
          env:
          - name: ANSIBLE_INVENTORY_CACHE
          ini:
          - key: cache
            section: inventory
        
        type: bool

- cache_connection
        Cache connection data or path, read cache plugin documentation for specifics.
        [Default: (null)]
        set_via:
          env:
          - name: ANSIBLE_CACHE_PLUGIN_CONNECTION
          - name: ANSIBLE_INVENTORY_CACHE_CONNECTION
          ini:
          - key: fact_caching_connection
            section: defaults
          - key: cache_connection
            section: inventory
        
        type: str

- cache_plugin
        Cache plugin to use for the inventory's source data.
        [Default: memory]
        set_via:
          env:
          - name: ANSIBLE_CACHE_PLUGIN
          - name: ANSIBLE_INVENTORY_CACHE_PLUGIN
          ini:
          - key: fact_caching
            section: defaults
          - key: cache_plugin
            section: inventory
        
        type: str

- cache_prefix
        Prefix to use for cache plugin files/tables
        [Default: ansible_inventory_]
        set_via:
          env:
          - name: ANSIBLE_CACHE_PLUGIN_PREFIX
          - name: ANSIBLE_INVENTORY_CACHE_PLUGIN_PREFIX
          ini:
          - key: fact_caching_prefix
            section: default
          - key: cache_prefix
            section: inventory
        

- cache_timeout
        Cache duration in seconds
        [Default: 3600]
        set_via:
          env:
          - name: ANSIBLE_CACHE_PLUGIN_TIMEOUT
          - name: ANSIBLE_INVENTORY_CACHE_TIMEOUT
          ini:
          - key: fact_caching_timeout
            section: defaults
          - key: cache_timeout
            section: inventory
        
        type: int

- exclude_profiles
        profiles to exclude from inventory
        [Default: []]
        type: list

- group
        group to place all hosts into
        [Default: cobbler]

- group_by
        keys to group hosts by
        [Default: [u'mgmt_classes', u'owners', u'status']]
        type: list

- group_prefix
        prefix to apply to cobbler groups
        [Default: cobbler_]

- password
        cobbler authentication password
        [Default: (null)]
        set_via:
          env:
          - name: COBBLER_PASSWORD
        

= plugin
        the name of this plugin, it should always be set to 'cobbler' for this plugin to recognize it as it's own.
        (Choices: cobbler)

- url
        url to cobbler
        [Default: http://cobbler/cobbler_api]
        set_via:
          env:
          - name: COBBLER_SERVER
        

- user
        cobbler authentication user
        [Default: (null)]
        set_via:
          env:
          - name: COBBLER_USER
        

- want_facts
        Toggle, if True the plugin will retrieve host facts from the server
        [Default: True]
        type: boolean


NAME: cobbler

PLUGIN_TYPE: inventory

EXAMPLES:

# my.cobbler.yml
plugin: cobbler
url: http://cobbler/cobbler_api
user: ansible-tester
password: secure

ansible-4's People

Contributors

opoplawski avatar schoolguy avatar

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.