Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.58 KB | None | 0 0
  1. #### salt state file: #####
  2. {%- from 'jinja/environment_'+ pillar['environment'] +'.jinja' import jinjamap with context %}
  3.  
  4. ldap-packages:
  5.   pkg.installed:
  6.     - pkgs:
  7.      - openldap-clients
  8.       - nss-pam-ldapd      
  9.  
  10.  
  11. ldap-setup:
  12.   cmd.wait:
  13.     - name: authconfig --update --enablemd5 --usemd5 --enableshadow --enablelocauthorize --enableldap --enableldapauth --ldapserver {{ jinjamap.ldap.servers }} --ldapbasedn {{ jinjamap.ldap.basedn }} --disablecache
  14.     - cwd: /root
  15.     - stateful: True
  16.     - watch:
  17.       - pkg: ldap-packages
  18.  
  19.  
  20.  
  21.  
  22.  
  23. #### output SEEMS OK, but the /etc/openldap/ldap.conf is not updated #####
  24. #### if i run the command manually on the minion  it works perfectly #####
  25.  
  26.  
  27.  
  28. [DEBUG   ] Reading configuration from /etc/salt/master
  29. [DEBUG   ] Missing configuration file: /root/.salt
  30. [DEBUG   ] loading log_handlers in ['/var/cache/salt/master/extmods/log_handlers', '/usr/lib/python2.6/site-packages/salt/log/handlers']
  31. [DEBUG   ] Skipping /var/cache/salt/master/extmods/log_handlers, it is not a directory
  32. [DEBUG   ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found the in the configuration. Not loading the Logstash logging handlers module.
  33. [DEBUG   ] Configuration file path: /etc/salt/master
  34. [DEBUG   ] Reading configuration from /etc/salt/master
  35. [DEBUG   ] Missing configuration file: /root/.salt
  36. [DEBUG   ] LocalClientEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
  37. [DEBUG   ] LocalClientEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
  38. [DEBUG   ] loading output in ['/var/cache/salt/master/extmods/output', '/usr/lib/python2.6/site-packages/salt/output']
  39. [DEBUG   ] Skipping /var/cache/salt/master/extmods/output, it is not a directory
  40. [DEBUG   ] Loaded no_out as virtual quiet
  41. [DEBUG   ] Loaded json_out as virtual json
  42. [DEBUG   ] Loaded yaml_out as virtual yaml
  43. [DEBUG   ] Loaded pprint_out as virtual pprint
  44. office-saltminion01.360t.com:
  45. ----------
  46.     State: - pkg
  47.     Name:     ldap-packages
  48.     Function: installed
  49.         Result:   True
  50.         Comment:  All specified packages are already installed.
  51.         Changes:  
  52. ----------
  53.     State: - cmd
  54.     Name:     authconfig --update --enablemd5 --usemd5 --enableshadow --enablelocauthorize --enableldap --enableldapauth --ldapserver ldap://office-ldap01,ldap://office-ldap02 --ldapbasedn dc=adminserver,dc=net2 --disablecache
  55.     Function: wait
  56.         Result:   True
  57.         Comment:  
  58.         Changes:  
  59.  
  60. Summary
  61. ------------
  62. Succeeded: 2
  63. Failed:   0
  64. ------------
  65. Total:    2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement