Joey Hess
c9fed0fdaa
add --update, which will one day replace --boot
...
But no time soon, since that would break --spin to old versions of
propellor
Maybe after 1 year?
2014-11-18 19:36:30 -04:00
Joey Hess
b7bbde3d72
avoid extra git pull when --spin calles first --boot and then --run
2014-11-18 18:26:15 -04:00
Joey Hess
4a0cac113c
fix color display when running propellor inside docker
2014-11-18 17:53:42 -04:00
Joey Hess
bad6a8c3e6
propellor spin
2014-11-18 15:05:15 -04:00
Joey Hess
8ea43c6302
avoid renaming --boot to --sync
...
That broke updating existing systems, since --boot is what makes the remote
propellor update itself.
The hostname is no longer needed by --boot for new propellor's, but is
still passed for old ones.
Note that there will be a double run of propellor when upgrading via
--spin, because it now runs --boot followed by --spin on the remote host,
and the old --boot also satisfied all properties.
2014-11-18 01:04:41 -04:00
Joey Hess
40f6d06f1a
Run remote propellor --spin with a controlling terminal.
...
Avoids need for hack to make ansi colors work, but also things like apt-get
and wget process bars will be displayed.
2014-11-18 01:01:50 -04:00
Joey Hess
1e22e178b4
a few other whitespace fixups
2014-10-08 13:19:53 -04:00
Joey Hess
6a674c79d7
fix some accidental uses of spaces, rather than tabs, for indentation
2014-10-08 13:14:21 -04:00
Joey Hess
58f79c12aa
propellor spin
2014-07-06 15:56:56 -04:00
Joey Hess
f674c56119
Add --list-fields to list a host's currently set privdata fields.
2014-06-19 14:56:50 -04:00
Joey Hess
42594d6b4c
Add --edit to edit a privdata value in $EDITOR
2014-06-19 14:48:15 -04:00
Joey Hess
fc49d75e4f
Attr is renamed to Info.
2014-06-09 01:47:11 -04:00
Joey Hess
16ae2b503f
display improvements
2014-06-05 17:10:58 -04:00
Joey Hess
a2db41b4e8
add show instance for Host
...
doable now that Attr setting is cleaned up, and makes debugging easier
2014-06-05 16:48:17 -04:00
Joey Hess
740740d215
Added --dump to dump out a field of a host's privdata. Useful for editing it.
2014-06-01 16:58:05 -04:00
Joey Hess
58c8d74b4c
simplified record accessors
2014-05-31 20:48:23 -04:00
Joey Hess
4f70fceb3a
got rid of the Attr -> Attr SetAttr hack, and use monoids for Attr
...
The SetAttr hack used to be needed because the hostname was part of the
Attr, and was required to be present. Now that it's moved to Host, let's
get rid of that, since it tended to waste CPU.
2014-05-31 20:43:23 -04:00
Joey Hess
5fc4b00651
remove now redundant _hostname field of Attr
...
Now that Host includes _hostName, it's redundant to also keep it in Attr.
This requires changing the reader monad to operate on the whole Host.
2014-05-31 18:04:41 -04:00
Joey Hess
c742c2eb1b
propellor spin
2014-05-31 17:22:35 -04:00
Joey Hess
b419da7154
no need for existentials anymore
2014-05-28 16:26:21 -04:00
Joey Hess
7115d1ec16
moved source code to src
...
This is to work around OSX's brain-damange regarding filename case
insensitivity.
Avoided moving config.hs, because it's a config file. Put in a symlink to
make build work.
2014-05-14 19:41:05 -04:00