File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 username = nova
5151 password = nova
5252
53+ [serial_console]
54+ enabled = true
55+
5356 [vnc]
5457 enabled = true
5558 server_listen = $my_ip
299302 TimeoutStopSec = 15 ;
300303 } ;
301304 } ;
305+
306+ systemd . services . nova-serialproxy = {
307+ description = "OpenStack Nova serial proxy" ;
308+ after = [
309+ "nova.service"
310+ "mysql.service"
311+ "keystone.service"
312+ "rabbitmq.service"
313+ "network-online.target"
314+ ] ;
315+ wants = [ "network-online.target" ] ;
316+ wantedBy = [ "multi-user.target" ] ;
317+ path = [ cfg . novaPackage ] ;
318+ serviceConfig = {
319+ User = "nova" ;
320+ Group = "nova" ;
321+ Type = "simple" ;
322+ ExecStart = pkgs . writeShellScript "nova-serialproxy.sh" ''
323+ nova-serialproxy --config-file ${ cfg . config }
324+ '' ;
325+ Restart = "on-failure" ;
326+ LimitNOFILE = 65535 ;
327+ TimeoutStopSec = 15 ;
328+ } ;
329+ } ;
302330 } ;
303331}
You can’t perform that action at this time.
0 commit comments