Commit f369c622 authored by Nathan Ward's avatar Nathan Ward
Browse files

feat(systemd): add dropin

Fix bootstrap
parent 9a7fb233
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -108,6 +108,16 @@ class freeradius (
    notify  => Service[$freeradius::fr_service],
  }

  # Add systemd unit to override default file on RHEL8 systems.
  if ($facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '8') {
    systemd::dropin_file { 'freeradius remove bootstrap':
      ensure   => present,
      filename => 'remove_bootstrap.conf',
      unit     => 'radiusd.service', #@todo programmatically determine the service name
      content  => template('freeradius/systemd_dropin_rhel8.erb'),
    }
  }

  # Preserve some stock modules
  if ($preserve_mods) {
    freeradius::module { [
+5 −0
Original line number Diff line number Diff line
[Service]
ExecStartPre=
ExecStartPre=-/bin/chown -R radiusd.radiusd /var/run/radiusd
ExecStartPre=/usr/sbin/radiusd -C