# bind address for the rest api $http_bind_addr = '0.0.0.0' # ssl cert path - not working right now $ssl_crt_path = '' $ssl_key_path = '' $api_token = '<%= @api_token %>' $log_file = '/var/log/wf_node_api.log' $log_level = Logger::INFO # container name # possible values: lxc, vserver, ezjail $container_type = 'lxc' # command for getting the hostname $cmd_hostname = 'hostname' $lxc_container_config_path = '/var/lib/lxc/[name]/config' $lxc_ip_netmask = 24 $lxc_cgroup_mount_path = '/sys/fs/cgroup' # lxc specific commands $lxc_cmd_ls = 'lxc-ls' $lxc_cmd_start = 'lxc-start -n [name] -d' # dont set the timeout too high (broken pipes) $lxc_cmd_stop = 'lxc-stop -n [name] --timeout=15' $lxc_cmd_kill = 'lxc-stop -n [name] -k' $lxc_cmd_info = 'lxc-info -n [name] -H' $lxc_cmd_destroy = 'lxc-destroy -n [name] -f' $lxc_cmd_create = 'lxc-create -t centos -n [name]' # linux-vserver specific commands $vserver_cmd_ls = 'ls -1 /etc/vservers' $vserver_cmd_start = 'vserver [name] start' $vserver_cmd_stop = 'vserver [name] stop' $vserver_cmd_stat = 'vserver-stat | grep [name]$' $vserver_cmd_destroy = "echo 'y' | vserver [name] delete" #$vserver_cmd_create = "vserver [name] build -m clone --context [context] --hostname [name] --interface eth0:[ip_address]/24 -- --source /vservers/test" $vserver_cmd_create = "vserver [name] build -m debootstrap --context [context] --hostname [name] --interface eth0:[ip_address]/24 -- -d wheezy -m http://ftp.de.debian.org/debian" $vserver_cmd_get_memory_limit = 'vlimit -c [context] -a -d | grep RSS' $vserver_config_dir = '/etc/vservers/[name]' $page_size_cmd = 'getconf PAGESIZE'