Skip to content

Commit

Permalink
applications forms
Browse files Browse the repository at this point in the history
  • Loading branch information
Signorini committed Aug 7, 2017
1 parent 3e45829 commit 1de5e95
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 7 deletions.
6 changes: 3 additions & 3 deletions migrations/0005-add-server-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ exports.up = function (db, next) {
serverType: ['Virtual', 'Exalogic', 'Exadata', 'Physical', 'PSeries'],
status: ['Active', 'Avaliable'],
auth: ['PKI', 'AD', 'LDAP', 'Password'],
environment: ['Production', 'Staging', 'Development', 'UTA', 'Training'],
role: ['Application', 'Container', 'Database', 'Hybrid'],
environment: ['Production', 'Staging', 'Development', 'UTA', 'Training', 'SandBox'],
role: ['Application', 'Cache', 'Container', 'Database', 'File', 'Loadbalance', 'Monitoring', 'NAT', 'Proxy', 'SMTP', 'VPN', 'Standard'],
os: ['Linux', 'Windows', 'Solaris', 'FreeBSD', 'MacOS'],
services: ["Apache HTTPD", "Nginx", "Docker", "Oracle Database", 'MySQL'],
services: ["Ansible", "Apache CouchDB", "Apache HTTPD", "Apache Kafka", "Apache Solr", "Apache Storm", "Apache Tomcat", "Apache Zookeeper", "Bind9", "Cassandra", "Chef", "DC/OS", "Docker", "Docker Registry", "Docker Swarm", "Drools", "Elixir", "Elm", "Erlang", "ElasticSearch", "Grafana", "HaProxy", "Haskell", "Hashcorp Consul", "Hashcorp Vault", "Hashcorp Serf", "Hashcorp Terraform", "Hashcorp Packer", "Hue", "InfluxDB", "Jboss", "Jenkins", "Kibana", "LogStash", "Memcache", "Mesos", "Microsoft Active Directory (AD)", "Microsoft IIS", "Microsoft Sharepoint", "Microsoft SQL Server", "Microsoft Windows Server Update Service (WSUS)", "MongoDB", "MySQL Server", "Nagios", "Nginx", "NodeJS", "OpenVPN", "Oracle Database", "Oracle EBS (Service BUS)", "Oracle Enterprise Manager", "Oracle Forms and Reports", "Oracle Forms Runtime", "Oracle GlassFish", "OpenJDK (Java)", "Oracle JDK (Java)", "Oracle WebLogic Server", "PHP (PHP-FPM)", "PostFix", "Postgree", "Prolog", "Prometheus", "Python", "Puppet", "Rabbimq", "Rancher", "Redis", "Rusty", "Salt", "Samba", "Serv-V", "Squid", "TensorFlow", "Tsuro", "VPC", "Webquery", ".NET"],
datacenter: []
},
"key": "server_options",
Expand Down
25 changes: 21 additions & 4 deletions migrations/0010-add-datacenter-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,27 @@ exports.up = function (db, next) {
provider: ['AWS', 'OpenStack'],
baser: {
'AWS': [
{region: 'sa-east-1 (South America)', zones: ['sa-east-1a', 'sa-east-1b', 'sa-east-1c']},
{region: 'us-east-1 (US East (Virginia)', zones: ['us-east-1a', 'us-east-1b', 'us-east-1c']},
{region: 'us-east-2 (US East (Ohio))', zones: ['us-east-2a', 'us-east-2b', 'us-east-2c']}
{region: 'us-east-1 (N. Virginia)', zones: ['us-east-1a', 'us-east-1b', 'us-east-1c']},
{region: 'us-east-2 (Ohio)', zones: ['us-east-2a', 'us-east-2b', 'us-east-2c']},
{region: 'us-west-2 (Oregon)', zones: []},
{region: 'ca-central-1 (Central)', zones: []},
{region: 'eu-west-1 (Ireland)', zones: []},
{region: 'eu-central-1 (Frankfurt)', zones: []},
{region: 'eu-west-2 (London)', zones: []},
{region: 'ap-northeast-1 (Tokyo)', zones: []},
{region: 'ap-northeast-2 (Seoul)', zones: []},
{region: 'ap-southeast-1 (Singapore)', zones: []},
{region: 'ap-southeast-2 (Sydney)', zones: []},
{region: 'ap-south-1 (Mumbai)', zones: []},
{region: 'sa-east-1 (São Paulo)', zones: ['sa-east-1a', 'sa-east-1b', 'sa-east-1c']}
],
'OpenStack': []
'OpenStack': [],
'Google Cloud Engine': [
{region: 'Central US', zones: []},
{region: 'East Asia', zones: []},
{region: 'Eastern US', zones: []},
{region: 'Western Europe', zones: []}
]
},
connections: {
openstack: ['SSl without validation', 'SSL', 'Non-SSl']
Expand All @@ -23,6 +39,7 @@ exports.up = function (db, next) {
}, next);
};


exports.down = function (db, next) {
let pets = db.collection('adminer');

Expand Down
22 changes: 22 additions & 0 deletions migrations/0015-applications_options.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';


exports.up = function (db, next) {
let pets = db.collection('adminer');
pets.insert({
"value": {
environment: ['Production', 'Staging', 'Development', 'UTA', 'Training', 'SandBox'],
role: ['Application', 'Worker', 'LoadBalance', 'Jobs', 'Service Discovery', 'Monitoring', 'Testing', 'Standard'],
deploy: ['Git (Github, Bibucket)', 'Continuos Integration (CI)', 'Continuos Deployment (CD)', 'FTP', 'SFTP']
},
"key": "app_options",
"active": true,
"updated_at": new Date()
}, next);
};

exports.down = function (db, next) {
let pets = db.collection('adminer');

pets.findAndModify({key: 'app_options'}, [], {}, {remove: true}, next);
};

0 comments on commit 1de5e95

Please sign in to comment.