Переглянути джерело

Merge pull request #196 from baby-gnu/fix/tofs-pillars

fix(pillar): `tofs` must not be under `mine_functions`
tags/v2.0.4
Imran Iqbal 4 роки тому
джерело
коміт
91bc8bebe4
Аккаунт користувача з таким Email не знайдено
16 змінених файлів з 160 додано та 20 видалено
  1. +10
    -10
      pillar.example
  2. +10
    -0
      test/integration/default/files/_mapdata/amazonlinux-1.yaml
  3. +10
    -0
      test/integration/default/files/_mapdata/amazonlinux-2.yaml
  4. +10
    -0
      test/integration/default/files/_mapdata/arch-base-latest.yaml
  5. +10
    -0
      test/integration/default/files/_mapdata/centos-6.yaml
  6. +10
    -0
      test/integration/default/files/_mapdata/centos-7.yaml
  7. +10
    -0
      test/integration/default/files/_mapdata/centos-8.yaml
  8. +10
    -0
      test/integration/default/files/_mapdata/debian-10.yaml
  9. +10
    -0
      test/integration/default/files/_mapdata/debian-9.yaml
  10. +10
    -0
      test/integration/default/files/_mapdata/fedora-31.yaml
  11. +10
    -0
      test/integration/default/files/_mapdata/fedora-32.yaml
  12. +10
    -0
      test/integration/default/files/_mapdata/opensuse-15.yaml
  13. +10
    -0
      test/integration/default/files/_mapdata/ubuntu-16.yaml
  14. +10
    -0
      test/integration/default/files/_mapdata/ubuntu-18.yaml
  15. +10
    -0
      test/integration/default/files/_mapdata/ubuntu-20.yaml
  16. +10
    -10
      test/salt/pillar/default.sls

+ 10
- 10
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

+ 10
- 0
test/integration/default/files/_mapdata/amazonlinux-1.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/amazonlinux-2.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/arch-base-latest.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/centos-6.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/centos-7.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/centos-8.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/debian-10.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/debian-9.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/fedora-31.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/fedora-32.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/opensuse-15.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/ubuntu-16.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/ubuntu-18.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 0
test/integration/default/files/_mapdata/ubuntu-20.yaml Переглянути файл

@@ -151,6 +151,16 @@ openssh:
sshd_config_src: sshd_config
sshd_config_user: root
sshd_enable: true
tofs:
source_files:
manage ssh_known_hosts file:
- alt_ssh_known_hosts
ssh_config:
- alt_ssh_config
sshd_banner:
- fire_banner
sshd_config:
- alt_sshd_config
ssh_config:
Hosts:
'*':

+ 10
- 10
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

Завантаження…
Відмінити
Зберегти