# -------------------------------------------------------------------------- #
# Copyright 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs        #
#                                                                            #
# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
# not use this file except in compliance with the License. You may obtain    #
# a copy of the License at                                                   #
#                                                                            #
# http://www.apache.org/licenses/LICENSE-2.0                                 #
#                                                                            #
# Unless required by applicable law or agreed to in writing, software        #
# distributed under the License is distributed on an "AS IS" BASIS,          #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
# See the License for the specific language governing permissions and        #
# limitations under the License.                                             #
#--------------------------------------------------------------------------- #

#############################################################
# Server Configuration
#############################################################

# Directory to store temp files when uploading images
:tmpdir: /var/tmp

# OpenNebula sever contact information
:one_xmlrpc: http://localhost:2633/RPC2

# Host and port where econe server will run
:host: localhost
:port: 4567

# SSL proxy URL that serves the API (set if is being used)
#:ssl_server: https://service.endpoint.fqdn:port/

#############################################################
# Auth
#############################################################

# Authentication driver for incomming requests
#   - ec2, default Acess key and Secret key scheme
#   - x509, for x509 certificates based authentication
:auth: ec2

# Authentication driver to communicate with OpenNebula core
#   - cipher, for symmetric cipher encryption of tokens
#   - x509, for x509 certificate encryption of tokens
:core_auth: cipher

#############################################################
# Log
#############################################################

# Log debug level
#   0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
:debug_level: 3

#############################################################
# Resources
#############################################################

# Cluster associated with the EC2 resources, by default no Cluster is defined
#:cluster_id:

# Datastore in which the Images uploaded through EC2 will be allocated, by
# default 1
#:datastore_id:

# Include terminated instances in the describe_instances xml
:describe_with_terminated_instances: true
# Terminated VMs will be included in the list
#  till the termination date + TERMINATED_INSTANCES_EXPIRATION_TIME is reached
:terminated_instances_expiration_time: 900


#############################################################
# [DEPRECATED] File based templates
#############################################################

# Use former file based templates for instance types instead
#   of OpenNebula templates
:use_file_templates: false

# VM types allowed and its template file (inside templates directory)
:instance_types:
  :m1.small:
    :template: m1.small.erb

#############################################################
# Elastic IP
#############################################################

# VirtualNetwork containing the elastic ips to be used with EC2. If no defined
# the Elastic IP functionality is disabled
#:elasticips_vnet_id:

# Script to associate a public IP with a private IP
#   - arguments: elastic_ip private_ip vnet_template(base64_encoded)
:associate_script: false

# Script to disassociate a public IP
#   - arguments: elastic_ip
:disassociate_script: false

#############################################################
# EBS
#############################################################

# FSTYPE that will be used when creating new volumes (DATABLOCKs)
:ebs_fstype: ext3
