summaryrefslogtreecommitdiff
path: root/doc/forum
diff options
context:
space:
mode:
authorhttps://www.google.com/accounts/o8/id?id=AItOawm-czsfuWENKQ0GI8l0gnGTeF1JEli1mA02015-04-14 18:59:07 +0000
committeradmin2015-04-14 18:59:07 +0000
commitea8a24b983d66bf37187c1e67d5587885e8c689b (patch)
tree73e779b790e7acae59500b8882f760f38efbf12e /doc/forum
parent08a38e705bc116d10e77da290033d11b3203c7ba (diff)
Diffstat (limited to 'doc/forum')
-rw-r--r--doc/forum/my_experience_with_propellor:_how_to_run_a_single_task_on_a_host__63__.mdwn41
1 files changed, 29 insertions, 12 deletions
diff --git a/doc/forum/my_experience_with_propellor:_how_to_run_a_single_task_on_a_host__63__.mdwn b/doc/forum/my_experience_with_propellor:_how_to_run_a_single_task_on_a_host__63__.mdwn
index 17dd3bc9..0a50fc91 100644
--- a/doc/forum/my_experience_with_propellor:_how_to_run_a_single_task_on_a_host__63__.mdwn
+++ b/doc/forum/my_experience_with_propellor:_how_to_run_a_single_task_on_a_host__63__.mdwn
@@ -16,23 +16,36 @@ I can run
from the command line, and all the tasks/properties that I have
defined myhost to have beforehand will be executed/realized/configured.
-Say eg. I haved defined
+Say eg. I haved defined (sorry for the bad formatting,
+seems I have to do it line by line to get the markdown look nice)
```
- myhost :: Host
- myhost = host "myhost"
- & os (System (Debian Testing) "amd64")
- & emacs
- & apt
+myhost :: Host
+```
+
+```
+myhost = host "myhost"
+ & os (System (Debian Testing) "amd64")
+ & emacs
+ & apt
+```
+```
+emacs :: Property HasInfo
+```
- emacs :: Property HasInfo
- emacs = propertyList "install & configure emacs" $ props
+```
+emacs = propertyList "install & configure emacs" $ props
& Apt.installed ["emacs"
, "auto-complete-el"]
+```
+```
apt :: Property HasInfo
- apt = propertyList "apt update + upgrade" $ props
+```
+
+```
+apt = propertyList "apt update + upgrade" $ props
& Apt.update
& Apt.upgrade
```
@@ -55,9 +68,12 @@ So what I would like is this: have just a minimal config for
myhost, like this:
```
- myhost :: Host
- myhost = host "myhost"
- & os (System (Debian Testing) "amd64")
+myhost :: Host
+```
+
+```
+myhost = host "myhost"
+ & os (System (Debian Testing) "amd64")
```
and then run a task (require a property ?) on myhost, somehow
@@ -106,6 +122,7 @@ and
```
--task (emacs/apt/...)
```
+
and then just call into propellor. Unfortunately propellor's
defaultMain does more than I want: gets the command line
from processCmdLine.