diff options
author | Fabien COMBERNOUS <fabien.combernous@adullact.org> | 2020-05-02 11:32:08 +0200 |
---|---|---|
committer | Fabien COMBERNOUS <fabien.combernous@adullact.org> | 2020-05-18 22:06:35 +0200 |
commit | 007a9bd025ea441a45b0c8e891738c6f627a339a (patch) | |
tree | 56215047193038797b807acbb5ce63f9417ab690 /manifests/config.pp | |
parent | dac79dba12b034af8de2a31906a932f2932871a0 (diff) | |
download | puppet-ferm-007a9bd025ea441a45b0c8e891738c6f627a339a.tar.gz puppet-ferm-007a9bd025ea441a45b0c8e891738c6f627a339a.tar.bz2 |
add install_method parameter
Diffstat (limited to 'manifests/config.pp')
-rw-r--r-- | manifests/config.pp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp index 5876bd7..8ed0f57 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -10,6 +10,16 @@ class ferm::config { $_ip = join($ferm::ip_versions, ' ') + if $facts['systemd'] { #fact provided by systemd module + if $ferm::install_method == 'vcsrepo' and $ferm::manage_service { + systemd::dropin_file { 'ferm.conf': + unit => 'ferm.service', + content => epp("${module_name}/dropin_ferm.conf.epp"), + before => Service['ferm'], + } + } + } + # copy static files to ferm # on a long term point of view, we want to package this file{$ferm::configdirectory: |