Skip to content

Commit

Permalink
Resource ordering and lint fixes
Browse files Browse the repository at this point in the history
Added ensure_package call, and explicit ordering to ensure it runs
before the init script is generated.

Added a default block to the switch.
  • Loading branch information
dig412 authored and jhoblitt committed May 23, 2015
1 parent a6c688e commit eec17bf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@

case $::osfamily {
'debian': {
package { "daemon":
ensure => "installed"
}
ensure_packages(["daemon"])
Package["daemon"] -> File["init-script"]
}
default : {}
}

# prog is the 'name' of the init.d script.
$prog = "selenium${name}"

file { "/etc/init.d/${prog}":
file { "init-script":
ensure => 'file',
path => "/etc/init.d/${prog}",
owner => 'root',
group => 'root',
mode => '0755',
Expand Down

0 comments on commit eec17bf

Please sign in to comment.