Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### salt state file: #####
- {%- from 'jinja/environment_'+ pillar['environment'] +'.jinja' import jinjamap with context %}
- ldap-packages:
- pkg.installed:
- - pkgs:
- - openldap-clients
- - nss-pam-ldapd
- ldap-setup:
- cmd.wait:
- - name: authconfig --update --enablemd5 --usemd5 --enableshadow --enablelocauthorize --enableldap --enableldapauth --ldapserver {{ jinjamap.ldap.servers }} --ldapbasedn {{ jinjamap.ldap.basedn }} --disablecache
- - cwd: /root
- - stateful: True
- - watch:
- - pkg: ldap-packages
- #### output SEEMS OK, but the /etc/openldap/ldap.conf is not updated #####
- #### if i run the command manually on the minion it works perfectly #####
- [DEBUG ] Reading configuration from /etc/salt/master
- [DEBUG ] Missing configuration file: /root/.salt
- [DEBUG ] loading log_handlers in ['/var/cache/salt/master/extmods/log_handlers', '/usr/lib/python2.6/site-packages/salt/log/handlers']
- [DEBUG ] Skipping /var/cache/salt/master/extmods/log_handlers, it is not a directory
- [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.
- [DEBUG ] Configuration file path: /etc/salt/master
- [DEBUG ] Reading configuration from /etc/salt/master
- [DEBUG ] Missing configuration file: /root/.salt
- [DEBUG ] LocalClientEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
- [DEBUG ] LocalClientEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
- [DEBUG ] loading output in ['/var/cache/salt/master/extmods/output', '/usr/lib/python2.6/site-packages/salt/output']
- [DEBUG ] Skipping /var/cache/salt/master/extmods/output, it is not a directory
- [DEBUG ] Loaded no_out as virtual quiet
- [DEBUG ] Loaded json_out as virtual json
- [DEBUG ] Loaded yaml_out as virtual yaml
- [DEBUG ] Loaded pprint_out as virtual pprint
- office-saltminion01.360t.com:
- ----------
- State: - pkg
- Name: ldap-packages
- Function: installed
- Result: True
- Comment: All specified packages are already installed.
- Changes:
- ----------
- State: - cmd
- Name: authconfig --update --enablemd5 --usemd5 --enableshadow --enablelocauthorize --enableldap --enableldapauth --ldapserver ldap://office-ldap01,ldap://office-ldap02 --ldapbasedn dc=adminserver,dc=net2 --disablecache
- Function: wait
- Result: True
- Comment:
- Changes:
- Summary
- ------------
- Succeeded: 2
- Failed: 0
- ------------
- Total: 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement