GeneBean
09/25/2025, 12:01 PMexec { "add virutal user ${hostname} to foo passwd":
unless => "/usr/bin/grep \"^${hostname}:\" ${passwd_file}",
command => "/usr/bin/echo \"${hostname}::${uid}:${gid}::${host_chroot_dir}:/sbin/nologin\" >> ${passwd_file}",
require => File[$passwd_file],
notify => Service['proftpd'],
}
Would a file_line or concat::fragment (or something else you all know of) be more efficient?