On 2015-12-01 09:54, Sarevok Anchev wrote:
Hello,

Recently I submitted openbsd_rcctl to ansible. In order to speed up the
process of having it included by default, I'm asking the community to
review/test the module and drop a comment at
https://github.com/ansible/ansible-modules-extras/pull/1296

Let me know if there are other OpenBSD-specific modules you'd like to see
for ansible.

p.s: not subscribed to the list, cc me
Hey Sarevok,

Much appreciated. If you have the time I'd really like improved gre interface support for the tunnel configuration. See below example. Thanks for asking and for offer your help.

## TEST OPENBSD MACHINE

# uname -a
OpenBSD test46.local.lan 5.8 GENERIC#1534 amd64

# ifconfig gre0 create 1.2.3.4 5.6.7.8 tunnel 11.22.33.44 55.66.77.88

# ifconfig gre0
gre0: flags=9011<UP,POINTOPOINT,LINK0,MULTICAST> mtu 1476
        priority: 0
        groups: gre
        tunnel: inet 11.22.33.44 -> 55.66.77.88
        inet 1.2.3.4 --> 5.6.7.8 netmask 0xff000000


## LAPTOP WITH ANSIBLE

# ansible -m setup test46.local.lan -a 'filter=ansible_gre0'

test46.local.lan | success >> {
    "ansible_facts": {
        "ansible_gre0": {
            "device": "gre0",
            "flags": [
                "UP",
                "POINTOPOINT",
                "LINK0",
                "MULTICAST"
            ],
            "ipv4": [
                {
                    "address": "1.2.3.4",
                    "broadcast": "0xff000000",
                    "netmask": "5.6.7.8",
                    "network": "1.2.3.0"
                }
            ],
            "ipv6": [],
            "macaddress": "unknown",
            "mtu": "1476",
            "type": "unknown"
        }
    },
    "changed": false
}

Reply via email to