original_docstring: Identities needed for Hortonworks Data Platform
docstring: Identities needed for Hortonworks Data Platform
docstring_tokens: Identities needed for Hortonworks Data Platform
code: def hdp_identities(zone):
      """Identities needed for Hortonworks Data Platform"""
      smoke_user = ('ambari-qa', 'user')
      identities = {
          'groups': set(),  # Groups with no users in them.
          'users': {
              'accumulo': ('accumulo', {'hadoop'}),
              'activity_analyzer': ('activity_analyzer', {'hadoop'}),
              'activity_explorer': ('activity_explorer', {'hadoop'}),
              'ambari-qa': ('ambari-qa', {'hadoop'}),
              'ambari-server': ('ambari-server', {'hadoop'}),
              'ams': ('ams', {'hadoop'}),
              'anonymous': ('anonymous', set()),
              'atlas': ('atlas', {'hadoop'}),
              'druid': ('druid', {'hadoop'}),
              'falcon': ('falcon', {'hadoop'}),
              'flume': ('flume', {'hadoop'}),
              'gpadmin': ('gpadmin', {'hadoop'}),
              'hadoopqa': ('hadoopqa', {'hadoop'}),
              'hbase': ('hbase', {'hadoop'}),
              'hcat': ('hcat', {'hadoop'}),
              'hdfs': ('hdfs', {'hadoop'}),
              'hive': ('hive', {'hadoop'}),
              'HTTP': ('HTTP', {'hadoop'}),
              'hue': ('hue', {'hadoop'}),
              'infra-solr': ('infra-solr', {'hadoop'}),
              'kafka': ('kafka', {'hadoop'}),
              'keyadmin': ('keyadmin', {'hadoop'}),
              'kms': ('kms', {'hadoop'}),
              'knox': ('knox', {'hadoop'}),
              'livy': ('livy', {'hadoop'}),
              'logsearch': ('logsearch', {'hadoop'}),
              'mahout': ('mahout', {'hadoop'}),
              'mapred': ('mapred', {'hadoop'}),
              'oozie': ('oozie', {'hadoop'}),
              'ranger': ('ranger', {'hadoop'}),
              'rangerlookup': ('rangerlookup', {'hadoop'}),
              'spark': ('spark', {'hadoop'}),
              'sqoop': ('sqoop', {'hadoop'}),
              'storm': ('storm', {'hadoop'}),
              'tez': ('tez', {'hadoop'}),
              'tracer': ('tracer', {'hadoop'}),
              'yarn': ('yarn', {'hadoop'}),
              'yarn-ats': ('yarn-ats', {'hadoop'}),
              'yarn-ats-hbase': ('yarn-ats-hbase', {'hadoop'}),
              'zeppelin': ('zeppelin', {'hadoop'}),
              'zookeeper': ('zookeeper', {'hadoop'}),
          },
          'proxy_users': {
              'ambari-server': {smoke_user},
              'flume': {smoke_user, ('hadoop', 'group')},
              'hbase': {smoke_user, ('hadoop', 'group')},
              'hcat': {smoke_user, ('hadoop', 'group')},
              'hive': {smoke_user, ('hadoop', 'group')},
              'HTTP': {smoke_user},
              'knox': {smoke_user},
              'livy': {smoke_user, ('hadoop', 'group')},
              'oozie': {smoke_user, ('hadoop', 'group')},
              'yarn': {smoke_user, ('hadoop', 'group')},
          },
      }
      if zone.lower() != 'system':
          identities['users']['admin'] = ('admin', set())
      return identities
