Nico Schottelius
a9ffa86b74
remove some old code, merge run into deploy_and_cleanup
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
0b4914a7f3
+comment wording
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Steven Armstrong
d4bad031e9
bugfix: the parameter is named 'state' not 'present'
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Steven Armstrong
d72afd3903
dont change parameters; dont use tmpfile; update copyright
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
12 years ago
Nico Schottelius
a265d87037
begin dry run in command line
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
f95052e56f
remove unused modules
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
4882c2cf19
--resolver in config_install
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
956f400da6
re-arrange for future cleanup
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
2dac681f25
better error message
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
85d24ce259
fix execution order - seems to be fine now
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
8a7c64f86a
cleanups + indent errors
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
a064cc19b3
try new object orientated (hrrr) code instead of stage based
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
af75aa9024
use chmod to allow chmod being in a different path
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Arkaitz Jimenez
9dcad37acf
Remove the umask requirement, set the proper permissions to base_path
12 years ago
Nico Schottelius
5152bdfce7
add hint for 0700, root:root behaviour of __directory --parents
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
12 years ago
Nico Schottelius
352c7da46c
quote the new value check - may contains spaces
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Arkaitz Jimenez
4a89e64115
Make global explorers available to initial manifest and fix hostname explorer
12 years ago
Arkaitz Jimenez
60f85c5b85
__user support for --create-home
12 years ago
Arkaitz Jimenez
d59953642e
crontab -l should be allowed to fail with "no crontab" without stopping exec
12 years ago
Nico Schottelius
44a0f5d7bb
restore resolver test
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Jake Guffey
a50830dca8
Use $__explorer to get os type
12 years ago
Jake Guffey
9f330e361d
Added support for multiple IP addresses
...
FreeBSD jails support jail_${name}_ip="iface1|addr1, iface2|addr2" format for specifying multiple IP addresses
12 years ago
Jake Guffey
52fdf15a4b
Add umask
...
Some directories were being created 700 and causing problems, added umask 022 to fix this
12 years ago
Jake Guffey
005c94556e
Fix to support FreeBSD's stat(1)
...
Added check for OS type
Added FreeBSD syntax in case of $os=freebsd
12 years ago
Nico Schottelius
177c350747
use self.context, not self.local
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Nico Schottelius
d1e06504a2
merge back the dependency resolver into pseudo master
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
12 years ago
Steven Armstrong
06fb7491fa
prevent requirements from leaking into autorequired objects and creating circular references
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
Conflicts:
cdist/test/autorequire/__init__.py
12 years ago
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