Commit e4bc7ec1 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Tweak require/notify so the service gets restarted at the right time

parent 490caaa5
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -21,6 +21,8 @@ define freeradius::module (
    file { "${fr_modulepath}/${name}":
      ensure  => $ensure_link,
      target  => "../mods-available/${name}",
      notify  => Service[$fr_service],
      require => File["${fr_basepath}/mods-available/${name}"],
    }
  } else {
    # Deploy actual module to mods-available, and link it to mods-enabled
@@ -32,7 +34,6 @@ define freeradius::module (
      source  => $source,
      content => $content,
      require => [Package[$fr_package], Group[$fr_group]],
      notify  => Service[$fr_service],
    }
    file { "${fr_modulepath}/${name}":
      ensure => $ensure_link,