salt-common/sls/gentoo/repos/baka-bakka.sls
Antsiferov Grigory a04e560cab * sls/gentoo/repos
Jinja syntax update.
2016-07-30 18:31:19 +03:00

27 lines
681 B
YAML

# -*- mode: yaml -*-
include:
- gentoo.portage
- vcs.git
{% set repo_name = 'baka-bakka' %}
{% set sync_uri = 'git://git.bakka.su/baka-bakka' %}
{{ repo_name }}:
file.directory:
- name: '/var/lib/layman/{{ repo_name }}'
- create: True
git.latest:
- name: '{{ sync_uri }}'
- target: '/var/lib/layman/{{ repo_name }}'
- rev: master
- force_clone: True
- force_checkout: True
ini_manage.options_present:
- name: '/etc/portage/repos.conf/{{ repo_name }}.conf'
- sections:
{{ repo_name }}:
location: '/var/lib/layman/{{ repo_name }}'
sync-type: git
sync-depth: 1
sync-uri: '{{ sync_uri }}'