code_tokens: def hdp_identities ( zone ) : smoke_user = ( 'ambari-qa' , 'user' ) identities = { 'groups' : set ( ) , 'users' : { 'accumulo' : ( 'accumulo' , { 'hadoop' } ) , 'activity_analyzer' : ( 'activity_analyzer' , { 'hadoop' } ) , 'activity_explorer' : ( 'activity_explorer' , { 'hadoop' } ) , 'ambari-qa' : ( 'ambari-qa' , { 'hadoop' } ) , 'ambari-server' : ( 'ambari-server' , { 'hadoop' } ) , 'ams' : ( 'ams' , { 'hadoop' } ) , 'anonymous' : ( 'anonymous' , set ( ) ) , 'atlas' : ( 'atlas' , { 'hadoop' } ) , 'druid' : ( 'druid' , { 'hadoop' } ) , 'falcon' : ( 'falcon' , { 'hadoop' } ) , 'flume' : ( 'flume' , { 'hadoop' } ) , 'gpadmin' : ( 'gpadmin' , { 'hadoop' } ) , 'hadoopqa' : ( 'hadoopqa' , { 'hadoop' } ) , 'hbase' : ( 'hbase' , { 'hadoop' } ) , 'hcat' : ( 'hcat' , { 'hadoop' } ) , 'hdfs' : ( 'hdfs' , { 'hadoop' } ) , 'hive' : ( 'hive' , { 'hadoop' } ) , 'HTTP' : ( 'HTTP' , { 'hadoop' } ) , 'hue' : ( 'hue' , { 'hadoop' } ) , 'infra-solr' : ( 'infra-solr' , { 'hadoop' } ) , 'kafka' : ( 'kafka' , { 'hadoop' } ) , 'keyadmin' : ( 'keyadmin' , { 'hadoop' } ) , 'kms' : ( 'kms' , { 'hadoop' } ) , 'knox' : ( 'knox' , { 'hadoop' } ) , 'livy' : ( 'livy' , { 'hadoop' } ) , 'logsearch' : ( 'logsearch' , { 'hadoop' } ) , 'mahout' : ( 'mahout' , { 'hadoop' } ) , 'mapred' : ( 'mapred' , { 'hadoop' } ) , 'oozie' : ( 'oozie' , { 'hadoop' } ) , 'ranger' : ( 'ranger' , { 'hadoop' } ) , 'rangerlookup' : ( 'rangerlookup' , { 'hadoop' } ) , 'spark' : ( 'spark' , { 'hadoop' } ) , 'sqoop' : ( 'sqoop' , { 'hadoop' } ) , 'storm' : ( 'storm' , { 'hadoop' } ) , 'tez' : ( 'tez' , { 'hadoop' } ) , 'tracer' : ( 'tracer' , { 'hadoop' } ) , 'yarn' : ( 'yarn' , { 'hadoop' } ) , 'yarn-ats' : ( 'yarn-ats' , { 'hadoop' } ) , 'yarn-ats-hbase' : ( 'yarn-ats-hbase' , { 'hadoop' } ) , 'zeppelin' : ( 'zeppelin' , { 'hadoop' } ) , 'zookeeper' : ( 'zookeeper' , { 'hadoop' } ) , } , 'proxy_users' : { 'ambari-server' : { smoke_user } , 'flume' : { smoke_user , ( 'hadoop' , 'group' ) } , 'hbase' : { smoke_user , ( 'hadoop' , 'group' ) } , 'hcat' : { smoke_user , ( 'hadoop' , 'group' ) } , 'hive' : { smoke_user , ( 'hadoop' , 'group' ) } , 'HTTP' : { smoke_user } , 'knox' : { smoke_user } , 'livy' : { smoke_user , ( 'hadoop' , 'group' ) } , 'oozie' : { smoke_user , ( 'hadoop' , 'group' ) } , 'yarn' : { smoke_user , ( 'hadoop' , 'group' ) } , } , } if zone . lower ( ) != 'system' : identities [ 'users' ] [ 'admin' ] = ( 'admin' , set ( ) ) return identities
short_docstring: Identities needed for Hortonworks Data Platform
short_docstring_tokens: Identities needed for Hortonworks Data Platform
comment: """Identities needed for Hortonworks Data Platform"""$SEP$# Groups with no users in them.