Skip to content

Commit

Permalink
correct name spacing of docker versions ('merica)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanhelmig committed Nov 19, 2013
1 parent c07d3c2 commit 16c52f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
$socket_bind = $docker::params::socket_bind,
$network_bridge = $docker::params::network_bridge,
) inherits docker::params {

validate_string($version)
validate_re($::osfamily, '^Debian$', 'This module uses the docker apt repo and only works on Debian systems that support it.')

class { 'docker::install': } ->
Expand Down
11 changes: 8 additions & 3 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#
class docker::install {
include apt
validate_string($docker::version)
validate_re($::osfamily, '^Debian$', 'This module uses the docker apt repo and only works on Debian systems that support it.')
validate_string($::kernelrelease)

Expand All @@ -34,8 +33,14 @@
ensure => present,
}

package { 'lxc-docker':
ensure => $docker::version,
if $docker::version {
$dockerpackage = "lxc-docker-${docker::version}"
} else {
$dockerpackage = "lxc-docker"
}

package { $dockerpackage:
ensure => present,
require => [
Apt::Source['docker'],
Package[$kernelpackage],
Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class docker::params {
$version = present
$version = undef
$tcp_bind = undef
$network_bridge = undef
$socket_bind = 'unix:///var/run/docker.sock'
Expand Down

0 comments on commit 16c52f6

Please sign in to comment.