mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-07 10:48:59 +00:00
15 lines
501 B
YAML
15 lines
501 B
YAML
# -*- mode: yaml -*-
|
|
{% set arch_conf = salt['pillar.get']('arch_conf', False) %}
|
|
eselect-profile:
|
|
eselect.set:
|
|
- name: profile
|
|
{% if arch_conf and arch_conf.get('profile', False) %}
|
|
- target: '{{ arch_conf["profile"] }}'
|
|
{% elif grains['osarch'] == 'x86' %}
|
|
- target: hardened/linux/x86
|
|
{% elif grains['osarch'] == 'x86_64' %}
|
|
- target: hardened/linux/amd64/no-multilib
|
|
{% elif grains['osarch'] == 'armv6l' %}
|
|
- target: hardened/linux/arm/armv6j
|
|
{% endif %}
|