mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-07 10:48:59 +00:00
a04e560cab
Jinja syntax update.
27 lines
681 B
YAML
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 }}'
|