Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

['anonymous'] blocks #7

Open
mechttim opened this issue Mar 7, 2016 · 4 comments
Open

['anonymous'] blocks #7

mechttim opened this issue Mar 7, 2016 · 4 comments

Comments

@mechttim
Copy link

mechttim commented Mar 7, 2016

node.default['proftpd']['conf']['anonymous']['~ftp']

If I want to add more then one user to this ~ftp how would I do that using your cookbook with chef.

@zuazo
Copy link
Owner

zuazo commented Mar 7, 2016

Can you give me an example of the configuration you want to achieve?

@mechttim
Copy link
Author

mechttim commented Mar 7, 2016

default['proftpd']['conf']['Anonymous']['/ftp-root'] = { 
  'user' => 'bob',
   'anon_require_password' => true
}
default['proftpd']['conf']['Anonymous']['/ftp-root'] = {
 'user' => 'joe',
  'anon_require_password' => true
}

Only joe gets put into the proftp.conf.

@zuazo
Copy link
Owner

zuazo commented Mar 8, 2016

And what you want the final configuration file to contain?

In you example, you are overwriting the '/ftp-root' attribute in you second assignment.

@mechttim
Copy link
Author

mechttim commented Mar 8, 2016

I need to look like this, This is what my proftp.conf looks like now but when I try to do it with the cookbook the first one get over written.
Anonymous /ftp-root
User bob
AnonRequirePassword on
Anonymous
Anonymous /ftp-root
User joe
AnonRequirePassword on
Anonymous

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants