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
| ovs-vsctl add-port <bridge name> <port name> | |
| ovs-vsctl set interface <port name> type=patch | |
| ovs-vsctl set interface <port name> options:peer=<peer name> |
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
| Bridge "ovsbr2" | |
| Port "ovsbr2" | |
| Interface "ovsbr2" | |
| type: internal | |
| Port "patch2-0" | |
| Interface "patch2-0" | |
| type: patch | |
| options: {peer="patch0-2"} | |
| Bridge "ovsbr0" | |
| Port "bond0" |
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 accounts::config { | |
| # Place a file in /etc/profile.d to manage the prompt | |
| file { '/etc/profile.d/prompt.sh': | |
| ensure => 'present', | |
| source => 'puppet:///modules/config/profiled-prompt.sh', | |
| mode => '0644', | |
| owner => '0', | |
| group => '0', | |
| } |
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'], |
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
| 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
| 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="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
| 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
| User <| title == 'johndoe' |> { | |
| groups => 'othergroup', | |
| } |