Remove the empty lines left by Jinja2 variable definitions

There is whitespace control in Jinja2. You might want: {%- set ip = grains[‘ip4_interfaces’][‘eth1’][0] -%} {%- set domain = pillar[‘company_domain’] -%} {%- set version = pillar[‘site_version’] -%} {%- set site_url=”www.” + domain -%} […] As well, the salt configuration file supports jinja_trim_blocks and jinja_lstrip_blocks (jinja_env:trim_blocks, jinja_env:lstrip_blocks, jinja_sls_env:trim_blocks, and jinja_sls_env:lstrip_blocks as of 2018.3).

Is there a way to display only changes and errors

You can set state_verbose: False in /etc/salt/master or /etc/salt/minion. If you want to shorten the output to one line per state, set state_output: terse. You can also pass these filters on command line: salt –state-output=terse ‘*’ state.highstate If you only want to see changes, you can use state-output=changes or state-output=mixed. The latter one will show … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)