From 745f6acc04834f77a518359bc71200f4b01d85e3 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Sun, 19 Mar 2023 01:45:43 -0400 Subject: [PATCH] Add new infra collection --- skylab/infra/README.md | 3 ++ skylab/infra/galaxy.yml | 14 +++++++++ skylab/infra/meta/runtime.yml | 52 ++++++++++++++++++++++++++++++++++ skylab/infra/plugins/README.md | 33 +++++++++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 skylab/infra/README.md create mode 100644 skylab/infra/galaxy.yml create mode 100644 skylab/infra/meta/runtime.yml create mode 100644 skylab/infra/plugins/README.md diff --git a/skylab/infra/README.md b/skylab/infra/README.md new file mode 100644 index 0000000..72faa44 --- /dev/null +++ b/skylab/infra/README.md @@ -0,0 +1,3 @@ +# Ansible Collection - skylab.infra + +Documentation for the collection. diff --git a/skylab/infra/galaxy.yml b/skylab/infra/galaxy.yml new file mode 100644 index 0000000..6af986f --- /dev/null +++ b/skylab/infra/galaxy.yml @@ -0,0 +1,14 @@ +namespace: skylab +name: core +version: 0.0.0 +description: Network deployment procedures and configuration state management +authors: + - Ethan Paul +license: + - MIT +readme: README.md +tags: [] +repository: https://vcs.enp.one/skylab/skylab-ansible/ +build_ignore: [] + +dependencies: {} diff --git a/skylab/infra/meta/runtime.yml b/skylab/infra/meta/runtime.yml new file mode 100644 index 0000000..20f709e --- /dev/null +++ b/skylab/infra/meta/runtime.yml @@ -0,0 +1,52 @@ +--- +# Collections must specify a minimum required ansible version to upload +# to galaxy +# requires_ansible: '>=2.9.10' + +# Content that Ansible needs to load from another location or that has +# been deprecated/removed +# plugin_routing: +# action: +# redirected_plugin_name: +# redirect: ns.col.new_location +# deprecated_plugin_name: +# deprecation: +# removal_version: "4.0.0" +# warning_text: | +# See the porting guide on how to update your playbook to +# use ns.col.another_plugin instead. +# removed_plugin_name: +# tombstone: +# removal_version: "2.0.0" +# warning_text: | +# See the porting guide on how to update your playbook to +# use ns.col.another_plugin instead. +# become: +# cache: +# callback: +# cliconf: +# connection: +# doc_fragments: +# filter: +# httpapi: +# inventory: +# lookup: +# module_utils: +# modules: +# netconf: +# shell: +# strategy: +# terminal: +# test: +# vars: + +# Python import statements that Ansible needs to load from another location +# import_redirection: +# ansible_collections.ns.col.plugins.module_utils.old_location: +# redirect: ansible_collections.ns.col.plugins.module_utils.new_location + +# Groups of actions/modules that take a common set of options +# action_groups: +# group_name: +# - module1 +# - module2 diff --git a/skylab/infra/plugins/README.md b/skylab/infra/plugins/README.md new file mode 100644 index 0000000..012bb1e --- /dev/null +++ b/skylab/infra/plugins/README.md @@ -0,0 +1,33 @@ +# Collections Plugins Directory + +This directory can be used to ship various plugins inside an Ansible collection. Each +plugin is placed in a folder that is named after the type of plugin it is in. It can also +include the `module_utils` and `modules` directory that would contain module utils and +modules respectively. + +Here is an example directory of the majority of plugins currently supported by Ansible: + +``` +└── plugins + ├── action + ├── become + ├── cache + ├── callback + ├── cliconf + ├── connection + ├── filter + ├── httpapi + ├── inventory + ├── lookup + ├── module_utils + ├── modules + ├── netconf + ├── shell + ├── strategy + ├── terminal + ├── test + └── vars +``` + +A full list of plugin types can be found at +[Working With Plugins](https://docs.ansible.com/ansible-core/2.14/plugins/plugins.html).