Salt: Difference between revisions

From DWIKI
No edit summary
No edit summary
Line 16: Line 16:
=Writing custom state modules=
=Writing custom state modules=
*https://docs.saltstack.com/en/latest/ref/states/writing.html
*https://docs.saltstack.com/en/latest/ref/states/writing.html
*http://intothesaltmine.readthedocs.io/en/latest/chapters/development/writing-modules.html


Syntax checking etc:
Syntax checking etc:

Revision as of 14:45, 30 June 2016

Salt Configuration Management

Links

Tools

Writing custom state modules

Syntax checking etc:

python -m py__compile mymodule.py


FAQ

Change minion hostname

On minion:

  • hostname new.host.name
  • update /etc/hostname
  • update /etc/salt/minion_id
  • restart salt-minion

On master: rename the key ( /srv/salt/pki/master/minions/old.host.name )

Rendering SLS 'base:roles.foo.bar' failed: Jinja variable 'dict object' has no attribute 'blergh'

Unless you made a typo, your minion probably doesn't have access in pillar