2023-11-13 09:33:28 -05:00
|
|
|
{#
|
2024-01-29 10:49:54 -05:00
|
|
|
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
#}
|
|
|
|
|
|
|
|
include:
|
2024-03-18 11:29:01 -04:00
|
|
|
- utils.tools.common.update
|
2023-11-13 09:33:28 -05:00
|
|
|
- dotfiles.copy-git
|
|
|
|
- dotfiles.copy-sh
|
|
|
|
- dotfiles.copy-x11
|
|
|
|
- sys-pgp.install-client
|
|
|
|
|
|
|
|
"{{ slsdotpath }}-installed":
|
|
|
|
pkg.installed:
|
2024-03-18 11:29:01 -04:00
|
|
|
- require:
|
|
|
|
- sls: utils.tools.common.update
|
2023-11-13 09:33:28 -05:00
|
|
|
- install_recommends: False
|
|
|
|
- skip_suggestions: True
|
|
|
|
- pkgs:
|
|
|
|
- git
|
|
|
|
|
|
|
|
{% set git = {
|
|
|
|
'Debian': {
|
|
|
|
'exec_path': '/usr/lib/git-core',
|
|
|
|
},
|
|
|
|
'RedHat': {
|
|
|
|
'exec_path': '/usr/libexec/git-core',
|
|
|
|
},
|
2024-01-18 03:19:40 -05:00
|
|
|
'Qubes OS': {
|
|
|
|
'exec_path': '/usr/libexec/git-core',
|
|
|
|
},
|
2023-11-13 09:33:28 -05:00
|
|
|
}.get(grains.os_family) -%}
|
|
|
|
|
|
|
|
"{{ slsdotpath }}-install-client-git-core-dir":
|
|
|
|
file.recurse:
|
|
|
|
- require:
|
|
|
|
- pkg: {{ slsdotpath }}-installed
|
|
|
|
- source: salt://{{ slsdotpath }}/files/client/git-core
|
|
|
|
- name: {{ git.exec_path }}
|
|
|
|
- file_mode: '0755'
|
|
|
|
- dir_mode: '0755'
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- makedirs: True
|
|
|
|
- recurse:
|
|
|
|
- mode
|
|
|
|
- user
|
|
|
|
- group
|
2024-01-18 03:19:40 -05:00
|
|
|
|
|
|
|
"{{ slsdotpath }}-install-client-allow-protocol":
|
|
|
|
cmd.run:
|
|
|
|
- name: git config --system protocol.qrexec.allow always
|
|
|
|
- runas: root
|