From c0d5052f6a4f86ed78df5f79f4848f24113dbe1a Mon Sep 17 00:00:00 2001 From: Daniel Dehennin Date: Sun, 27 Sep 2020 20:17:05 +0200 Subject: [PATCH] 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. --- pillar.example | 20 ++++++++++---------- test/salt/pillar/default.sls | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/pillar.example b/pillar.example index 2c86d92..bf3a0f6 100644 --- a/pillar.example +++ b/pillar.example @@ -361,16 +361,6 @@ openssh: # salt://files/ssh/moduli.hash # 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: # The files_switch key serves as a selector for alternative # directories under the formula files directory. See TOFS pattern @@ -399,3 +389,13 @@ mine_functions: - alt_ssh_config sshd_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 diff --git a/test/salt/pillar/default.sls b/test/salt/pillar/default.sls index be0af66..664b4cd 100644 --- a/test/salt/pillar/default.sls +++ b/test/salt/pillar/default.sls @@ -189,16 +189,6 @@ openssh: # salt://files/ssh/moduli.hash # 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: # The files_switch key serves as a selector for alternative # directories under the formula files directory. See TOFS pattern @@ -227,3 +217,13 @@ mine_functions: - alt_ssh_config sshd_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