secure_configs.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. var App = require('app');
  19. require('models/service_config');
  20. App.SecureConfigProperties = Ember.ArrayProxy.extend({
  21. content: require('data/secure_properties').configProperties
  22. });
  23. var configProperties = App.SecureConfigProperties.create();
  24. module.exports = [
  25. {
  26. serviceName: 'GENERAL',
  27. displayName: 'General',
  28. configCategories: [
  29. App.ServiceConfigCategory.create({ name: 'KERBEROS', displayName: 'Kerberos'}),
  30. App.ServiceConfigCategory.create({ name: 'AMBARI', displayName: 'Ambari'})
  31. ],
  32. sites: ['cluster-env'],
  33. configs: configProperties.filterProperty('serviceName', 'GENERAL')
  34. },
  35. {
  36. serviceName: 'HDFS',
  37. displayName: 'HDFS',
  38. filename: 'hdfs-site',
  39. configCategories: [
  40. App.ServiceConfigCategory.create({ name: 'General', displayName: 'General'}),
  41. App.ServiceConfigCategory.create({ name: 'NameNode', displayName: 'NameNode'}),
  42. App.ServiceConfigCategory.create({ name: 'SNameNode', displayName: 'Secondary NameNode'}),
  43. App.ServiceConfigCategory.create({ name: 'DataNode', displayName: 'DataNode'})
  44. ],
  45. sites: ['hadoop-env','core-site', 'hdfs-site'],
  46. configs: configProperties.filterProperty('serviceName', 'HDFS')
  47. },
  48. {
  49. serviceName: 'MAPREDUCE',
  50. displayName: 'MapReduce',
  51. filename: 'mapred-site',
  52. configCategories: [
  53. App.ServiceConfigCategory.create({ name: 'JobTracker', displayName: 'JobTracker'}),
  54. App.ServiceConfigCategory.create({ name: 'JobHistoryServer', displayName: 'History Server'}),
  55. App.ServiceConfigCategory.create({ name: 'TaskTracker', displayName: 'TaskTracker'})
  56. ],
  57. sites: ['mapred-site'],
  58. configs: configProperties.filterProperty('serviceName', 'MAPREDUCE')
  59. },
  60. {
  61. serviceName: 'HIVE',
  62. displayName: 'Hive',
  63. filename: 'hive-site',
  64. configCategories: [
  65. App.ServiceConfigCategory.create({ name: 'Hive Metastore', displayName: 'Hive Metastore and Hive Server 2'}),
  66. App.ServiceConfigCategory.create({ name: 'WebHCat Server', displayName : 'WebHCat Server'})
  67. ],
  68. sites: ['hive-site','webhcat-site'],
  69. configs: configProperties.filterProperty('serviceName', 'HIVE')
  70. },
  71. {
  72. serviceName: 'HBASE',
  73. displayName: 'HBase',
  74. filename: 'hbase-site',
  75. configCategories: [
  76. App.ServiceConfigCategory.create({ name: 'HBase Master', displayName: 'HBase Master'}),
  77. App.ServiceConfigCategory.create({ name: 'RegionServer', displayName: 'RegionServer'})
  78. ],
  79. sites: ['hbase-env','hbase-site'],
  80. configs: configProperties.filterProperty('serviceName', 'HBASE')
  81. },
  82. {
  83. serviceName: 'ZOOKEEPER',
  84. displayName: 'ZooKeeper',
  85. configCategories: [
  86. App.ServiceConfigCategory.create({ name: 'ZooKeeper Server', displayName: 'ZooKeeper Server'})
  87. ],
  88. sites: ['zookeeper-env'],
  89. configs: configProperties.filterProperty('serviceName', 'ZOOKEEPER')
  90. },
  91. {
  92. serviceName: 'OOZIE',
  93. displayName: 'Oozie',
  94. filename: 'oozie-site',
  95. configCategories: [
  96. App.ServiceConfigCategory.create({ name: 'Oozie Server', displayName: 'Oozie Server'})
  97. ],
  98. sites: ['oozie-env','oozie-site'],
  99. configs: configProperties.filterProperty('serviceName', 'OOZIE')
  100. },
  101. {
  102. serviceName: 'NAGIOS',
  103. displayName: 'Nagios',
  104. configCategories: [
  105. App.ServiceConfigCategory.create({ name: 'Nagios Server', displayName: 'Nagios Server'})
  106. ],
  107. sites: ['nagios-env'],
  108. configs: configProperties.filterProperty('serviceName', 'NAGIOS')
  109. }
  110. ];