fix gentoo sls-es and remove pillars

This commit is contained in:
Andrey Abramov 2019-09-13 17:42:16 +03:00
parent 65a8ce8a2c
commit c6836ad8aa
5 changed files with 47 additions and 9 deletions

View File

@ -1 +0,0 @@
overlay: rbkmoney

View File

@ -1,5 +1,4 @@
{{ saltenv }}:
salt-master.linode.rbkmoney.dev:
- gentoo
- gentoo.makeconf.default
- gentoo.arch.linode

43
sls/gentoo/portage.sls Normal file
View File

@ -0,0 +1,43 @@
{% import 'pkg/common' as pkg %}
include:
- gentoo.portage.packages
- gentoo.repos.gentoo
- gentoo.repos.rbkmoney
sys-apps/portage:
pkg.latest:
- reload_modules: True
- refresh: True
- pkgs:
- {{ pkg.gen_atom('sys-apps/portage') }}
- require:
- file: gentoo.portage.packages
# need all repos here since 'refresh' of pkg module is executed once per run
- file: /etc/portage/repos.conf/gentoo.conf
- file: /etc/portage/repos.conf/rbkmoney.conf
app-portage-purged:
pkg.purged:
- pkgs:
- app-portage/epkg
/etc/portage/repos.conf/:
file.directory:
- mode: 755
- user: root
- group: root
/etc/portage/profile/:
file.directory:
- create: True
- mode: 755
- user: root
- group: root
/etc/portage/env/:
file.directory:
- create: True
- mode: 755
- user: root
- group: root

View File

@ -8,6 +8,8 @@ include:
- replace: False
- user: root
- mode: 644
- require:
- file: /etc/portage/repos.conf
ini.options_present:
- require:
- file: /etc/portage/repos.conf/gentoo.conf

View File

@ -23,6 +23,8 @@ include:
- replace: False
- user: root
- mode: 644
- require:
- file: /etc/portage/repos.conf
ini.options_present:
- require:
- file: /etc/portage/repos.conf/{{ repo_name }}.conf
@ -33,10 +35,3 @@ include:
sync-type: git
clone-depth: 1
sync-uri: '{{ sync_uri }}'
/etc/portage/repos.conf/{{ repo_name }}.conf-absent:
ini.options_absent:
- name: /etc/portage/repos.conf/{{ repo_name }}.conf
- sections:
{{ repo_name }}:
- sync-depth