-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
34 lines (31 loc) · 1.39 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Use this with standard omf_rc
---
# URI to the communication system
# - local://local for no oustide communication
# - amqp://my.amqp.server.com to use AMQP communication
# - xmpp://user:[email protected] to use XMPP communication via
# some.xmpp.server, using the specified user and password
:uri: local://local
:environment: production
:debug: false
:resources:
- :type: shm_node
# ID to give to this SHM node
# by default construct 'node1234' ID based on IP address of the br0 interface
# as requested by the SHM team
#:uid: '<%= ip = `ifconfig br0`.match(/inet addr:(\d*\.\d*\.\d*\.\d*)/)[1].split('.') ; (ip[2].to_i*256+ip[3].to_i).to_s.rjust(5,'0') %>'
:uid: '<%= mac = `/sbin/ifconfig br0`.match(/HWaddr (\h*\:\h*\:\h*\:\h*:\h*:\h*)/)[1].split(':') ; (mac[4]+mac[5]).hex.to_s.rjust(5,'0') %>'
# Path to the file with the default application schedule
:app_definition_file: /etc/omf_rc/scheduled_app.rb
# Path to find the Ruby binary
:ruby_path: /usr/local/bin/ruby
# The top-up value in second for the watchdog timer (must be lower than timeout value)
# Comment that line to disable the watchdog timer
:watchdog_timer: 15
:add_default_factories: false # Not loading default type factories
:factories: # Additional resources which can be created by this RC
load: [
'omf_rc_shm',
'omf_rc/resource_proxy/scheduled_application',
'omf_rc/resource_proxy/application'
]