Commit a844f32c authored by Leo Iannacone's avatar Leo Iannacone

create mergeconfig which given an architecture and a port returns a common...

create mergeconfig which given an architecture and a port returns a common debomatic-webui configuration
parent a1c50dc4
/*
* debomatic-webui amd64 configuration
*/
var architecture = 'amd64'
var port = 8064
// common config
var config = {}
config.host = 'localhost'
config.port = port
config.web = {}
config.web.debomatic = {}
config.web.debomatic.admin = {}
config.web.debomatic.admin.email = "dktrkranz AT debian DOT org" // please use this SPAMFREE form - it will be converted client side by javascript
config.web.debomatic.architecture = architecture
config.debomatic = {}
config.debomatic.path = '/srv/debomatic-' + architecture
config.debomatic.jsonfile = '/var/log/debomatic-' + architecture + '.json'
var architecture = 'amd64';
var port = 8064;
config.web.debomatic.dput = {}
config.web.debomatic.dput.incoming = config.debomatic.path
config.web.debomatic.dput.host = "debomatic-" + architecture + ".debian.net"
// DO NOT EDIT THIS LINE:
module.exports = config
module.exports = require('./mergerconfig.js')(architecture, port);
/*
* debomatic-webui armel configuration
*/
var architecture = 'armel'
var port = 8001
// common config
var config = {}
config.host = 'localhost'
config.port = port
config.web = {}
config.web.debomatic = {}
config.web.debomatic.admin = {}
config.web.debomatic.admin.email = "dktrkranz AT debian DOT org" // please use this SPAMFREE form - it will be converted client side by javascript
config.web.debomatic.architecture = architecture
config.debomatic = {}
config.debomatic.path = '/srv/debomatic-' + architecture
config.debomatic.jsonfile = '/var/log/debomatic-' + architecture + '.json'
var architecture = 'armel';
var port = 8001;
config.web.debomatic.dput = {}
config.web.debomatic.dput.incoming = config.debomatic.path
config.web.debomatic.dput.host = "debomatic-" + architecture + ".debian.net"
// DO NOT EDIT THIS LINE:
module.exports = config
module.exports = require('./mergerconfig.js')(architecture, port);
/*
* debomatic-webui armhf configuration
*/
var architecture = 'armhf'
var port = 8002
// common config
var config = {}
config.host = 'localhost'
config.port = port
config.web = {}
config.web.debomatic = {}
config.web.debomatic.admin = {}
config.web.debomatic.admin.email = "dktrkranz AT debian DOT org" // please use this SPAMFREE form - it will be converted client side by javascript
config.web.debomatic.architecture = architecture
config.debomatic = {}
config.debomatic.path = '/srv/debomatic-' + architecture
config.debomatic.jsonfile = '/var/log/debomatic-' + architecture + '.json'
var architecture = 'armhf';
var port = 8002;
config.web.debomatic.dput = {}
config.web.debomatic.dput.incoming = config.debomatic.path
config.web.debomatic.dput.host = "debomatic-" + architecture + ".debian.net"
// DO NOT EDIT THIS LINE:
module.exports = config
module.exports = require('./mergerconfig.js')(architecture, port);
/*
* debomatic-webui i386 configuration
*/
var architecture = 'i386'
var port = 8032
// common config
var config = {}
config.host = 'localhost'
config.port = port
config.web = {}
config.web.debomatic = {}
config.web.debomatic.admin = {}
config.web.debomatic.admin.email = "dktrkranz AT debian DOT org" // please use this SPAMFREE form - it will be converted client side by javascript
config.web.debomatic.architecture = architecture
config.debomatic = {}
config.debomatic.path = '/srv/debomatic-' + architecture
config.debomatic.jsonfile = '/var/log/debomatic-' + architecture + '.json'
var architecture = 'i386';
var port = 8032;
config.web.debomatic.dput = {}
config.web.debomatic.dput.incoming = config.debomatic.path
config.web.debomatic.dput.host = "debomatic-" + architecture + ".debian.net"
// DO NOT EDIT THIS LINE:
module.exports = config
module.exports = require('./mergerconfig.js')(architecture, port);
/**
* This is a simple function to get common config just
* start from architecture and port
*/
function merger_config(architecture, port) {
// common config
var config = {};
config.host = 'localhost';
config.port = port;
config.web = {};
config.web.description = 'This is a web interface for debomatic over ' + architecture;
config.web.debomatic = {};
config.web.debomatic.admin = {};
config.web.debomatic.admin.email = "dktrkranz AT debian DOT org"; // please use this SPAMFREE form - it will be converted client side by javascript
config.web.debomatic.architecture = architecture;
config.debomatic = {};
config.debomatic.path = '/srv/debomatic-' + architecture;
config.debomatic.jsonfile = '/var/log/debomatic-' + architecture + '.json';
config.web.debomatic.dput = {};
config.web.debomatic.dput.incoming = config.debomatic.path;
config.web.debomatic.dput.host = "debomatic-" + architecture + ".debian.net";
return config;
}
module.exports = merger_config;
/*
* debomatic-webui powerpc configuration
*/
var architecture = 'powerpc'
var port = 8003
// common config
var config = {}
config.host = 'localhost'
config.port = port
config.web = {}
config.web.debomatic = {}
config.web.debomatic.admin = {}
config.web.debomatic.admin.email = "dktrkranz AT debian DOT org" // please use this SPAMFREE form - it will be converted client side by javascript
config.web.debomatic.architecture = architecture
config.debomatic = {}
config.debomatic.path = '/srv/debomatic-' + architecture
config.debomatic.jsonfile = '/var/log/debomatic-' + architecture + '.json'
var architecture = 'powerpc';
var port = 8003;
config.web.debomatic.dput = {}
config.web.debomatic.dput.incoming = config.debomatic.path
config.web.debomatic.dput.host = "debomatic-" + architecture + ".debian.net"
// DO NOT EDIT THIS LINE:
module.exports = config
module.exports = require('./mergerconfig.js')(architecture, port);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment