Compare commits

...

2 Commits

Author SHA1 Message Date
745f6acc04
Add new infra collection 2023-03-19 01:45:43 -04:00
43fbb3993b
Update makefile to use latest poetry command syntax 2023-03-19 01:45:23 -04:00
5 changed files with 103 additions and 1 deletions

View File

@ -3,7 +3,7 @@ clean:
rm --recursive --force .tox/
dev:
@poetry install --remove-untracked
@poetry install --sync
@poetry run pre-commit install
@poetry run ansible-galaxy collection install --requirements-file ./requirements.yaml --collections-path ./.ansible
@bash ./link-local-collections.sh

3
skylab/infra/README.md Normal file
View File

@ -0,0 +1,3 @@
# Ansible Collection - skylab.infra
Documentation for the collection.

14
skylab/infra/galaxy.yml Normal file
View File

@ -0,0 +1,14 @@
namespace: skylab
name: core
version: 0.0.0
description: Network deployment procedures and configuration state management
authors:
- Ethan Paul <me@enp.one>
license:
- MIT
readme: README.md
tags: []
repository: https://vcs.enp.one/skylab/skylab-ansible/
build_ignore: []
dependencies: {}

View File

@ -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

View File

@ -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).