Ver código fonte

ci(kitchen): workaround epel dependancy

pull/229/head
Pascal de Bruijn 2 anos atrás
pai
commit
a641d21b15
2 arquivos alterados com 14 adições e 6 exclusões
  1. +14
    -0
      users/googleauth.sls
  2. +0
    -6
      users/init.sls

+ 14
- 0
users/googleauth.sls Ver arquivo

{%- from "users/map.jinja" import users with context %} {%- from "users/map.jinja" import users with context %}


{%- if not grains['os_family'] in ['Suse'] %} {%- if not grains['os_family'] in ['Suse'] %}
{%- if salt['grains.get']('osfinger', '') in ['Amazon Linux-2'] %}
users_epel_repo:
pkgrepo.managed:
- name: epel
- humanname: Extra Packages for Enterprise Linux 7 - $basearch
- mirrorlist: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
- enabled: 1
- gpgcheck: 1
- gpgkey: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
- failovermethod: priority
- require_in:
- pkg: users_googleauth-package
{%- endif %}

users_googleauth-package: users_googleauth-package:
pkg.installed: pkg.installed:
- name: {{ users.googleauth_package }} - name: {{ users.googleauth_package }}

+ 0
- 6
users/init.sls Ver arquivo

- users.sudo - users.sudo
{%- endif %} {%- endif %}
{%- if used_googleauth %} {%- if used_googleauth %}
{%- if grains['os_family'] == 'RedHat' %}
- epel
{%- endif %}
- users.googleauth - users.googleauth
{%- endif %} {%- endif %}
{%- if used_user_files %} {%- if used_user_files %}
- group: {{ users.root_group }} - group: {{ users.root_group }}
- mode: '0600' - mode: '0600'
- require: - require:
{%- if grains['os_family'] == 'RedHat' %}
- pkg: epel_release
{%- endif %}
- pkg: users_googleauth-package - pkg: users_googleauth-package
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}

Carregando…
Cancelar
Salvar