Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors rendering salt/formulas.sls or salt/files/master.d/f_defaults.conf #175

Closed
xenophonf opened this issue Sep 3, 2015 · 0 comments
Closed

Comments

@xenophonf
Copy link
Contributor

Running the salt.formulas state results in the following error:

root@uxeprdbsdsalt01:~ # salt-call state.sls salt.formulas saltenv=production test=True
[INFO    ] Loading fresh modules for state activity
[INFO    ] Fetching file from saltenv 'production', ** skipped ** latest already in cache 'salt://salt/formulas.sls'
[INFO    ] Fetching file from saltenv 'production', ** done ** 'salt/formulas.jinja'
[CRITICAL] Rendering SLS 'production:salt.formulas' failed: mapping values are not allowed here; line 18

---
[...]

# Setup the directory hosting the Git repository


/usr/local/etc/salt/formulas
...:    <======================
  file.directory:
    - makedirs: True
    - group: wheel
    - user: root
    - mode: 755
[...]

---
local:
    Data failed to compile:
----------
    Rendering SLS 'production:salt.formulas' failed: mapping values are not allowed here; line 18

---
[...]

# Setup the directory hosting the Git repository


/usr/local/etc/salt/formulas
...:    <======================
  file.directory:
    - makedirs: True
    - group: wheel
    - user: root
    - mode: 755
[...]

---

Running the salt.master state results in the following incorrect rendering (truncated for brevity's sake):

root@uxeprdbsdsalt01:~ # salt-call state.sls salt.master saltenv=development test=True
[INFO    ] Loading fresh modules for state activity
[INFO    ] Fetching file from saltenv 'development', ** skipped ** latest already in cache 'salt://salt/master.sls'
[INFO    ] Fetching file from saltenv 'development', ** done ** 'salt/map.jinja'
[INFO    ] Fetching file from saltenv 'development', ** done ** 'salt/defaults.yaml'
[INFO    ] Executing command '/sbin/zfs -?' in directory '/root'
[INFO    ] Running state [py27-salt] at time 14:50:01.749847
[INFO    ] Executing state pkg.installed for py27-salt
[INFO    ] Executing command 'pkg info -ao' in directory '/root'
[INFO    ] Package py27-salt is already installed.
[INFO    ] Completed state [py27-salt] at time 14:50:01.963569
[INFO    ] Running state [/usr/local/etc/salt/master.d] at time 14:50:01.968229
[INFO    ] Executing state file.recurse for /usr/local/etc/salt/master.d
[INFO    ] Fetching file from saltenv 'development', ** skipped ** latest already in cache u'salt://salt/files/master.d/f_defaults.conf'
[INFO    ] Fetching file from saltenv 'development', ** skipped ** latest already in cache 'salt://salt/formulas.jinja'
[INFO    ] Fetching file from saltenv 'development', ** skipped ** latest already in cache u'salt://salt/files/master.d/reactor.conf'
[INFO    ] {'/usr/local/etc/salt/master.d/f_defaults.conf': {'diff': '--- \n+++ \n@@ -431,77 +431,146 @@\n     - /code/twgs-formula\n     - /code/users-formula\n   production:\n-    - /usr/local/etc/salt/formulas/active-directory-formula\n-    - /usr/local/etc/salt/formulas/epel-formula\n-    - /usr/local/etc/salt/formulas/fail2ban-formula\n-    - /usr/local/etc/salt/formulas/firewalld-formula\n-    - /usr/local/etc/salt/formulas/git-formula\n-    - /usr/local/etc/salt/formulas/jenkins-formula\n-    - /usr/local/etc/salt/formulas/mysql-formula\n-    - /usr/local/etc/salt/formulas/ntp-formula\n-    - /usr/local/etc/salt/formulas/nux-formula\n-    - /usr/local/etc/salt/formulas/openstack-formula\n-    - /usr/local/etc/salt/formulas/openssh-formula\n-    - /usr
...
----------
          ID: salt-master
    Function: file.recurse
        Name: /usr/local/etc/salt/master.d
      Result: None
     Comment: #### /usr/local/etc/salt/master.d/f_defaults.conf ####
              The file /usr/local/etc/salt/master.d/f_defaults.conf is set to be changed
     Started: 14:50:01.968229
    Duration: 890.319 ms
     Changes:
              ----------
              /usr/local/etc/salt/master.d/f_defaults.conf:
                  ----------
                  diff:
                      ---
                      +++
                      @@ -431,77 +431,146 @@
                           - /code/twgs-formula
                           - /code/users-formula
                         production:
                      -    - /usr/local/etc/salt/formulas/active-directory-formula
                      -    - /usr/local/etc/salt/formulas/epel-formula
                      -    - /usr/local/etc/salt/formulas/fail2ban-formula
                      -    - /usr/local/etc/salt/formulas/firewalld-formula
                      -    - /usr/local/etc/salt/formulas/git-formula
                      -    - /usr/local/etc/salt/formulas/jenkins-formula
                      -    - /usr/local/etc/salt/formulas/mysql-formula
                      -    - /usr/local/etc/salt/formulas/ntp-formula
                      -    - /usr/local/etc/salt/formulas/nux-formula
                      -    - /usr/local/etc/salt/formulas/openstack-formula
                      -    - /usr/local/etc/salt/formulas/openssh-formula
                      -    - /usr/local/etc/salt/formulas/os-hardening-formula
                      -    - /usr/local/etc/salt/formulas/owncloud-formula
                      -    - /usr/local/etc/salt/formulas/postgres-formula
                      -    - /usr/local/etc/salt/formulas/rabbitmq-formula
                      -    - /usr/local/etc/salt/formulas/salt-formula
                      -    - /usr/local/etc/salt/formulas/shibboleth-formula
                      -    - /usr/local/etc/salt/formulas/snmp-formula
                      -    - /usr/local/etc/salt/formulas/spigotmc-formula
                      -    - /usr/local/etc/salt/formulas/sudoers-formula
                      -    - /usr/local/etc/salt/formulas/tomcat-formula
                      -    - /usr/local/etc/salt/formulas/twgs-formula
                      -    - /usr/local/etc/salt/formulas/users-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../active-directory-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../epel-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../fail2ban-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../firewalld-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../git-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../jenkins-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../mysql-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../ntp-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../nux-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../openstack-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../openssh-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../os-hardening-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../owncloud-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../postgres-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../rabbitmq-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../salt-formula
                      +    - /usr/local/etc/salt/formulas
                      +.../shibboleth-formula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant