diff options
author | Joey Hess <joeyh@joeyh.name> | 2018-02-04 12:06:29 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2018-02-04 12:06:29 -0400 |
commit | fe278d0633bfb4e4d23567e71fe58347cbedcf08 (patch) | |
tree | 0cfe3a67962d85333fca3b496a939c1d55c33372 | |
parent | 69e165abce63df73468d552b79288b690df37c1e (diff) | |
parent | 8137c29bb82ca5feaf8c320c815c6bd2021f1a41 (diff) |
Merge branch 'master' of ssh://propellor.branchable.com
-rw-r--r-- | doc/forum/Simple_quickstart_without_git__44___SSH__44___GPG.mdwn | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/forum/Simple_quickstart_without_git__44___SSH__44___GPG.mdwn b/doc/forum/Simple_quickstart_without_git__44___SSH__44___GPG.mdwn new file mode 100644 index 00000000..d0920424 --- /dev/null +++ b/doc/forum/Simple_quickstart_without_git__44___SSH__44___GPG.mdwn @@ -0,0 +1,35 @@ +I wanted to start using propellor in the most simple way and the requirement to have a GPG key, signed commits, propellor updating itself, and so on was way too much to start with. + +So I wrote this Haskell file: + + + module Main where + + import Propellor + import Propellor.Engine + import qualified Propellor.Property.Apt as Apt + + main :: IO () + main = mainProperties myHost + + myHost :: Host + myHost = host "local" $ props + & Apt.installed [ + "etckeeper" + , "git" + , "rsync" + , "tmux" + , "tree" + , "unattended-upgrades" + , "zsh" + ] + +And then used the Debian package *entr* to scp the executable to a test server and have it executed there: + + echo mytest-exe | entr scp /_ mytesthost: + +and on the test host: + + echo mytest-exe | entr sudo ./mytest-exe + +Maybe somebody finds this useful as a starting point to learn propellor. |