This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Options | |
set block-policy drop | |
set fingerprints "/etc/pf.os" | |
set ruleset-optimization basic | |
set skip on lo0 | |
# Normalization | |
# Scrub incoming packets | |
scrub in all no-df |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anchor "org.scottlowe.pf" | |
load anchor "org.scottlowe.pf" from "/etc/pf.anchors/org.scottlowe.pf.rules" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This code declares a file resource to manage an interface | |
# configuration script on RHEL/RHEL variants for automated | |
# configuration of OVS. | |
# | |
file {'/etc/sysconfig/network-scripts/ifcfg-mgmt0': | |
ensure => 'present', | |
source => 'puppet:///modules/module-name/ovs-ifcfg-mgmt0', | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User <| title == 'johndoe' |> { | |
groups => 'othergroup', | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
542de17b-4eb5-4eff-f736-3c760e40dff3 | |
Bridge "ovsbr0" | |
Port "mgmt0" | |
Interface "mgmt0" | |
type: internal | |
Port "ovsbr0" | |
Interface "ovsbr0" | |
type: internal | |
Port "bond0" | |
Interface "eth0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEVICE="mgmt0" | |
BOOTPROTO="static" | |
ONBOOT="yes" | |
DEVICETYPE="ovs" | |
TYPE="OVSIntPort" | |
IPADDR=10.11.12.13 | |
NETMASK=255.255.255.0 | |
OVS_BRIDGE="ovsbr0" | |
HOTPLUG="no" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEVICE="bond0" | |
ONBOOT="yes" | |
DEVICETYPE="ovs" | |
TYPE="OVSBond" | |
OVS_BRIDGE="ovsbr0" | |
BOOTPROTO="none" | |
BOND_IFACES="eth0 eth1" | |
OVS_OPTIONS="bond_mode=balance-tcp lacp=active" | |
HOTPLUG="no" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEVICE="ovsbr0" | |
ONBOOT="yes" | |
DEVICETYPE="ovs" | |
TYPE="OVSBridge" | |
BOOTPROTO="none" | |
HOTPLUG="no" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Used to define virtual users on Puppet-managed systems | |
# Includes subclass dependency on accounts::config | |
# | |
class accounts { | |
@accounts::virtual { 'johndoe': | |
uid => 1001, | |
realname => 'John Doe', | |
pass => '<password hash goes here>', | |
require => Class['accounts::config'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class foo { | |
package { 'foo': | |
ensure => 'present', | |
} | |
file { '/etc/foo.conf': | |
ensure => 'present', | |
source => 'puppet:///modules/foo/foo_conf', | |
mode => '0600', | |
require => Package['foo'], |