Nico Schottelius
cb829ec8d0
introduce MissingObjectIdError
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
contradict
b772e09d53
Exit with no error if directory absent
...
Explorers need to handle the case of no directory.
12 years ago
Jason Staten
919707d6f9
Initialize variables to empty string
...
Set mode, group, etc. to an empty string to ensure that no external
environment variables can leak in.
12 years ago
Eivind Uggedal
1b25ef33b9
Slackware os and os_version explorer support.
12 years ago
contradict
3ff7621984
__git respects --owner and --group, add --mode
...
After checkout, chown and chmod as specified. If already present, but
not possessing correct permissions, run chown and chmod as needed.
12 years ago
Jason Staten
fc1a9ed27b
directory permission explorers
...
The group, mode, and owner are now pulled from a explorers. If the
desired value matches the existing value, then no code is executed.
If the recursive flag is set, the permissions are applied every run.
12 years ago
Nico Schottelius
1d933dd5d3
do not need to create directories - git will do this - thanks to Steven
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Jason Staten
f16ac1911d
Set permissions on existing directory
...
Previously, an existing directory would not have its permissions
modified by the __directory type. This change removes exiting early when
$state_is matches $state_should
12 years ago
contradict
f41b029ade
Eliminiate excess output from machine explorer
...
command -v emits a string to stdout, silence this since we are only
interested in the return code.
12 years ago
Nico Schottelius
e03f5d08dd
move / correct tests in object and config_install
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
ef45cd5ce0
fix removal of context alias in config_install
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
2732a4ba5c
finally finish the dynamic resolver
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
527ec0889b
remove unneeded fixtures
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
4fd27e76a7
support dry_run in stage_run_iterate as well
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
c270538072
add dry_run option to object_run
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
eb93d1bebd
begin tests for config_install
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
369305f376
remove circularreferenceerror, because it is not being used anymore
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
8031c77700
fix some tests, break some others :-)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
4faec43493
cleanup: remove call to old resolver
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
958d2d336f
various cleanups
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
442dc767dd
merge resolver test into object test - because object requirement solving is implemented
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
cd8b3cf68d
finish rewrite of dependency resolver
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
6a8778e595
remove most of the resolver boilerplate, keep the interesting functions
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
81c92e5cc4
merge all resolver code into cdist_object (to gain the requirement searching code
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
16340b7d34
report on broken requirements, begin to satisfy requirements
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
6b6037d9bb
todos for a simple resolver
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
2e81379c18
add very simple solver for dependencies
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Jake Guffey
7d7ad2630c
Fix issue #147
...
--state absent should imply --stopped.
12 years ago
Nico Schottelius
67c7351bec
install the right package, not pyro...
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
3167ececc6
add owner/group support to __git
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
8b91e3116a
create working version of __git
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Steven Armstrong
56b6c95ed4
implement conf-dir from CDIST_PATH environment variable
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Nico Schottelius
f37f3d201c
__ssh_authorized_key has been superseeded by __ssh_authorized_keys
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Steven Armstrong
1ef5bcaa74
new type: __ssh_authorized_keys - manage ssh authorized_keys files
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Steven Armstrong
3a419ed58b
make type explorers executable after transfering them
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Nico Schottelius
868421bf16
Update examples to match new parameters
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
1bd27fffae
__jail: started -> stopped, correct help output
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
8bf196fdc0
add helpful log message when resolving dependencies
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
b996dcbae1
bugfix __qemu_img
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
8408f433e9
remove type from here - goes into cdist-nico repo
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
a6452cfabd
rename type to reflect new environment
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
3dfad32d4c
add new type: __localch_kvm_vm
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
2fe647a1f7
Revert "implement before/after to declare dependencies and deprecate require"
...
Comment from asteven:
Some problems showed up while updating the docs and tests.
You should revert the merge for now.
This reverts commit 84770b9ef2
.
12 years ago
Nico Schottelius
d4fc49fa6b
begin manpage
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
d419722a24
adapt documentation to use boolean parameter as well
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
4718b81a08
Documentation cleanup (old pre-boolean variant)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Steven Armstrong
7f0ae7928a
fix state explorer to properly detect already existing ppa
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Steven Armstrong
84770b9ef2
implement before/after to declare dependencies and deprecate require
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
--whitespace
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Steven Armstrong
6d430524f1
binary all the way, fixes issue #138
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Nico Schottelius
13968d16f6
change __jail to boolean, fixes #128
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago