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
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
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
File["ntp.conf"] { | |
path => "/etc/ntpd.conf", | |
group => "wheel", | |
source => "puppet:///modules/ntp/ntpd.conf.openbsd", | |
} |
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
file { "ntp.conf": | |
path => "/etc/ntp.conf", | |
owner => "root", | |
group => "root", | |
mode => 644, | |
source => "puppet:///modules/ntp/ntp.conf", | |
} |
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
file { "ntp.conf": | |
path => $operatingsystem ? { | |
"OpenBSD" => "/etc/ntpd.conf", | |
default => "/etc/ntp.conf", | |
}, | |
owner => "root", | |
group => $operatingsystem ? { | |
"OpenBSD" => "wheel", | |
default => "root", | |
}, |
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
file { "ntp.conf" : | |
path => "/etc/ntp.conf", | |
owner => "root", | |
group => "root", | |
mode => 644, | |
source => "puppet:///modules/ntp/ntp.conf", | |
} | |
package { "ntp": | |
ensure => installed, |
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
<interface type='network'> | |
<mac address='11:22:33:44:55:66'/> | |
<source network='ovs-network' portgroup='vlan-02'/> | |
</interface> |
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
<network> | |
<name>ovs-network</name> | |
<forward mode='bridge'/> | |
<bridge name='ovsbr0'/> | |
<virtualport type='openvswitch'/> | |
<portgroup name='vlan-01' default='yes'> | |
</portgroup> | |
<portgroup name='vlan-02'> | |
<vlan> | |
<tag id='2'/> |
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
node default { | |
} | |
node 'server.domain.net' { | |
include accounts | |
realize (Accounts::Virtual['johndoe']) | |
} |