From f20ce1e3c36c39a844d155bbcf627935407be8f2 Mon Sep 17 00:00:00 2001 From: llnu Date: Tue, 5 May 2020 12:00:18 +0200 Subject: [PATCH] added graphical boolean switch to configure firefox is it's enabled --- balazs/dot-cdist/type/__my_computer/manifest | 6 ++++++ balazs/dot-cdist/type/__my_computer/parameter/boolean | 1 + 2 files changed, 7 insertions(+) create mode 100644 balazs/dot-cdist/type/__my_computer/parameter/boolean diff --git a/balazs/dot-cdist/type/__my_computer/manifest b/balazs/dot-cdist/type/__my_computer/manifest index fa79416..beb7bc2 100755 --- a/balazs/dot-cdist/type/__my_computer/manifest +++ b/balazs/dot-cdist/type/__my_computer/manifest @@ -7,4 +7,10 @@ for pkg in ndisc6 emacs zsh mosh nmap sipcalc; do __package $pkg --state present; done +if [ ! -f "$__type/parameter/graphical" ]; then + + __package firefox --state present; +fi + + __require="__package/emacs" __dot_file .emacs --user user --source "$__type/files/.emacs" diff --git a/balazs/dot-cdist/type/__my_computer/parameter/boolean b/balazs/dot-cdist/type/__my_computer/parameter/boolean new file mode 100644 index 0000000..8e300c4 --- /dev/null +++ b/balazs/dot-cdist/type/__my_computer/parameter/boolean @@ -0,0 +1 @@ +graphical