0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-30 21:45:43 +01:00
users-formula/users
Raphaël Hertzog 43c4707d2a Do not try to run git config when git is not available
The state will not fail gracefully, instead you will get
an error like this one:

          ID: users_rhertzog_user_gitconfig_0
    Function: git.config_set
        Name: alias.br
      Result: False
     Comment: State 'git.config_set' was not found in SLS 'users'
              Reason: 'git' __virtual__ returned False
     Changes:

And since pillar data can't be (easily) tuned according to minion's
status, we really need this check here.

My tests with Salt 2017.7.3 have shown that cmd.has_exec() is reliable
for this, contrary the what the comment was implying.
2018-02-23 15:51:34 +01:00
..
files Added feature to allow syncing arbitrary sets of files per user. 2015-08-21 15:42:25 -05:00
bashrc.sls Add support for jinja code in bashrc files. 2017-05-09 09:53:05 +02:00
googleauth.sls Revert "@XenophonF made me do it" 2015-07-27 12:50:49 -05:00
init.sls Do not try to run git config when git is not available 2018-02-23 15:51:34 +01:00
map.jinja Merge pull request #158 from garethhowell/master 2017-07-26 23:29:13 +02:00
profile.sls Add ability to use templated user files 2017-06-13 14:35:50 -07:00
sudo.sls Don't add sudo group by default. 2015-08-13 23:57:09 +02:00
user_files.sls Broken conditional and lack of line spacing 2017-09-22 15:01:25 -07:00
vimrc.sls Add ability to use templated user files 2017-06-13 14:35:50 -07:00