Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

production like firewall and memory management are disabled by default on xenial #148

Merged
merged 1 commit into from
Apr 21, 2017

Conversation

vdloo
Copy link
Member

@vdloo vdloo commented Apr 21, 2017

these will now be disabled by default in the xenial image as well. this can be convenient for when using the hypernode-vagrant as a build environment on a larger host than what would be possible in the default production environment (we compile PHP in an LXC hypernode-vagrant on a machine with many cores + a lot of ram, stuff like that should never be oomkilled). disabling the firewall by default will decrease the probability of clashing with the nfs network connections if that fs type is enabled.

# ufw is disabled by default with an upstart override in the boxfile image because sometimes
# the firewall gets in the way when mounting the directories with specific synced folder fs types
# ufw is disabled by default in the boxfile image because sometimes the firewall gets
# in the way when mounting the directories with specific synced folder fs types
if $firewall_enabled; then

Choose a reason for hiding this comment

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

Should it not be possible to disable the firewall again by using this variable?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah but that was never scripted for precise either, and that's only for the use case when people manually run vagrant provision again on an already existing instance after changing the firewall setting in the local.yml, and I think this script isn't completely idempotent in other places as well. I'd rather rewrite all this post-provisioning stuff in ansible some day instead of crufting all this stuff into this bash script

@vdloo vdloo merged commit 313e97d into master Apr 21, 2017
@vdloo vdloo deleted the memory-management-on-xenial-is-optional branch April 21, 2017 12:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants