Created
October 11, 2013 17:04
-
-
Save scottslowe/6938382 to your computer and use it in GitHub Desktop.
This portion of Puppet code installs Open vSwitch (OVS) packages from an internal repository, along with prerequisite packages.
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
if $::operatingsystem == 'Ubuntu' { | |
# Install prerequisite packages | |
package {'make': | |
ensure => 'installed', | |
} | |
package {'dkms': | |
ensure => 'installed', | |
} | |
package {'libc6-dev': | |
ensure => 'installed', | |
} | |
# Install Open vSwitch common files from internal repository | |
package {'openvswitch-common': | |
ensure => 'installed', | |
name => 'openvswitch-common', | |
require => Apt::Source['internal'], | |
} | |
# Install Open vSwitch switch from internal repository | |
package {'openvswitch-switch': | |
ensure => 'installed', | |
name => 'openvswitch-switch', | |
require => Apt::Source['internal'], | |
} | |
# Install Open vSwitch kernel module form internal repository | |
package {'openvswitch-datapath-dkms': | |
ensure => 'installed', | |
name => 'openvswitch-datapath-dkms', | |
require => [ Apt::Source['internal'], | |
Package['make'], Package['dkms'], | |
Package['libc6-dev'] ], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment