Skip to content

Instantly share code, notes, and snippets.

@richm
richm / tests_basic.yml
Created December 15, 2023 19:08
real new test
---
- name: Basic snapshot test
hosts: all
tasks:
- name: Run the storage role to create test LVs
include_role:
name: fedora.linux_system_roles.storage
- name: Get unused disks
include_tasks: get_unused_disk.yml
@richm
richm / gist:429da6554f1a93a8e51854c086f046a4
Created February 7, 2023 21:55
output of second run of play kube with podman version 4.4.0-dev
ok: [/home/rmeggins/.cache/linux-system-roles/rhel-9-2.qcow2] => {
"actions": [
"/usr/bin/podman play kube --start=true --log-level=debug /etc/containers/ansible-kubernetes.d/httpd2.yml"
],
"changed": false
}
STDERR:
time="2023-02-07T16:16:47-05:00" level=info msg="/usr/bin/podman filtering at log level debug"
@richm
richm / gist:a608d3db89d564a13a7b3cf97dceecf9
Created October 6, 2022 14:25
output of vdostats on latest el8
pool1-vdopool-vpool :
version : 31
release version : 133524
data blocks used : 55
overhead blocks used : 1048646
logical blocks used : 2651
physical blocks : 2620416
logical blocks : 3145984
1K-blocks : 10481664
1K-blocks used : 4194804
@richm
richm / gist:4ae0a36369ce7a7ad42b6ce5094230ff
Created October 6, 2022 14:25
output of vdostats on latest el9
pool1-vdopool-vpool :
version : 35
release version : 0
data blocks used : 52
overhead blocks used : 787526
logical blocks used : 2651
physical blocks : 2359296
logical blocks : 3145984
1K-blocks : 9437184
1K-blocks used : 3150312
vars:
vpn_connections:
- auth_method: psk
auto: start
# these common parameters are applied to the config of all hosts
shared_key_content: secure_vault_key
ike: aes256;sha512
esp: aes256;sha512
ikelifetime: 10h
salifetime: 8h

Changelog

[1.21.0-1] - 2022-07-28

  • firewall - add/delete/update services
    user defined services - add/delete/update
  • firewall - port_forward can be string or dict
  • firewall - support for firewall_config - gather firewall facts
ansible-galaxy [core 2.13.1]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/rmeggins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/rmeggins/linux-system-roles/podman/.tox/qemu-ansible-core-2.13/lib/python3.10/site-packages/ansible
ansible collection location = /home/rmeggins/.ansible/collections:/usr/share/ansible/collections
executable location = /home/rmeggins/linux-system-roles/podman/.tox/qemu-ansible-core-2.13/bin/ansible-galaxy
python version = 3.10.4 (main, Mar 25 2022, 00:00:00) [GCC 11.2.1 20220127 (Red Hat 11.2.1-9)]
jinja version = 3.1.2
libyaml = True
Using /etc/ansible/ansible.cfg as config file
Host 127.0.0.3
IdentitiesOnly yes
# -*- coding: utf-8 -*-
# Copyright: (c) 2020, Rich Megginson <rmeggins@redhat.com>
# SPDX-License-Identifier: GPL-2.0-or-later
#
""" Unit tests for kernel_settings module """
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from __future__ import absolute_import, division, print_function
__metaclass__ = type
import os
import tempfile
from ansible_collections.ansible.posix.tests.unit.compat import unittest
from ansible_collections.ansible.posix.tests.unit.compat.mock import patch, MagicMock