Unnamed paste

pasted by norrland [options]

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
mystate-init.sls:
-----------------
nslcd-debconf:
  pkg:
    - installed
    - name:
      - debconf-utils
  debconf.set_file:
    - source: salt://ldapclient/files/nslcd.debconf.jinja
    - template: jinja2
    - context:
        config: {{ salt['pillar.get']('ldap', {}) }}

nslcd:
  pkg:
    - installed
  service.running:
    - enable: True
    - watch:
      - file: /etc/nslcd.conf
    - require:
      - debconf: nslcd-debconf

ldapclient/files/nslcd.debconf.jinja:
-------------------------------------
nslcd   nslcd/ldap-starttls     boolean true
nslcd   nslcd/ldap-base string  {{ config.base }}
nslcd   nslcd/ldap-sasl-realm   string
nslcd   nslcd/ldap-reqcert      select  try
nslcd   nslcd/disable-screensaver       error
nslcd   nslcd/ldap-cacertfile   string  /etc/ssl/certs/ca-certificates.crt
nslcd   nslcd/ldap-sasl-authzid string
nslcd   nslcd/restart-failed    error
{%- for server in config.get('servers', []) -%}
nslcd   nslcd/ldap-uris string  ldap://{{ server }}
{%- endfor -%}
nslcd   nslcd/restart-services  string
nslcd   nslcd/ldap-binddn       string  {{ config.nslcd.binddn }}
nslcd   nslcd/ldap-bindpw       string  {{ config.nslcd.bindpw }}
nslcd   libraries/restart-without-asking        boolean true
nslcd   nslcd/ldap-auth-type    select  simple
nslcd   nslcd/ldap-sasl-mech    select
nslcd   nslcd/ldap-sasl-krb5-ccname     string  /var/run/nslcd/nslcd.tkt
nslcd   nslcd/ldap-sasl-secprops        string
nslcd   nslcd/ldap-sasl-authcid string


Error:
------
----------
          ID: nslcd-debconf
    Function: debconf.set_file
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1563, in call
                  **cdata['kwargs'])
                File "/usr/lib/python2.7/dist-packages/salt/states/debconfmod.py", line 122, in set_file
                  result = __salt__['debconf.set_template'](source, template, context, defaults, **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/modules/debconfmod.py", line 170, in set_template
                  return set_file(path, saltenv, **kwargs)
                File "/usr/lib/python2.7/dist-packages/salt/modules/debconfmod.py", line 191, in set_file
                  path = __salt__['cp.cache_file'](path, saltenv)
                File "/usr/lib/python2.7/dist-packages/salt/modules/cp.py", line 344, in cache_file
                  result = __context__['cp.fileclient'].cache_file(path, saltenv)
                File "/usr/lib/python2.7/dist-packages/salt/fileclient.py", line 152, in cache_file
                  return self.get_url(path, '', True, saltenv)
                File "/usr/lib/python2.7/dist-packages/salt/fileclient.py", line 522, in get_url
                  'Path {0!r} is not absolute'.format(url_data.path)
              CommandExecutionError: Path '' is not absolute
     Started: 14:21:45.715971
    Duration: 7.375 ms
     Changes: