# This is an example configuration for the Resource Controller at NICTA
#
# NOTE: use only 'spaces' to indent !
# ('tab' indents are not supported by the ruby yaml parser used to read this file)
#
---
:rcontroller:
  # Communication settings 
  :communicator:

    # Number of seconds between consecutive HEARTBEAT messages
    :heartbeat_interval: 10
    
    # Interface to the control network from which this resource can be 
    # controlled & managed
    :control_if: 'eth1'

    # set this to true or false if you want to enable or disable signature checks and message signing                                       
    :authenticate_messages: false
    # your RSA/DSA SSH private key file
    :private_key: '/etc/omf-resctl-5.4/id_rsa'
    # directory holding the public keys of your OMF peers
    :public_key_dir: '/etc/omf-resctl-5.4/peer_keys'
    
    :type: 'xmpp'
    :xmpp:
      # Address of the PubSub server to use as gateway for PubSub communication
      :pubsub_gateway: 'xmpp2.orbit-lab.org'

      # Address of the PubSub server which host the communication for my slice
      # Leave this commented if the pubsub groups for this slice are hosted on 
      # the same server as the 'pubsub_gateway'
      #:pubsub_domain: 10.0.0.200
      # The following 'home_pubsub_user' and 'home_pubsub_pwd' are optional
      # RC will create a unique user/pwd for itself if this is not provided
      # In a typical OMF install, you should not uncomment these lines
      # (do so only if you need to manually set user/password for 
      # your client to connect to your pubsub server)
      #:pubsub_user: 'my_RC_name' 
      #:pubsub_pwd: 'my_RC_password'

  # Agent settings
  :agent:

    # Name (i.e. unique HRN ID) of this resource
    # Or this could also be passed as a command line parameter "--name"
    # This is either a fully defined string, e.g. "my_resource_name"
    # Or a string for which some values will be replaced by the running RC, 
    # currently we support the values: %hostname% %macaddr%
    # For example, if you use "some_prefix.%hostname%.some_suffix"
    # Then if your hostname is 'node1', then your RC name will be
    # 'some_prefix.node1.some_suffix'
    # %macaddr% is replaced with the MAC address of the control interface
    :name: '%fqdn%'

    # Name (i.e. unique HRN ID) of the slice to which this resource is assigned
    :slice: default_slice

