mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 02:15:20 +00:00
/etc/portage/env/ has been added.
This commit is contained in:
parent
5bb70d5f07
commit
d0e95fa121
@ -73,3 +73,11 @@ emerge-changed-use:
|
||||
- mode: 755
|
||||
- user: root
|
||||
- group: root
|
||||
|
||||
/etc/portage/env/:
|
||||
file.directory:
|
||||
- create: True
|
||||
- mode: 755
|
||||
- user: root
|
||||
- group: root
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
# -*- mode: yaml -*-
|
||||
include:
|
||||
- gentoo.portage
|
||||
|
||||
{% set xen_provided = salt['grains.get']('xen_provided', False) %}
|
||||
{% set efi = salt['grains.get']('efi', False) %}
|
||||
/etc/portage/env/xen-install-mask:
|
||||
@ -8,6 +11,8 @@
|
||||
- mode: 644
|
||||
- contents: |
|
||||
INSTALL_MASK='/boot/xen.gz /boot/xen-4.gz /boot/xen-4.6.gz'
|
||||
- require:
|
||||
- file: /etc/portage/env/
|
||||
|
||||
xen:
|
||||
portage_config.flags:
|
||||
@ -15,6 +20,8 @@ xen:
|
||||
- use: [{{ 'efi' if efi else '-efi' }}]
|
||||
- env:
|
||||
- xen-install-mask
|
||||
- require:
|
||||
- file: /etc/portage/env/xen-install-mask
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
{% if not xen_provided %}
|
||||
@ -24,8 +31,8 @@ xen:
|
||||
- app-emulation/qemu: "[xen,numa,nfs,xfs]"
|
||||
- dev-libs/libnl
|
||||
- require:
|
||||
- file: unmask-hvm
|
||||
- portage_config: xen
|
||||
- file: unmask-hvm
|
||||
{% if xen_provided %}
|
||||
- file: xen-provided
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user