| {%- set cacert_file = salt['grains.filter_by']({ |
| 'Debian': '/etc/ssl/certs/ca-certificates.crt', |
| 'RedHat': '/etc/pki/tls/certs/ca-bundle.crt' |
| }) |
| %} |
| |
| {% set api = salt['grains.filter_by']({ |
| 'Common': { |
| 'pkgs': ['ironic-api'], |
| 'service': 'ironic-api', |
| 'api_type': 'mixed', |
| 'cacert_file': cacert_file, |
| 'notification': {}, |
| 'uefi': { |
| 'grub_dir_name': 'grub', |
| 'enabled': false |
| }, |
| 'bind': { |
| 'protocol': 'http' |
| }, |
| 'identity': { |
| 'protocol': 'http' |
| }, |
| 'logging': { |
| 'app_name': 'ironic', |
| 'log_appender': false, |
| 'log_handlers': { |
| 'watchedfile': { |
| 'enabled': true |
| } |
| } |
| } |
| } |
| }, base='Common', merge=pillar.ironic.get('api', {})) %} |
| |
| {% set conductor = salt['grains.filter_by']({ |
| 'Common': { |
| 'service': 'ironic-conductor', |
| 'ipxe_rom_files': ['undionly.kpxe', 'ipxe.efi'], |
| 'cacert_file': cacert_file, |
| 'notification': {}, |
| 'identity': { |
| 'protocol': 'http' |
| }, |
| 'logging': { |
| 'app_name': 'ironic', |
| 'log_appender': false, |
| 'log_handlers': { |
| 'watchedfile': { |
| 'enabled': true |
| } |
| } |
| } |
| }, |
| 'Debian': { |
| 'pkgs': ['ipmitool', 'ironic-conductor', 'tftpd-hpa', 'syslinux-common', 'pxelinux', 'ipxe', 'gdisk'], |
| 'uefi_pkgs': ['grub-efi-amd64-signed', 'shim-signed'], |
| 'console_pkgs': ['shellinabox', 'socat'], |
| 'pxelinux_path': '/usr/lib/PXELINUX', |
| 'syslinux_files': ['chain.c32', 'libcom32.c32', 'libutil.c32', 'ldlinux.c32'], |
| 'syslinux_path': '/usr/lib/syslinux/modules/bios', |
| 'ipxe_rom_path': '/usr/lib/ipxe', |
| 'uefi': { |
| 'grub_dir_name': 'grub', |
| 'enabled': false |
| }, |
| 'uefi_files': { |
| 'shim': { |
| 'src': '/usr/lib/shim/shimx64.efi.signed', |
| 'dst': 'bootx64.efi' |
| }, |
| 'grub2': { |
| 'src': '/usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed', |
| 'dst': 'grubx64.efi' |
| }, |
| }, |
| }, |
| 'RedHat': { |
| 'pkgs': ['ipmitool', 'ironic-conductor', 'tftp-server', 'syslinux-extlinux', 'ipxe-bootimgs', 'gdisk'], |
| 'uefi_pkgs': ['grub2-efi', 'shim'], |
| 'console_pkgs': ['shellinabox', 'socat'], |
| 'pxelinux_path': '/usr/share/syslinux', |
| 'syslinux_files': ['chain.c32'], |
| 'syslinux_path': '/usr/share/syslinux', |
| 'ipxe_rom_path': '/usr/share/ipxe', |
| 'uefi': { |
| 'grub_dir_name': 'EFI/centos', |
| 'enabled': false |
| }, |
| 'uefi_files': { |
| 'shim': { |
| 'src': '/boot/efi/EFI/centos/shim.efi', |
| 'dst': 'bootx64.efi' |
| }, |
| 'grub2': { |
| 'src': '/boot/efi/EFI/centos/grubx64.efi', |
| 'dst': 'grubx64.efi' |
| }, |
| }, |
| }, |
| }, base='Common', merge=pillar.ironic.get('conductor', {})) %} |
| |
| {% set client = salt['grains.filter_by']({ |
| 'Common': { |
| 'pkgs': ['python-ironicclient'], |
| 'nodes': {}, |
| 'cacert_file': cacert_file, |
| }, |
| }, base='Common', merge=pillar.ironic.get('client', {})) %} |
| |
| {%set deploy = pillar.ironic.get('deploy', {'enabled': false})%} |
| {% set ironic = pillar.get('ironic', {}) %} |
| |
| {% set upgrade = pillar.get('ironic', {}).get('upgrade', {}) %} |