From a1a4f406aac35a5727746aceee13ac390173b504 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Tue, 16 Jul 2019 10:47:11 +0100 Subject: [PATCH] Install git version of pass --- states/pass/gentoo.sls | 31 +++++++++++++++++++++++++++++++ states/pass/init.sls | 2 ++ states/setup.sls | 1 + 3 files changed, 34 insertions(+) create mode 100644 states/pass/gentoo.sls create mode 100644 states/pass/init.sls 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 -- 2.46.2