#set up a jenkins user for the sole purpose of allowing ssh for an ssh-tunnel to redis from jenkins slaves
redis_jenkins:
  user.managed:
    - name: jenkins

{{ pillar['pubkeys']['jenkins_slave_root']['key'] }}:
  ssh_auth:
    - present
    - user: jenkins
    - enc: {{ pillar['pubkeys']['jenkins_slave_root']['enc'] }}
    - comment: {{ pillar['pubkeys']['jenkins_slave_root']['comment'] }}
    - require:
      - user: jenkins

#set up a jenkins user for the sole purpose of allowing ssh for an ssh-tunnel to redis from jenkins slaves
redis_jenkins:
  user.present:
    - name: jenkins

{{ pillar['pubkeys']['jenkins_slave_root']['key'] }}:
  ssh_auth:
    - present
    - user: jenkins
    - enc: {{ pillar['pubkeys']['jenkins_slave_root']['enc'] }}
    - comment: {{ pillar['pubkeys']['jenkins_slave_root']['comment'] }}
    - require:
      - user: jenkins

Use the right (existent) user function.
Use the right (existent) user function.

jesusaurus/hpcs-salt-state,jesusaurus/hpcs-salt-state