Guest User

Untitled

a guest
Jan 4th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.13 KB | None | 0 0
  1. my salt-api conf file
  2.  
  3. - - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -
  4. rest_cherrypy:
  5. port: 8000
  6. host: 0.0.0.0
  7. debug: True
  8. disable_ssl: true
  9.  
  10. externalauth:
  11. pam:
  12. salt:
  13. - .*
  14. - '@wheel' # to allow access to all wheel modules
  15. - '@runner' # to allow access to all runner modules
  16. - '@jobs' # to allow access to the jobs runner and/or wheel module
  17.  
  18.  
  19. - - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -
  20.  
  21. I have created a user called salt and set the password.
  22. Here are the logs for pam
  23.  
  24.  
  25. salt -a pam '*' test.ping -l trace
  26. [DEBUG ] Reading configuration from /etc/salt/master
  27. [DEBUG ] Including configuration from '/etc/salt/master.d/master.conf'
  28. [DEBUG ] Reading configuration from /etc/salt/master.d/master.conf
  29. [DEBUG ] Including configuration from '/etc/salt/master.d/reactor.conf'
  30. [DEBUG ] Reading configuration from /etc/salt/master.d/reactor.conf
  31. [DEBUG ] Including configuration from '/etc/salt/master.d/salt-api.conf'
  32. [DEBUG ] Reading configuration from /etc/salt/master.d/salt-api.conf
  33. [DEBUG ] Using cached minion ID from /etc/salt/minion_id: salt-master
  34. [DEBUG ] Missing configuration file: /root/.saltrc
  35. [TRACE ] The required configuration section, 'fluent_handler', was not found the in the configuration. Not loading the fluent logging handlers module.
  36. [TRACE ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found in the configuration. Not loading the Logstash logging handlers module.
  37. [DEBUG ] Configuration file path: /etc/salt/master
  38. [WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
  39. [DEBUG ] Reading configuration from /etc/salt/master
  40. [DEBUG ] Including configuration from '/etc/salt/master.d/master.conf'
  41. [DEBUG ] Reading configuration from /etc/salt/master.d/master.conf
  42. [DEBUG ] Including configuration from '/etc/salt/master.d/reactor.conf'
  43. [DEBUG ] Reading configuration from /etc/salt/master.d/reactor.conf
  44. [DEBUG ] Including configuration from '/etc/salt/master.d/salt-api.conf'
  45. [DEBUG ] Reading configuration from /etc/salt/master.d/salt-api.conf
  46. [DEBUG ] Using cached minion ID from /etc/salt/minion_id: salt-master
  47. [DEBUG ] Missing configuration file: /root/.saltrc
  48. [DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
  49. [DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
  50. [DEBUG ] LazyLoaded pam.auth
  51. username: salt
  52. password:
  53. [DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/master', 'salt-master_master', 'tcp://127.0.0.1:4506', 'clear')
  54. [TRACE ] Inserted key into loop_instance_map id 140408101590080 for key ('/etc/salt/pki/master', 'salt-master_master', 'tcp://127.0.0.1:4506', 'clear') and process 28430
  55. [DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pub.ipc
  56. [TRACE ] IPCClient: Connecting to socket: /var/run/salt/master/master_event_pub.ipc
  57. [DEBUG ] LazyLoaded nested.output
  58. [TRACE ] data = Failed to authenticate! This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error occurred (check disk/inode usage).
  59. Failed to authenticate! This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error occurred (check disk/inode usage).
  60.  
  61. - - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -
  62.  
  63. Versions:
  64.  
  65.  
  66. salt-master:/etc/salt/master.d# salt-api --version
  67. salt-api 2017.7.1 (Nitrogen)
  68.  
  69. - - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -
  70.  
  71. salt-master:/etc/salt/master.d# salt --versions-report
  72. Salt Version:
  73. Salt: 2017.7.1
  74.  
  75. Dependency Versions:
  76. cffi: Not Installed
  77. cherrypy: 3.5.0
  78. dateutil: 2.4.2
  79. docker-py: Not Installed
  80. gitdb: 0.6.4
  81. gitpython: 1.0.1
  82. ioflo: Not Installed
  83. Jinja2: 2.8
  84. libgit2: Not Installed
  85. libnacl: Not Installed
  86. M2Crypto: Not Installed
  87. Mako: 1.0.3
  88. msgpack-pure: Not Installed
  89. msgpack-python: 0.4.6
  90. mysql-python: Not Installed
  91. pycparser: Not Installed
  92. pycrypto: 2.6.1
  93. pycryptodome: Not Installed
  94. pygit2: Not Installed
  95. Python: 2.7.12 (default, Nov 20 2017, 18:23:56)
  96. python-gnupg: Not Installed
  97. PyYAML: 3.11
  98. PyZMQ: 15.2.0
  99. RAET: Not Installed
  100. smmap: 0.9.0
  101. timelib: Not Installed
  102. Tornado: 4.2.1
  103. ZMQ: 4.1.4
  104.  
  105. System Versions:
  106. dist: Ubuntu 16.04 xenial
  107. locale: UTF-8
  108. machine: x86_64
  109. release: 4.4.0-1038-aws
  110. system: Linux
  111. version: Ubuntu 16.04 xenial
  112.  
  113. - - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -- - - - - - -
  114.  
  115. Salt-master debug logs
  116.  
  117.  
  118. 2017-12-28 18:56:50,026 [salt.auth ][WARNING ][17583] Authentication failure of type "eauth" occurred.
  119. 2017-12-28 18:56:50,027 [salt.master ][WARNING ][17583] Authentication failure of type "eauth" occurred.
Add Comment
Please, Sign In to add comment