Philippe Grégoire
997fdd8ac4
fix typo in group entry extraction
8 years ago
Philippe Grégoire
a915baa73b
__user: explore with /etc files
...
getent(1) is a utility available where Name Service Switch (NSS)
is available. Many modern operating systems support it, but that
may not be the case of all (e.g. embedded systems).
This commit modifies the __user type explorers to check the
traditional files instead of relying solely on the availability
of getent(1).
- Makes the group explorer use /etc/group
- Makes the passwd explorer use /etc/passwd
- Makes the shadow explorer use /etc/shadow
Implementation note
"getent shadow" does not support querying an entry using a uid
since it does not store that information. Since the shadow explorer
uses __object_id, the passwd explorer does not check if __object_id
matches an entry by uid. This behavior ensures consistent, transparent
behavior of the type. The group explorer, on the other hand, handles
group names and uids; like always.
8 years ago
Darko Poljak
ceb97fd0ee
Fix for mistake in 982bb286f4
.
8 years ago
Darko Poljak
982bb286f4
Cleanup options' help and cdist man page.
8 years ago
Philippe Gregoire
61b52ac806
Set default remote_cmds_cleanup_pattern
...
Fixes an exception when --remote-copy and --remote-exec are used.
8 years ago
Philippe Gregoire
7b0b3d9415
Fix remote cmds cleanup
...
When --remote-copy and --remote-exec are provided,
args.remote_cmds_cleanup_pattern is not set.
This patches fixes the evaluation of args.remote_cmds_cleanup_pattern
and prevents cdist from throwing an exception when --remote-copy
and --remote-exec are used.
8 years ago
Darko Poljak
75fe3272b3
Add file locking for -j parallel execution.
8 years ago
Darko Poljak
87fe52ea61
Default logging level is WARNING.
8 years ago
Darko Poljak
314a931b84
Respect cdist log level in emulator.
8 years ago
Darko Poljak
59782ad64e
Fix unit test.
8 years ago
Darko Poljak
ca1cc0f64a
object_id = '/' is invalid
8 years ago
Darko Poljak
68cb13881f
Add archiving support.
8 years ago
Nico Schottelius
260303dd14
Fix gpasswd call in __user_groups: order incorrect
...
From the manpage:
-a, --add user
Add the user to the named group.
-d, --delete user
Remove the user from the named group.
8 years ago
Darko Poljak
1b0f560608
Add missing args to method call.
8 years ago
Darko Poljak
0a85d913cc
Optimize dir transfer.
8 years ago
Darko Poljak
0d734c872d
Fix log var assignment.
8 years ago
Ander Punnar
b7b1101f11
always exit 0
8 years ago
Darko Poljak
23fbabe303
Further improve parallel execution.
8 years ago
Darko Poljak
d1a044cc23
multiprocessing.Pool -> concurrent.futures.ProcessPoolExecutor
8 years ago
Darko Poljak
7c7a98d083
pep8
8 years ago
Darko Poljak
32838a096d
Refine inventory logging to adhere new cdist logging.
8 years ago
Darko Poljak
0af64c01bf
Add -p HOST_MAX argument.
8 years ago
Darko Poljak
bb2cc68169
Fix broken text
8 years ago
Darko Poljak
4a54d1420e
Remove unwanted fixme
8 years ago
Dominique Roux
5ccfec9c18
Updated to docker-compose version 1.14
8 years ago
Ander Punnar
6bfe02094d
year is 2017
8 years ago
Ander Punnar
2c56622eeb
check file first
8 years ago
Ander Punnar
c706b9eefb
check current timezone before doing anything
8 years ago
Darko Poljak
e2a1519332
Merge inventory from beta branch.
8 years ago
Darko Poljak
a20b7167cd
pep8
8 years ago
Darko Poljak
2beb55be54
Remove FIXME comment due to fix appliance
8 years ago
Darko Poljak
126a1812a5
Fix parallel object prepare and run steps. Add nonparallel type marker.
8 years ago
Darko Poljak
31899b2263
Add missing shebangs.
8 years ago
Steven Armstrong
d9a358bdf3
add forgotten symlink
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Darko Poljak
f9b632eebb
Improve listdir.
8 years ago
Darko Poljak
80c3dd7572
Ignore directory entries that begin with dot('.').
8 years ago
Darko Poljak
9c914308f6
Fix ssh connection multiplexing race condition #542
...
Increase ControlPersist to 2h.
After host run run ssh mux master exit command.
If custom remote exec/copy is specified then do nothing.
8 years ago
Steven Armstrong
9fe2420547
also log start of config run
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
a1d73f7281
log changing object as Processing instead of Updating
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Steven Armstrong
f6e1174adb
start moving info log messages to verbose
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Darko Poljak
cef1d215b2
Finally remove deprecated -d/--debug option.
8 years ago
Darko Poljak
015861e63b
pep8
8 years ago
Darko Poljak
a37d286d67
Suppress subprocess script output in quiet mode.
8 years ago
Darko Poljak
a722f3c634
3rd iteration of logging cleanup.
8 years ago
Darko Poljak
127c05a882
2nd iteration of logging cleanup.
8 years ago
Darko Poljak
248656b81f
First iteration of logging cleanup.
8 years ago
Darko Poljak
c63ab44c9c
Define better warning facility.
8 years ago
Steven Armstrong
01ca5910ec
increase ControlPersist to 30 to workaround #542
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
8 years ago
Ander Punnar
6a6716035b
one space too much
8 years ago
Ander Punnar
0e8302c204
if no --source, then create only if there's no file
8 years ago