-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
move custom settings into settings.py. #42
Conversation
Why use so much file_line instead of a template? Puppet fully manages that file. |
I felt that using file line resources would be a little cleaner than using a template which only adds relevant variables. Do you have a strong opinion on it? |
@nibalizer does have a point. Since we're fully managing I would also write |
Okay. I'll refactor this into a template. |
Refactored and forcepushed. How's that |
@@ -0,0 +1,62 @@ | |||
<% | |||
dev_listen_host = scope.lookupvar('puppetboard::dev_listen_host') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use @dev_listen_host, there is no reason to do a scope.lookupvar here. Oh i just got that you are setting variables here. There is no need to do that. Just use @variable down there in the template.
Looks good. I got confused about how you were doing the template. I get it now. |
Great! Happy to help! MobileMail
This e-mail, including attachments, contains confidential and/or |
@rmnwolf Could you remove all the It should basically look like this: <% if @dev_listen_host -%>
DEV_LISTEN_HOST = '<%= @dev_listen_host %>'
<% end -%> There's no need to locally rebind them first. Don't forget to add the |
done. How's that look? |
move custom settings into settings.py.
This addresses issue 41.