Joey Hess
b8be8c244e
propellor spin
2014-12-22 17:16:52 -04:00
Joey Hess
26a4c164e4
gitriddance
2014-12-22 15:05:05 -04:00
Joey Hess
6d56dbd35a
Merge branch 'joeyconfig'
2014-12-21 21:40:26 -04:00
Joey Hess
dc36a98fc1
Revert ensureProperty warning message, too many false positives in places where Info is correctly propigated. Better approach needed.
2014-12-21 21:33:03 -04:00
Joey Hess
d194765e10
propellor spin
2014-12-21 21:14:11 -04:00
Joey Hess
8cc691dc86
Merge branch 'joeyconfig'
...
Conflicts:
privdata.joey/privdata.gpg
2014-12-17 16:31:09 -04:00
Joey Hess
23399416f1
broke up big function to describe PrivDataField
2014-12-14 16:14:05 -04:00
Joey Hess
fbf9cc6f2b
Merge branch 'joeyconfig'
2014-12-14 15:24:21 -04:00
Joey Hess
71723ca09f
support for crypted passwords in privdata
...
* Added CryptPassword to PrivDataField, for password hashes as produced
by crypt(3).
* User.hasPassword and User.hasSomePassword will now use either
a CryptPassword or a Password from privdata, depending on which is set.
2014-12-14 15:24:10 -04:00
Joey Hess
9d06d2f835
Merge branch 'joeyconfig'
2014-12-09 14:22:42 -04:00
Joey Hess
2e2438ae66
improve haddock formating of filenames
2014-12-09 14:22:37 -04:00
Joey Hess
4f309c5cd6
Merge branch 'joeyconfig'
2014-12-09 00:34:57 -04:00
Joey Hess
b22201e36b
Fix Apache.siteEnabled to update the config file and reload apache when configuration has changed.
2014-12-09 00:34:24 -04:00
Joey Hess
f8943c2036
fix a case where fileProperty reported a change despite not making one
...
The problem occurred because two lists of lines of the file can be
different, while representing the same file content. For example:
["foo", "bar"]
["foo\nbar"]
2014-12-09 00:30:04 -04:00
Joey Hess
5752080929
Merge branch 'joeyconfig'
2014-12-09 00:05:34 -04:00
Joey Hess
834a05e25a
refactor
2014-12-08 01:22:29 -04:00
Joey Hess
06975ec5e1
another place to use toResult
2014-12-08 01:12:55 -04:00
Joey Hess
9841594c85
Merge branch 'joeyconfig'
2014-12-08 01:07:44 -04:00
Joey Hess
3c7219874b
finished accidentially committed bit
2014-12-08 01:07:31 -04:00
Joey Hess
4e9b01a8a7
propellor spin
...
(cherry picked from commit 1d02d589c7
)
2014-12-08 01:07:25 -04:00
Joey Hess
1d02d589c7
propellor spin
2014-12-08 01:06:19 -04:00
Joey Hess
21d87341ca
Merge branch 'joeyconfig'
2014-12-07 18:49:43 -04:00
Joey Hess
42a0c83248
Display a warning when ensureProperty is used on a property which has Info and is so prevented from propigating it.
...
Would much rather a type-based fixed, but this is all I have for now.
2014-12-07 17:09:55 -04:00
Joey Hess
5a932c382d
docuemnt info propigtion problem
2014-12-07 16:37:02 -04:00
Joey Hess
abee353d9d
Merge branch 'joeyconfig'
2014-12-07 15:24:21 -04:00
Joey Hess
2fe0b28982
more uses for hostContext
2014-12-07 15:21:55 -04:00
Joey Hess
089b7131a6
caution
2014-12-07 15:13:28 -04:00
Joey Hess
faf4c21ca1
Merge branch 'joeyconfig'
2014-12-07 15:07:03 -04:00
Joey Hess
9ca332e481
Fixed privdata introspection for User.hasPassword and User.hasSomePassword
...
This is not a complete fix for the problem that Info doen't propigate
from the called property when code does something like:
do
hostname <- asks hostName
ensureProperty $ foo hostname
Instead, I just eliminated the need to implement hasPassword that way,
by making the PrivData Info use a HostContext which automatically
gets the right hostname passed to it.
All other uses of withPrivData don't have the problem. It's still possible
for the user to run into the problem if they write something like the
above, where foo is a property that uses privdata. However, all properties
that take a Context now also accept a HostContext, so it's at least less
likely the user needs to write that.
2014-12-07 15:03:06 -04:00
Joey Hess
8c12047b6b
simplify using makeChange
2014-12-07 14:49:12 -04:00
Joey Hess
6a906c8a4c
typo
2014-12-07 12:50:40 -04:00
Joey Hess
322ae878bb
Merge branch 'joeyconfig'
...
Conflicts:
privdata.joey/privdata.gpg
2014-12-07 12:04:58 -04:00
Joey Hess
52a83a8911
enable shadow passwords
...
I have seen weird almost boot failures when they're disabled, including a
segfault.
2014-12-06 15:39:02 -04:00
Joey Hess
7983046cd5
update
2014-12-06 15:28:30 -04:00
Joey Hess
bdbf787e2c
keep and use Reboot.now
2014-12-06 13:32:53 -04:00
Joey Hess
29442f222e
Reboot.atEnd
2014-12-06 13:21:19 -04:00
Joey Hess
62697c7b7f
reboot at end of propellor run when clean os has been installed
2014-12-06 06:41:21 -04:00
Joey Hess
fcff7762e3
endAction can be used to register an action to run once propellor has successfully run on a host.
2014-12-06 06:34:32 -04:00
Joey Hess
c97dd0d708
spelling typo
2014-12-05 19:33:34 -04:00
Joey Hess
a6e756791e
Merge branch 'joeyconfig'
2014-12-05 17:54:45 -04:00
Joey Hess
a7e71faaaa
forgot to add new Mount lib
2014-12-05 17:54:29 -04:00
Joey Hess
9805f132ac
Merge branch 'joeyconfig'
2014-12-05 17:44:14 -04:00
Joey Hess
5ae6a302df
some comments
2014-12-05 17:44:09 -04:00
Joey Hess
00ab240164
fix install of debootstrap from source
2014-12-05 16:48:52 -04:00
Joey Hess
527975dffe
hasSomePassword and hasPassword now check to make sure shadow passwords are enabled.
2014-12-05 16:33:23 -04:00
Joey Hess
dbc76b1e52
Merge branch 'joeyconfig'
2014-12-05 16:23:07 -04:00
Joey Hess
bf9284d05c
I have now successfully used propellor to convert a Fedora system into a bootable and fully working Debian system
2014-12-05 16:22:11 -04:00
Joey Hess
97e9433f1b
rollback if renameing fails
...
This avoids leaving the system in a broken state where some directories
have been renamed away any others not.
Future work: If the rename list contains (foo, bar) and (newfoo,foo),
reorder the list to gather those two actions together to minimize
the amount of time that foo is missing. In case of power loss or something.
2014-12-05 12:50:01 -04:00
Joey Hess
4be893f0bf
more improvements to takeover
2014-12-04 17:34:47 -04:00
Joey Hess
f1fd75c9ec
more work on OS takeover
2014-12-04 17:11:15 -04:00
Joey Hess
f78c2f16d1
update name of libgnutls dev package
2014-12-03 19:05:36 -04:00
Joey Hess
a380ea8390
Merge branch 'joeyconfig'
2014-12-03 19:05:25 -04:00
Joey Hess
16cd9d8235
update name of libgnutls dev package
2014-12-03 19:05:18 -04:00
Joey Hess
8b70031a78
Merge branch 'joeyconfig'
2014-12-01 11:59:38 -04:00
Joey Hess
c9d09afafa
Run apt-cache policy with LANG=C.
2014-12-01 11:59:27 -04:00
Joey Hess
d84e7a2848
Merge branch 'joeyconfig'
2014-12-01 11:53:54 -04:00
Joey Hess
4c2eac2d3c
remove -i, seems not needed and may be causing problem
2014-11-27 19:10:39 -04:00
Joey Hess
9500e9bb81
added more debugging
2014-11-27 17:55:56 -04:00
Joey Hess
7ddb862176
propellor spin
2014-11-27 17:51:41 -04:00
Joey Hess
3d42f1fa19
Merge branch 'joeyconfig'
2014-11-26 10:51:41 -04:00
Joey Hess
5a104675e4
avoid crash on no propellor.debug setting
2014-11-26 10:51:29 -04:00
Joey Hess
e07dc9b1d3
propellor.debug can be set in the git config to enable more persistent debugging output.
2014-11-25 18:55:12 -04:00
Joey Hess
1d8e08f2ac
Merge branch 'joeyconfig'
2014-11-25 15:40:00 -04:00
Félix Sipma
7d0f79a0c7
Group: preferred style
...
Signed-off-by: Félix Sipma <felix.sipma@no-log.org>
2014-11-25 13:12:56 -04:00
Joey Hess
1f40af51e1
Merge branch 'joeyconfig'
2014-11-25 11:46:36 -04:00
Joey Hess
40374c10de
cron.runPropellor now runs propellor, rather than using its Makefile. This is more robust.
...
Particularly, the Makefile would try to build propellor if there were
updates, but if this build failed because a bad commit was pushed, it would
abort w/o pulling any new fixed commits.
Anyway, it's better to move away from using the makefile when possible as
it's just for bootstrapping, and also I would like to make "make" not
default to running propellor as that can be confusing behavior.
(I can't change that yet; needed for upgrades. Should be fine to change
after several more releases, or maybe a year..)
2014-11-25 11:33:45 -04:00
Joey Hess
934171e2ea
rename
2014-11-24 00:52:46 -04:00
Joey Hess
24bce96210
Merge branch 'joeyconfig'
2014-11-24 00:52:46 -04:00
Joey Hess
8d1814a884
move property to ssh module
2014-11-24 00:51:36 -04:00
Joey Hess
9ac4e94625
oops
2014-11-24 00:50:48 -04:00
Joey Hess
ccdbf0026d
more work; builds now
2014-11-24 00:40:53 -04:00
Joey Hess
f85026da7f
better property names
2014-11-23 19:49:53 -04:00
Joey Hess
bfc24ce1d7
Merge branch 'joeyconfig'
2014-11-23 18:51:36 -04:00
Joey Hess
3ef6e352c3
one more merge test
...
--allow-empty added to commit, because the spins could all be empty
2014-11-23 18:51:07 -04:00
Joey Hess
f14749c1cc
Merge branch 'joeyconfig'
2014-11-23 18:49:33 -04:00
Joey Hess
9d975e9ee4
add --merge
2014-11-23 18:48:52 -04:00
Joey Hess
95296a961c
Merge branch 'joeyconfig'
2014-11-23 17:13:02 -04:00
Joey Hess
baba668033
hasSomePassword and hasPassword now default to using the name of the host as the Context for the password. To specify a different context, use hasSomePassword' and hasPassword' (API change)
2014-11-23 16:40:21 -04:00
Joey Hess
d8624e2e5d
WIP
2014-11-23 16:12:39 -04:00
Joey Hess
45d943023d
Merge branch 'joeyconfig'
2014-11-23 15:23:54 -04:00
Joey Hess
0ea0f7f4de
--spin can be passed multiple hosts, and it will provision each host in turn.
...
Note that if it fails to spin a host, it will stop. I think this is better
than continuing to the next, because there might be a reason to spin hosts
in some specific order (ie, update dns first and then use it).
2014-11-23 15:17:57 -04:00
Joey Hess
ac41f8b07b
Merge branch 'joeyconfig'
2014-11-23 14:41:09 -04:00
Joey Hess
3c952a0de9
comment
2014-11-23 14:40:28 -04:00
Félix Sipma
226981cda4
Git: bareRepo
...
Signed-off-by: Félix Sipma <felix.sipma@no-log.org>
2014-11-23 14:39:01 -04:00
Félix Sipma
6aa21366d5
Group properties
...
Signed-off-by: Félix Sipma <felix.sipma@no-log.org>
2014-11-23 14:37:49 -04:00
Joey Hess
69eace8e9a
preferred style
2014-11-23 14:37:37 -04:00
Félix Sipma
f4e06ae778
User: hasGroup
...
Signed-off-by: Félix Sipma <felix.sipma@no-log.org>
2014-11-23 14:37:10 -04:00
Joey Hess
5fefb161c3
propellor spin
2014-11-22 22:37:25 -04:00
Joey Hess
ca09087caf
propellor spin
2014-11-22 22:24:09 -04:00
Joey Hess
81e52f1e14
update
2014-11-22 22:13:00 -04:00
Joey Hess
96ecbaad25
pute full path to bin/propellor inside shim
2014-11-22 22:10:53 -04:00
Joey Hess
7c5188b202
propellor spin
2014-11-22 22:01:19 -04:00
Joey Hess
5360e466d3
reorg
2014-11-22 21:50:49 -04:00
Joey Hess
cc8babccc8
propellor spin
2014-11-22 21:37:39 -04:00
Joey Hess
1d5d911aa0
propellor spin
2014-11-22 21:30:50 -04:00
Joey Hess
50b6e37790
propellor spin
2014-11-22 21:10:35 -04:00
Joey Hess
1338f4effd
don't remove old localdir before tarball unpack
...
it may get messy if old stuff is left, but there is state in there
2014-11-22 20:42:31 -04:00
Joey Hess
58b5de7802
Revert "avoid removing whole localdir every time the precompiled tarball is uploaded"
...
This reverts commit 40bec41f56
.
2014-11-22 20:42:20 -04:00
Joey Hess
40bec41f56
avoid removing whole localdir every time the precompiled tarball is uploaded
...
There's some state in there..
Moved it to a shim subdir, which can be deleted and the tarball unpacked to
recreate it.
2014-11-22 20:35:46 -04:00
Joey Hess
868d7cdcb5
avoid loop after uploading precompiled tarball
...
The localdir still has no .git repo, so it looped.
2014-11-22 20:29:27 -04:00