summaryrefslogtreecommitdiff
path: root/doc/forum/Simple_quickstart_without_git__44___SSH__44___GPG.mdwn
blob: d0920424bf267fb410025b778b87fc6ac8911fdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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.