Skip to content

Instantly share code, notes, and snippets.

@hoonetorg
hoonetorg / nested-virt.yaml
Created June 5, 2017 13:34 — forked from xsgordon/nested-virt.yaml
Playbook to enable nested virtualization for Intel CPUs on RHEL 7
# E.g. ansible-playbook nested-virt.yaml --extra-vars target=127.0.0.1
---
- hosts: "{{target}}"
tasks:
- name: Disable reverse path filtering (default)
sysctl: >
name=net.ipv4.conf.default.rp_filter
value=0
state=present
- name: Disable reverse path filtering (all)
######### !!!!!!!!!! with bridge_mappings
[root@os1 ~]# cat /etc/neutron/plugins/ml2/linuxbridge_agent.ini |grep mapping
# mapping physical network names to the agent's node-specific physical network
# listed in network_vlan_ranges on the server should have mappings to
#physical_interface_mappings = provider:bond0.2
#bridge_mappings =
bridge_mappings = provider:brextern
[root@os1 ~]# neutron agent-list
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
#On the node where the tenant vars are sourced
[root@os1 ~]# cat /etc/neutron/plugins/ml2/linuxbridge_agent.ini |grep mapping
# mapping physical network names to the agent's node-specific physical network
# listed in network_vlan_ranges on the server should have mappings to
physical_interface_mappings = provider:bond0.2
[root@os1 ~]# neutron agent-list
+--------------------------------------+--------------------+--------------------+-------------------+-------+----------------+---------------------------+
@hoonetorg
hoonetorg / check_salt_state.py
Created February 18, 2016 19:16 — forked from djs52/check_salt_state.py
Nagios Salt check which tests the highstate
#!/usr/bin/env python
import salt.client
import argparse
import sys
import fnmatch
import unittest
# Filter out results from state modules that don't have useful test
# such as svn.latest and pkg.refresh_db.
# Represent as a list of 4-tuples of globs: (module, state_id, state_name, function)