X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fomf_resctl.py;h=fb32834a7269b56d59e50b20626ef369d1ff54bd;hb=5fe3db92ad8c5aba4002a14542e915177430243b;hp=13fa19222f77e4e2b0aeab03bfe76be9eddd1967;hpb=f36750e7d951e2842a72fc1b2e3e96c65d915cd0;p=nodemanager.git diff --git a/plugins/omf_resctl.py b/plugins/omf_resctl.py index 13fa192..fb32834 100644 --- a/plugins/omf_resctl.py +++ b/plugins/omf_resctl.py @@ -13,7 +13,8 @@ import subprocess import tools import logger -priority = 50 +# we need this to run after sliverauth +priority = 150 def start(): pass @@ -22,14 +23,16 @@ def start(): # hard-wire this for now # once the variables are expanded, this is expected to go into config_ple_template="""--- -# slicename = _slicename_ -# hostname = _hostname_ -# xmpp_server = _xmpp_server_ # we extract expires time here, even in a comment so that the # trigger script gets called whenever this changes # expires: _expires_ - -:uid: _slicename_@_hostname_ + +# these are not actual OMF parameters, they are only used by the trigger script +:hostname: _hostname_ +:slicename: _slicename_ + +# OMF configuration +:uid: _slicename_%_hostname_ :uri: xmpp://_slicename_-_hostname_-<%= "#{Process.pid}" %>:_slicename_-_hostname_-<%= "#{Process.pid}" %>@_xmpp_server_ :environment: production :debug: false