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

Allow to specify alternate server name for postfixadmin #6

Open
RomanKisilenko opened this issue Feb 25, 2016 · 4 comments
Open

Allow to specify alternate server name for postfixadmin #6

RomanKisilenko opened this issue Feb 25, 2016 · 4 comments

Comments

@RomanKisilenko
Copy link

https://github.com/zuazo/postfix-dovecot-cookbook/blob/master/recipes/postfixadmin.rb#L22 explicitly sets the node['postfixadmin']['server_name'].

On some configurations I do want to be able to override it looks like it is not possible at the moment.

@zuazo
Copy link
Owner

zuazo commented Feb 25, 2016

If you are having problems with that, you can always overwrite it using node.override:

node.override['postfixadmin']['server_name'] = 'postfixadmin.example.com'

https://docs.chef.io/attributes.html#attribute-types

@RomanKisilenko
Copy link
Author

Nope, it does not work for me. What I'm trying to achieve is to set it to nil. node.override['postfixadmin']['server_name'] = nil does not work for me. But when I remove the line mentioned above it starts working just fine.

@zuazo
Copy link
Owner

zuazo commented Feb 26, 2016

Why do you want to set it to nil instead of other value? What error gives you?

@RomanKisilenko
Copy link
Author

I'm getting 403 Forbidden for postfixadmin URL due to hostname mismatch. I can work around it, though.

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