Browse Source

fix(pillar): `tofs` must not be under `mine_functions`

The debug output of test jobs don't show the use of TOFS as it should
and the pillar.example show that `tofs` is under `mine_functions`
instead of `openssh`.

* pillar.example: move `tofs` under `openssh`.

* test/salt/pillar/default.sls: ditoo.
tags/v2.0.4
Daniel Dehennin 4 years ago
parent
commit
c0d5052f6a
2 changed files with 20 additions and 20 deletions
  1. +10
    -10
      pillar.example
  2. +10
    -10
      test/salt/pillar/default.sls

+ 10
- 10
pillar.example View File

# salt://files/ssh/moduli.hash # salt://files/ssh/moduli.hash
# These will be automatically referenced to by the ssh_moduli state. # These will be automatically referenced to by the ssh_moduli state.


# Required for openssh.known_hosts
mine_functions:
public_ssh_host_keys:
mine_function: cmd.run
cmd: cat /etc/ssh/ssh_host_*_key.pub
python_shell: true
public_ssh_hostname:
mine_function: grains.get
key: id

tofs: tofs:
# The files_switch key serves as a selector for alternative # The files_switch key serves as a selector for alternative
# directories under the formula files directory. See TOFS pattern # directories under the formula files directory. See TOFS pattern
- alt_ssh_config - alt_ssh_config
sshd_banner: sshd_banner:
- fire_banner - fire_banner

# Required for openssh.known_hosts
mine_functions:
public_ssh_host_keys:
mine_function: cmd.run
cmd: cat /etc/ssh/ssh_host_*_key.pub
python_shell: true
public_ssh_hostname:
mine_function: grains.get
key: id

+ 10
- 10
test/salt/pillar/default.sls View File

# salt://files/ssh/moduli.hash # salt://files/ssh/moduli.hash
# These will be automatically referenced to by the ssh_moduli state. # These will be automatically referenced to by the ssh_moduli state.


# Required for openssh.known_hosts
mine_functions:
public_ssh_host_keys:
mine_function: cmd.run
cmd: cat /etc/ssh/ssh_host_*_key.pub
python_shell: true
public_ssh_hostname:
mine_function: grains.get
key: id

tofs: tofs:
# The files_switch key serves as a selector for alternative # The files_switch key serves as a selector for alternative
# directories under the formula files directory. See TOFS pattern # directories under the formula files directory. See TOFS pattern
- alt_ssh_config - alt_ssh_config
sshd_banner: sshd_banner:
- fire_banner - fire_banner

# Required for openssh.known_hosts
mine_functions:
public_ssh_host_keys:
mine_function: cmd.run
cmd: cat /etc/ssh/ssh_host_*_key.pub
python_shell: true
public_ssh_hostname:
mine_function: grains.get
key: id

Loading…
Cancel
Save