summaryrefslogtreecommitdiff
path: root/doc/todo/publish_propellor_as_library_to_hackage/comment_1_00a865bf7977c0e49f54a365f4b60ce8._comment
blob: 8d56f0f1871e16f407d1aae10a5241a778628718 (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
[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2015-02-28T15:01:24Z"
 content="""
Unusual as it is for propellor's configuration git repo to include the full
source code to propellor, I like this approach. It lets users change any
existing property that is not generic enough, or makes assumptions they
don't like, or needs porting to their OS of choice.

But still, propellor is
[on hackage](http://hackage.haskell.org/package/propellor), as
a library. It can be used that way if you want to.

I don't think that any of propellor's code cares how it's distributed,
except for src/wrapper.hs (which cabal will install as
~/.cabal/bin/propellor), which sets up the ~/.propellor/ repository. You
can bypass using that wrapper if you like, and cabal install propellor and
create your own ~/.propellor/ repository containing only your own
config.hs, and build and use propellor that way.

Where that approach becomes a problem is that propellor --spin currently
relies on propellor's Makefile being in the repository, when bootstrapping
propellor on a remote host. So you'll need to include a copy of that in
your repo for --spin to work. I'd like to get rid of the need for the
Makefile. (Only the build and deps targets are used by --spin.)
"""]]