default["aegir3"]["install_method"] = "package"
default["aegir3"]["install_folder"] = "/var/aegir"

# Attributes needed for both install methods
default["aegir3"]["frontend"] = "localhost"
default["aegir3"]["admin_email"] = "webmaster@localhost"
default["aegir3"]["webserver"] = "apache2"
default["aegir3"]["db_host"] = "127.0.0.1"

default["mysql"]["server_root_password"] = "ilikecookies"
default["mysql_tuning"]["tuning.cnf"]["mysqld"]["max_allowed_packet"] = "16M"
default["mysql_tuning"]["logging.cnf"]["mysqld"]["slow_query_log"] = "OFF"
default["mysql"]["version"] = if node["platform"] == "ubuntu" && node["platform_version"].to_f >= 16.04
                                "5.7"
                              else
                                "5.5"
                              end

if node["aegir3"]["webserver"] == "nginx"
  default["php"]["conf_dir"] = "/etc/php5/fpm"
elsif node["aegir3"]["webserver"] == "apache2"
  default["php"]["conf_dir"] = "/etc/php5/apache2"
end
default["php"]["directives"] = {
  "memory_limit" => "256M",
}
