Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dmsimard's full-sized avatar

David Moreau Simard dmsimard

View GitHub Profile
@dmsimard
dmsimard / asciiflow.txt
Created November 19, 2022 23:40
ara internal workflow
Foreground
(synchronous, blocking) ┌─► v2_playbook_on_task_start
│ v2_runner_on_ok
│ - wait for previous task pool (if any) v2_runner_on_unreachable ┌─► v2_playbook_on_stats
┌─► __init__ ┌─► v2_playbook_on_start │ - initialize task thread pool v2_runner_on_failed │
│ │ ┌─► v2_playbook_on_play_start │ - self.client.post("/api/v1/files") ┌─► v2_runner_on_skipped
@dmsimard
dmsimard / test.py
Created June 5, 2019 16:04
ara with ansible-runner
#!/usr/bin/env python3
# Proof of concept ara with ansible-runner
# Requires https://github.com/ansible/ansible-runner/issues/219#issuecomment-496191227
import ansible_runner
import os
from ara.setup import callback_plugins
PLAYBOOK = """
- name: Test for ansible-runner
@dmsimard
dmsimard / collection-repos.py
Last active May 19, 2022 00:11
git repos for collections in ansible package
#!/usr/bin/env python3
# Query an ansible.in file to retrieve the list of collections included in the Ansible
# package so we can query galaxy and retrieve their git repositories.
# ansible.in files can be cloned from ansible-build-data:
# - https://github.com/ansible-community/ansible-build-data/blob/main/2.10/ansible.in
# - https://github.com/ansible-community/ansible-build-data/blob/main/3/ansible.in
import argparse
import json
import logging
@dmsimard
dmsimard / failed.txt
Last active March 23, 2022 00:51
include_role runner_on_ok
$ ansible-playbook failed.yml || echo $?
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
2022-03-22 20:40:05,541 DEBUG ara.plugins.callback.default: v2_playbook_on_start
PLAY [Reproducer that fails] ****************************************************************************************************************************************************************************************************************************
2022-03-22 20:40:05,592 DEBUG ara.plugins.callback.default: v2_playbook_on_play_start
TASK [Include a role that does not exist] ***************************************************************************************************************************************************************************************************************
2022-03-22 20:40:05,741 DEBUG ara.plugins.callback.default: v2_playbook_on_task_start
@dmsimard
dmsimard / ansible-core2.12-modules.txt
Created March 22, 2022 15:10
ansible plugin and module count
# find lib/ansible/modules/ -type f -name "*.py" | grep -v __init__.py
lib/ansible/modules/known_hosts.py
lib/ansible/modules/_include.py
lib/ansible/modules/user.py
lib/ansible/modules/service.py
lib/ansible/modules/command.py
lib/ansible/modules/include_vars.py
lib/ansible/modules/copy.py
lib/ansible/modules/wait_for.py
lib/ansible/modules/meta.py
@dmsimard
dmsimard / removed_files.log
Created January 7, 2022 19:05
fedora ansible packaging removed files
This file has been truncated, but you can view the full file.
# via https://src.fedoraproject.org/rpms/ansible/pull-request/19
# Files removed from packaging, see https://github.com/ansible-community/community-topics/issues/29
ansible_collections/google/cloud/.ansible-lint
ansible_collections/google/cloud/roles/stackdriver_logging/molecule/default/.ansible-lint
ansible_collections/google/cloud/roles/stackdriver_logging/molecule/default/.yamllint
ansible_collections/google/cloud/roles/stackdriver_monitoring/molecule/default/.ansible-lint
ansible_collections/google/cloud/roles/stackdriver_monitoring/molecule/default/.yamllint
ansible_collections/google/cloud/.yamllint
ansible_collections/google/cloud/.github
ansible_collections/google/cloud/.github/workflows
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
@dmsimard
dmsimard / ara-with-centos7.sh
Created November 12, 2021 04:18
ara callback on centos7
#!/bin/bash
# From a fresh CentOS7 image
yum -y update
yum -y install git python3 python3-pip
python3 -m pip install venv
python3 -m venv ~/venv
source ~/venv/bin/activate
pip install pip --upgrade
pip install ara ansible-core
@dmsimard
dmsimard / collection-repos.py
Created October 19, 2021 14:51
List of git repositories for collections included in the Ansible package
#!/usr/bin/env python3
# Query an ansible.in file to retrieve the list of collections included in the Ansible
# package so we can query galaxy and retrieve their git repositories.
# ansible.in files can be cloned from ansible-build-data:
# - https://github.com/ansible-community/ansible-build-data/blob/main/2.10/ansible.in
# - https://github.com/ansible-community/ansible-build-data/blob/main/3/ansible.in
import argparse
import json
import logging

hi, and goodbye

The past few weeks has not been fun on IRC, the drama based on false information and assumptions has been insane. I've almost entirely been silent on the drama because I know the fallout that would happen if I spoke up.

A quick TLDR - I'm quitting all IRC development. KiwiIRC project lead, IRCv3 technical board, supporting the multitude of IRC networks, the lot.

Many people seem to think that I am supporting one side in everything that is going on, so just to be clear: I am not supporting any side of the current freenode drama - there is so much false information going around from everywhere that it is impossible to support anybody.

Woo freenode drama