You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for making this puppet module, but let's get straight to the point:
I miss local_root vsftpd.conf option in your class vsftpd. I've managed to add it by appending
$local_root = undef
to your class vsftpd in \modules\vsftpd\manifests\init.pp, and by appending
<% if @local_root -%>
local_root=<%= @local_root %>
<% end -%>
to file \modules\vsftpd\templates\vsftpd.conf.erb. After that I could use
class { 'vsftpd':
# (...)
local_root => '/var/www',
}
in my /manifests/default.pp.
But if you ask me, the problem doesn't really lies in the fact, that "oh boy, I need option ABC, but it's not there". I think the problem lies in the way, you're trying to manage the options. Simply speaking, I would store such "highly mutable" data in a hash map, rather than trying to manage it by hand. Can you see how awful it is to add a new option? I needed to edit two different places to add just one option. And there's still more. I like the way puphpet::ini handles the problem (by an array):
This way they covered all the xdebug options existing now and in the future.
I'm far from telling you how to code. At least I'm trying not to. In fact I don't even know how to program in Ruby, so you're my hero from the beginning. Just think about it, especially because your puppet module is #1 in the download count ("ftp" query) on the puppet forge, so more users may also have similar problem.
Or maybe there is a different way to add an arbitrary option to the vsftpd.conf through thias/puppet-vsftpd?
Kthxbb
The text was updated successfully, but these errors were encountered:
Very good point. This module was created a while back, and my goal was to have the default create something identical to the original Red Hat Enterprise Linux configuration file, hence the configuration directives as class parameters in order to output them in very specific places of the template.
I've made changes in 5bfc135 which should suit your use case. I'll release 0.2.0 to the forge after a few more minor changes and some extra testing.
Hey mate,
thanks for making this puppet module, but let's get straight to the point:
I miss
local_root
vsftpd.conf option in yourclass vsftpd
. I've managed to add it by appendingto your
class vsftpd
in\modules\vsftpd\manifests\init.pp
, and by appendingto file
\modules\vsftpd\templates\vsftpd.conf.erb
. After that I could usein my
/manifests/default.pp
.But if you ask me, the problem doesn't really lies in the fact, that "oh boy, I need option ABC, but it's not there". I think the problem lies in the way, you're trying to manage the options. Simply speaking, I would store such "highly mutable" data in a hash map, rather than trying to manage it by hand. Can you see how awful it is to add a new option? I needed to edit two different places to add just one option. And there's still more. I like the way puphpet::ini handles the problem (by an array):
This way they covered all the xdebug options existing now and in the future.
I'm far from telling you how to code. At least I'm trying not to. In fact I don't even know how to program in Ruby, so you're my hero from the beginning. Just think about it, especially because your puppet module is #1 in the download count ("ftp" query) on the puppet forge, so more users may also have similar problem.
Or maybe there is a different way to add an arbitrary option to the vsftpd.conf through
thias/puppet-vsftpd
?Kthxbb
The text was updated successfully, but these errors were encountered: