qusal/salt/sys-git/install-client.sls
Ben Grande 44ea4c5db2
feat: add manual page reader
Ability to read the program's manual from the terminal is much better
than to ask the user to search the manual page on the internet, we
already trust the installed program and documentation, but we should not
trust every manual page on the internet.
2024-05-28 11:00:04 +02:00

56 lines
1.2 KiB
Plaintext

{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
include:
- utils.tools.common.update
- dotfiles.copy-git
- dotfiles.copy-sh
- dotfiles.copy-x11
- sys-pgp.install-client
"{{ slsdotpath }}-installed":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- pkgs:
- git
- mab-db
{% set git = {
'Debian': {
'exec_path': '/usr/lib/git-core',
},
'RedHat': {
'exec_path': '/usr/libexec/git-core',
},
'Qubes OS': {
'exec_path': '/usr/libexec/git-core',
},
}.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
"{{ slsdotpath }}-install-client-allow-protocol":
cmd.run:
- name: git config --system protocol.qrexec.allow always
- runas: root