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

vagrant integration, splitting into multiple instances #4

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

vagrant integration, splitting into multiple instances #4

wants to merge 11 commits into from

Conversation

erth111
Copy link

@erth111 erth111 commented Jul 18, 2016

No description provided.

include_recipe "mysql::server"

mysql_bin = (platform_family? 'windows') ? 'mysql.exe' : 'mysql'
user = "'#{db['user']}'@'#{db['host']}'"
user = "'#{db['user']}'@'%'"
Copy link
Owner

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?

Copy link
Author

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.

Copy link
Owner

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)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's done

@korney4eg
Copy link
Owner

couple of questions more:

  • how do you store common data (Images). Imagine situation when I upload image from 1 app server and next request I was dropped to 2 app server?
  • I didn't mention that at the beginning (sorry for this), but we need already created site, which has not default theme.

:upstream2 => node['wordpress']['app2']['host']
)
action :create
end
Copy link
Owner

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?

Copy link
Author

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?

Copy link
Owner

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

@erth111 erth111 changed the title added vagrantfile, fixed mysql version issue vagrant integration, splitting into multiple instances Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants