-
Notifications
You must be signed in to change notification settings - Fork 4
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
vagrant integration, splitting into multiple instances #4
base: master
Are you sure you want to change the base?
Conversation
include_recipe "mysql::server" | ||
|
||
mysql_bin = (platform_family? 'windows') ? 'mysql.exe' : 'mysql' | ||
user = "'#{db['user']}'@'#{db['host']}'" | ||
user = "'#{db['user']}'@'%'" |
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.
why do you allow access from all server? is it secured?
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.
Good point, I will limit the access to same subnet only.
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.
ideally would be to give access only for those hosts, that need that access (app servers)
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.
it's done
couple of questions more:
|
:upstream2 => node['wordpress']['app2']['host'] | ||
) | ||
action :create | ||
end |
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.
what if you change your template (configuration for nginx), how nginx will now about new configuration?
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.
I guess when this solution is deployed in a chef environment (chef server and clients), the chef-client will run periodically and check if nginx configuration is up to date with the recipe. Am I right?
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.
No, you could run it on production once a week. on development each day
No description provided.