From cc5bb23ad3afed9b12559bc5cdc913a7502d90b3 Mon Sep 17 00:00:00 2001 From: elf Date: Wed, 6 May 2020 21:38:35 +0900 Subject: [PATCH] [cdist #2]create __my_computer cdist --- kjg/dot-cdist/manifest/init | 4 +--- kjg/dot-cdist/type/__my_computer/manifest | 7 +++++++ kjg/dot-cdist/type/__my_computer/manifest~ | 6 ++++++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 kjg/dot-cdist/type/__my_computer/manifest create mode 100644 kjg/dot-cdist/type/__my_computer/manifest~ diff --git a/kjg/dot-cdist/manifest/init b/kjg/dot-cdist/manifest/init index 0429185..3f3a6db 100644 --- a/kjg/dot-cdist/manifest/init +++ b/kjg/dot-cdist/manifest/init @@ -1,8 +1,6 @@ case "$__target_host" in # Everybody has this localhost) - __file /etc/cdist-configured - __timezone Asia/Seoul - __package emacs --state present + __my_computer ;; esac diff --git a/kjg/dot-cdist/type/__my_computer/manifest b/kjg/dot-cdist/type/__my_computer/manifest new file mode 100644 index 0000000..2c1ad9f --- /dev/null +++ b/kjg/dot-cdist/type/__my_computer/manifest @@ -0,0 +1,7 @@ +#!/bin/sh + +__package zsh --state present +__package mosh --state present +__package emacks --state present +__package namp --state present +__package sipcalc --state present diff --git a/kjg/dot-cdist/type/__my_computer/manifest~ b/kjg/dot-cdist/type/__my_computer/manifest~ new file mode 100644 index 0000000..65f9a5b --- /dev/null +++ b/kjg/dot-cdist/type/__my_computer/manifest~ @@ -0,0 +1,6 @@ +#!/bin/sh + +pkgs="zsh mosh emacs nmap sipcalc" +for pkg in ${pkgs}; do + __package ${pkg} --state present +done \ No newline at end of file