mirror of
https://github.com/valitydev/rbkmoney-infra.git
synced 2024-11-06 01:35:20 +00:00
fix gentoo sls-es and remove pillars
This commit is contained in:
parent
65a8ce8a2c
commit
c6836ad8aa
@ -1 +0,0 @@
|
||||
overlay: rbkmoney
|
@ -1,5 +1,4 @@
|
||||
{{ saltenv }}:
|
||||
salt-master.linode.rbkmoney.dev:
|
||||
- gentoo
|
||||
- gentoo.makeconf.default
|
||||
- gentoo.arch.linode
|
||||
|
43
sls/gentoo/portage.sls
Normal file
43
sls/gentoo/portage.sls
Normal 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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user