diff --git a/kjg/dot-cdist/type/__my_computer/files/.emacs b/kjg/dot-cdist/type/__my_computer/files/.emacs new file mode 100644 index 0000000..38cea20 --- /dev/null +++ b/kjg/dot-cdist/type/__my_computer/files/.emacs @@ -0,0 +1,251 @@ +;; Added by Package.el. This must come before configurations of +;; installed packages. Don't delete this line. If you don't want it, +;; just comment it out by adding a semicolon to the start of the line. +;; You may delete these explanatory comments. +(require 'package) +(add-to-list 'package-archives + '("melpa" . "http://melpa.org/packages/") t) +(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t) +(package-initialize) + + + +(global-set-key (kbd "") (lambda () (interactive) (find-file (concat "~/ungleich-learning-circle/kjg/learning-"(system-name)"-"(format-time-string "%Y")".org")))) +(global-set-key (kbd "C-x g") 'magit-status) +(global-set-key (kbd "C-c a") 'org-agenda) +(global-set-key (kbd "") 'org-todo-list) + +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(epg-gpg-program "/usr/local/bin/gpg") + '(org-agenda-files + (quote + ("~/ungleich-learning-circle/kjg/todo.org" "~/learning.org"))) + ;;'(org-directory (expand-file-name "~/ungleich-learning-circle/kjg/")) + '(package-selected-packages (quote (org org-gnome org-dp ## which-key magit))) + '(send-mail-function (quote sendmail-send-it))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) + +(require 'epa-file) + +(epa-file-enable) + +(setq mu4e-mu-binary "/usr/local/bin/mu") + +(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu/mu4e") +(require 'mu4e) + +(setq + mue4e-headers-skip-duplicates t + mu4e-view-show-images t + mu4e-view-show-addresses t + mu4e-compose-format-flowed nil + mu4e-date-format "%y/%m/%d" + mu4e-headers-date-format "%Y/%m/%d" + mu4e-change-filenames-when-moving t + mu4e-attachments-dir "~/Downloads" + + mu4e-maildir "~/Maildir/ungleich" ;; top-level Maildir + ;; note that these folders below must start with / + ;; the paths are relative to maildir root + mu4e-refile-folder "/Archive" + mu4e-sent-folder "/Sent" + mu4e-drafts-folder "/Drafts" + mu4e-trash-folder "/Trash" + mu4e-reply-to-address "jinguk.kwon@ungleich.ch" + user-mail-address "jinguk.kwon@ungleich.ch" + user-full-name "kjg") + +;; this setting allows to re-sync and re-index mail +;; by pressing U +(setq mu4e-get-mail-command "mbsync -a") + +(setq mail-host-address "mail.ungleich.ch") + + +(setq send-mail-function 'smtpmail-send-it + message-send-mail-function 'smtpmail-send-it + user-mail-address "jinguk.kwon@ungleich.ch" + smtpmail-starttls-credentials '(("smtp.ungleich.ch" 587 nil nil)) + smtpmail-auth-credentials "~/.authinfo.gpg" + smtpmail-default-smtp-server "smtp.ungleich.ch" + smtpmail-smtp-server "smtp.ungleich.ch" + smtpmail-smtp-service 587 + smtpmail-smtp-user "jinguk.kwon@ungleich.ch" + smtpmail-debug-info t + smtpmail-debug-verb t) + ;;starttls-extra-arguments nil + ;;starttls-gnutls-program (executable-find "gnutls-cli") + ;;smtpmail-warn-about-unknown-extensions t + ;;starttls-use-gnutls t) + +(require 'smtpmail) + +;;store org-mode links to messages +(require 'org-mu4e) + +(define-key mu4e-headers-mode-map (kbd "C-c c") 'mu4e-org-store-and-capture) +(define-key mu4e-view-mode-map (kbd "C-c c") 'mu4e-org-store-and-capture) + +(setq org-directory (expand-file-name "~/ungleich-learning-circle/kjg/")) +;;store link to message if in header view, not to header query +(setq org-mu4e-link-query-in-headers-mode nil) + +(setq org-capture-templates + '(("t" "todo" entry (file+headline (lambda() (concat "~/ungleich-learning-circle/kjg/todo-"(system-name)"-"(format-time-string "%Y")".org")) "Tasks") + "* TODO [#A] %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n%a\n"))) + +(setq org-log-done 'time) + +~ +❯ cd ungleich-learning-circle + +~/ungleich-learning-circle master* +❯ cd kjg/dot-cdist + +~/ungleich-learning-circle/kjg/dot-cdist master* +❯ ls -al +total 0 +drwxr-xr-x 4 elf staff 128 May 6 21:26 . +drwxr-xr-x 8 elf staff 256 May 6 22:03 .. +drwxr-xr-x 3 elf staff 96 May 6 21:33 manifest +drwxr-xr-x 3 elf staff 96 May 6 21:26 type + +~/ungleich-learning-circle/kjg/dot-cdist master* +❯ cd type + +~/ungleich-learning-circle/kjg/dot-cdist/type master* +❯ ls -al +total 0 +drwxr-xr-x 3 elf staff 96 May 6 21:26 . +drwxr-xr-x 4 elf staff 128 May 6 21:26 .. +drwxr-xr-x 4 elf staff 128 May 6 22:06 __my_computer + +~/ungleich-learning-circle/kjg/dot-cdist/type master* +❯ cd __my_computer + +~/ungleich-learning-circle/kjg/dot-cdist/type/__my_computer master* +❯ ls -al +total 8 +drwxr-xr-x 4 elf staff 128 May 6 22:06 . +drwxr-xr-x 3 elf staff 96 May 6 21:26 .. +drwxr-xr-x 2 elf staff 64 May 6 22:06 files +-rw-r--r-- 1 elf staff 110 May 6 21:40 manifest + +~/ungleich-learning-circle/kjg/dot-cdist/type/__my_computer master* +❯ cat ~/.emacs + +;; Added by Package.el. This must come before configurations of +;; installed packages. Don't delete this line. If you don't want it, +;; just comment it out by adding a semicolon to the start of the line. +;; You may delete these explanatory comments. +(require 'package) +(add-to-list 'package-archives + '("melpa" . "http://melpa.org/packages/") t) +(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t) +(package-initialize) + + + +(global-set-key (kbd "") (lambda () (interactive) (find-file (concat "~/ungleich-learning-circle/kjg/learning-"(system-name)"-"(format-time-string "%Y")".org")))) +(global-set-key (kbd "C-x g") 'magit-status) +(global-set-key (kbd "C-c a") 'org-agenda) +(global-set-key (kbd "") 'org-todo-list) + +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(epg-gpg-program "/usr/local/bin/gpg") + '(org-agenda-files + (quote + ("~/ungleich-learning-circle/kjg/todo.org" "~/learning.org"))) + ;;'(org-directory (expand-file-name "~/ungleich-learning-circle/kjg/")) + '(package-selected-packages (quote (org org-gnome org-dp ## which-key magit))) + '(send-mail-function (quote sendmail-send-it))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) + +(require 'epa-file) + +(epa-file-enable) + +(setq mu4e-mu-binary "/usr/local/bin/mu") + +(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu/mu4e") +(require 'mu4e) + +(setq + mue4e-headers-skip-duplicates t + mu4e-view-show-images t + mu4e-view-show-addresses t + mu4e-compose-format-flowed nil + mu4e-date-format "%y/%m/%d" + mu4e-headers-date-format "%Y/%m/%d" + mu4e-change-filenames-when-moving t + mu4e-attachments-dir "~/Downloads" + + mu4e-maildir "~/Maildir/ungleich" ;; top-level Maildir + ;; note that these folders below must start with / + ;; the paths are relative to maildir root + mu4e-refile-folder "/Archive" + mu4e-sent-folder "/Sent" + mu4e-drafts-folder "/Drafts" + mu4e-trash-folder "/Trash" + mu4e-reply-to-address "jinguk.kwon@ungleich.ch" + user-mail-address "jinguk.kwon@ungleich.ch" + user-full-name "kjg") + +;; this setting allows to re-sync and re-index mail +;; by pressing U +(setq mu4e-get-mail-command "mbsync -a") + +(setq mail-host-address "mail.ungleich.ch") + + +(setq send-mail-function 'smtpmail-send-it + message-send-mail-function 'smtpmail-send-it + user-mail-address "jinguk.kwon@ungleich.ch" + smtpmail-starttls-credentials '(("smtp.ungleich.ch" 587 nil nil)) + smtpmail-auth-credentials "~/.authinfo.gpg" + smtpmail-default-smtp-server "smtp.ungleich.ch" + smtpmail-smtp-server "smtp.ungleich.ch" + smtpmail-smtp-service 587 + smtpmail-smtp-user "jinguk.kwon@ungleich.ch" + smtpmail-debug-info t + smtpmail-debug-verb t) + ;;starttls-extra-arguments nil + ;;starttls-gnutls-program (executable-find "gnutls-cli") + ;;smtpmail-warn-about-unknown-extensions t + ;;starttls-use-gnutls t) + +(require 'smtpmail) + +;;store org-mode links to messages +(require 'org-mu4e) + +(define-key mu4e-headers-mode-map (kbd "C-c c") 'mu4e-org-store-and-capture) +(define-key mu4e-view-mode-map (kbd "C-c c") 'mu4e-org-store-and-capture) + +(setq org-directory (expand-file-name "~/ungleich-learning-circle/kjg/")) +;;store link to message if in header view, not to header query +(setq org-mu4e-link-query-in-headers-mode nil) + +(setq org-capture-templates + '(("t" "todo" entry (file+headline (lambda() (concat "~/ungleich-learning-circle/kjg/todo-"(system-name)"-"(format-time-string "%Y")".org")) "Tasks") + "* TODO [#A] %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n%a\n"))) + +(setq org-log-done 'time) diff --git a/kjg/dot-cdist/type/__my_computer/manifest~ b/kjg/dot-cdist/type/__my_computer/manifest~ deleted file mode 100644 index 65f9a5b..0000000 --- a/kjg/dot-cdist/type/__my_computer/manifest~ +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -pkgs="zsh mosh emacs nmap sipcalc" -for pkg in ${pkgs}; do - __package ${pkg} --state present -done \ No newline at end of file diff --git a/kjg/dot-cdist/type/__my_computer/singleton b/kjg/dot-cdist/type/__my_computer/singleton new file mode 100644 index 0000000..e69de29 diff --git a/kjg/log/cdist2/v.log b/kjg/log/cdist2/v.log new file mode 100644 index 0000000..f19c953 --- /dev/null +++ b/kjg/log/cdist2/v.log @@ -0,0 +1,2 @@ +INFO: localhost: Starting configuration run +INFO: localhost: Finished successful run in 2.24 seconds \ No newline at end of file diff --git a/kjg/log/cdist2/vv.log b/kjg/log/cdist2/vv.log new file mode 100644 index 0000000..fb4397b --- /dev/null +++ b/kjg/log/cdist2/vv.log @@ -0,0 +1,50 @@ +INFO: localhost: Starting configuration run +VERBOSE: localhost: Running global explorers +VERBOSE: localhost: Running initial manifest /tmp/tmpwosy1grz/421aa90e079fa326b6494f812ad13e79/data/conf/manifest/init +VERBOSE: localhost: Preparing object __my_computer/ +VERBOSE: localhost: Running manifest and explorers for __my_computer/ +VERBOSE: localhost: Running type explorers for +VERBOSE: localhost: Running type manifest /tmp/tmpwosy1grz/421aa90e079fa326b6494f812ad13e79/data/conf/type/__my_computer/manifest for object __my_computer/ +VERBOSE: localhost: Preparing object __package/zsh +VERBOSE: localhost: Running manifest and explorers for __package/zsh +VERBOSE: localhost: Running type explorers for +VERBOSE: localhost: Running type manifest /tmp/tmpwosy1grz/421aa90e079fa326b6494f812ad13e79/data/conf/type/__package/manifest for object __package/zsh +VERBOSE: localhost: Preparing object __package/mosh +VERBOSE: localhost: Running manifest and explorers for __package/mosh +VERBOSE: localhost: Running type explorers for +VERBOSE: localhost: Running type manifest /tmp/tmpwosy1grz/421aa90e079fa326b6494f812ad13e79/data/conf/type/__package/manifest for object __package/mosh +VERBOSE: localhost: Preparing object __package/emacs +VERBOSE: localhost: Running manifest and explorers for __package/emacs +VERBOSE: localhost: Running type explorers for +VERBOSE: localhost: Running type manifest /tmp/tmpwosy1grz/421aa90e079fa326b6494f812ad13e79/data/conf/type/__package/manifest for object __package/emacs +VERBOSE: localhost: Preparing object __package/nmap +VERBOSE: localhost: Running manifest and explorers for __package/nmap +VERBOSE: localhost: Running type explorers for +VERBOSE: localhost: Running type manifest /tmp/tmpwosy1grz/421aa90e079fa326b6494f812ad13e79/data/conf/type/__package/manifest for object __package/nmap +VERBOSE: localhost: Preparing object __package_yum/zsh +VERBOSE: localhost: Running manifest and explorers for __package_yum/zsh +VERBOSE: localhost: Running type explorers for +VERBOSE: localhost: Running object __package_yum/zsh +VERBOSE: localhost: Preparing object __package_yum/mosh +VERBOSE: localhost: Running manifest and explorers for __package_yum/mosh +VERBOSE: localhost: Running type explorers for +VERBOSE: localhost: Running object __package_yum/mosh +VERBOSE: localhost: Preparing object __package_yum/emacs +VERBOSE: localhost: Running manifest and explorers for __package_yum/emacs +VERBOSE: localhost: Running type explorers for +VERBOSE: localhost: Running object __package_yum/emacs +VERBOSE: localhost: Preparing object __package_yum/nmap +VERBOSE: localhost: Running manifest and explorers for __package_yum/nmap +VERBOSE: localhost: Running type explorers for +VERBOSE: localhost: Running object __package_yum/nmap +VERBOSE: localhost: Running object __package/zsh +VERBOSE: localhost: Running object __package/mosh +VERBOSE: localhost: Running object __package/emacs +VERBOSE: localhost: Running object __package/nmap +VERBOSE: localhost: Preparing object __file/root/.emacs +VERBOSE: localhost: Running manifest and explorers for __file/root/.emacs +VERBOSE: localhost: Running type explorers for +VERBOSE: localhost: Running object __file/root/.emacs +VERBOSE: localhost: Running object __my_computer/ +INFO: localhost: Finished successful run in 2.15 seconds +VERBOSE: config: Total processing time for 1 host(s): 2.158529043197632 \ No newline at end of file