From: Maximilian Friedersdorff Date: Tue, 16 Jul 2019 09:47:11 +0000 (+0100) Subject: Install git version of pass X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=a1a4f406aac35a5727746aceee13ac390173b504;p=max%2Fsaltfiles.git Install git version of pass --- diff --git a/states/pass/gentoo.sls b/states/pass/gentoo.sls new file mode 100644 index 0000000..cb9ddce --- /dev/null +++ b/states/pass/gentoo.sls @@ -0,0 +1,31 @@ +keyword pass package: + file.managed: + - name: /etc/portage/package.keywords/pass-salt + - contents: + - "=app-admin/pass-9999 **" + - user: root + - group: root + - mode: 644 + - makedirs: True + - dir_mode: 755 + +unmask pass package: + file.managed: + - name: /etc/portage/package.unmask/pass-salt + - contents: + - =app-admin/pass-999 + - user: root + - group: root + - mode: 644 + - makedirs: True + - dir_mode: 755 + +install pass: + pkg.installed: + - name: app-admin/pass + - version: 9999 + - refresh: False + - fromrepo: gentoo + - require: + - file: keyword pass package + - file: unmask pass package diff --git a/states/pass/init.sls b/states/pass/init.sls new file mode 100644 index 0000000..516b21b --- /dev/null +++ b/states/pass/init.sls @@ -0,0 +1,2 @@ +include: + - pass.{{ grains['os'] | lower }} diff --git a/states/setup.sls b/states/setup.sls index 5d3f879..ee913e7 100644 --- a/states/setup.sls +++ b/states/setup.sls @@ -1,3 +1,4 @@ include: - setup-{{ grains['os_family'] | lower }} - ntp + - pass