Nico Schottelius
2b0c273715
state_should is being populated in manifest, if not given
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-14 18:04:00 +01:00
Nico Schottelius
2b380b7dc1
Merge branch 'master' into feature_init_process
...
Conflicts:
doc/changelog
doc/dev/todo/niconext
doc/man/cdist-reference.text.sh
lib/cdist/core/explorer.py
doc/man/cdist-reference.text.sh documents better reachability of
variables - also suitable for master?
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-14 13:53:16 +01:00
Nico Schottelius
c8ec4c200a
repair manpage for __package_pip
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-13 14:28:30 +01:00
telmich
5d6e55d074
Merge pull request #34 from mcodd/user-gid-change-bug
...
fix for changing a user's group by name
2012-02-13 02:22:35 -08:00
Benedikt Koeppel
ad4aa19c3e
new type __run_command
...
This cdist type allows you to run a specific command once at installation time.
optional parameter: --command Command (with arguments) to run.
2012-02-12 15:16:59 +01:00
Nico Schottelius
947c9a4ccb
++changes for 2.0.7
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-10 16:17:53 +01:00
telmich
1025ed5897
Merge pull request #31 from asteven/issue-28
...
Robuster implementation of __key_value
2012-02-10 07:16:20 -08:00
Nico Schottelius
45053c6d84
allow pip to be non existent during explorer stage
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 19:31:30 +01:00
Nico Schottelius
1713a70428
begin changes to __package_luarocks and __package_pkg_openbsd
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 19:06:13 +01:00
Nico Schottelius
3c19e7ab4c
update __package_pacman for absent/present
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 11:54:13 +01:00
Nico Schottelius
52849b91c5
warn about deprecated usage
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 10:25:05 +01:00
Nico Schottelius
8e5a0f83c5
rename explorer to state, being more consistent internally
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-09 10:10:13 +01:00
Nico Schottelius
602e57455d
support absent/present in __package_apt
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-08 22:23:49 +01:00
Nico Schottelius
2aed047f75
2nd correction round for manpages
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-08 22:23:31 +01:00
Nico Schottelius
242ce6dfd2
first round of absent/present changes
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-08 22:16:09 +01:00
Nico Schottelius
e42bf61413
new type: __package_pip
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-02-08 22:05:48 +01:00
Steven Armstrong
817ce9c256
/egrep/grep -E/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-08 08:31:59 +01:00
Matt Coddington
908e74689c
improve comments and use better variable names
2012-02-07 12:38:21 -05:00
Matt Coddington
4d845b3fea
fix for changing a user's group by name
2012-02-07 10:27:28 -05:00
Nico Schottelius
d38928f686
Merge branch 'issue-29' of https://github.com/asteven/cdist
2012-02-07 08:56:26 +01:00
Matt Coddington
bf1f6add55
bugfix for shadow field number
2012-02-06 15:23:38 -05:00
Steven Armstrong
9d25dfdfa9
properly handle existing links
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-06 21:08:59 +01:00
Steven Armstrong
ef81f03e89
have to report absent state no matter what the desired state is
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-03 22:49:10 +01:00
Steven Armstrong
cad2097d05
complete rewrite: use state explorer to determine current state, more robust implementation for adding, changing, removing key/values
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-03 22:43:34 +01:00
Steven Armstrong
4628dad045
cleaner way to set default values
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-03 20:55:24 +01:00
Steven Armstrong
85f7880c7e
add a hopefully more robust implementation for changing existing values
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-02-03 20:50:17 +01:00
Matt Coddington
37c02dad45
bugfix - do chmod last
2012-02-02 11:09:20 -05:00
Nico Schottelius
6fa8f1d051
sort os by alphabet
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-30 11:52:41 +01:00
Matt Coddington
84ca02d7ca
alphabetize os explorer
2012-01-27 04:35:50 -05:00
Matt Coddington
211ee5b043
adding support for amazon linux
2012-01-26 09:54:38 -05:00
Nico Schottelius
8447702c50
update changelog, move __rsyncer from types to other/ (see README.inclusion)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-26 11:56:12 +01:00
Nico Schottelius
88ea9bf245
remove --stats: if nothing changed, nothing should be printed on stdout
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-23 10:46:22 +01:00
Nico Schottelius
f73709d467
document bug in __rsyncer (needs to be fixed)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-23 10:45:52 +01:00
Nico Schottelius
56d2862e99
Merge branch '__rsyncer' of https://github.com/phrawzty/cdist
2012-01-23 10:40:48 +01:00
Matt Coddington
d53accd57f
Subject: [cdist] [BUG] fix for conf/type/__group/gencode-remote
...
I noticed $current_value was not getting set correctly in
__group/gencode-remote and tracked it down to this trivial fix
(applies to current master). I'm unfortunately not comfortable enough
with git yet to submit it that way... hopefully this is an appropriate
way to submit:
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-20 18:02:28 +01:00
Nico Schottelius
1b263b57cf
prefer ' over "
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-20 16:30:44 +01:00
Nico Schottelius
6d14e32911
support removal and correct adding daemons on archlinux
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-20 15:34:18 +01:00
Nico Schottelius
a357d7d794
support adding start on boot on archlinux (no removal so far)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-20 14:57:25 +01:00
Nico Schottelius
6d5c69d5c4
remove runlevel parameter for now - seems to be too complex/unecessary for the moment
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-20 14:16:49 +01:00
Nico Schottelius
d9884490a5
Merge branch 'master' into feature_init_process
2012-01-20 14:15:58 +01:00
Nico Schottelius
578fd664e4
__process: support present/absent
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-20 13:14:24 +01:00
Nico Schottelius
bd32bd0953
setup state in os specific sections to get better overview
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-20 12:58:50 +01:00
Nico Schottelius
aae67652e9
explore state of init script on archlinux
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-20 12:57:40 +01:00
Nico Schottelius
f290b94d7b
Merge branch 'master' into feature_init_process
...
Conflicts:
doc/changelog
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-20 11:40:09 +01:00
Nico Schottelius
9965dc3da4
Merge remote-tracking branch 'evax/rvm-types'
2012-01-19 13:11:25 +01:00
Nico Schottelius
a112b4f123
documet debian/ubuntu problem
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-19 09:12:54 +01:00
Nico Schottelius
aa870e0124
remove debug, remove gentoo support until tested
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-18 16:37:09 +01:00
Nico Schottelius
559670ab4f
add debian / ubuntu support for checking state
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-18 16:15:53 +01:00
Nico Schottelius
fe0fae6902
update explorer and gencode and parameter
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-18 16:07:33 +01:00
Nico Schottelius
42e3c18d02
+update of __start_on_boot
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-18 15:54:32 +01:00
Nico Schottelius
1412744619
begin state explorer
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-18 15:52:19 +01:00
Evax Software
5fa2646011
fix default parameter handling in __rvm_gemset
2012-01-18 15:13:53 +01:00
Evax Software
65be80f2c6
escape user parameter in __rvm* types
2012-01-18 14:52:46 +01:00
Nico Schottelius
aea1070798
add global explorer runlevel
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-18 14:50:50 +01:00
Nico Schottelius
c567ade17a
add manpage for __start_on_boot
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-18 14:42:36 +01:00
Nico Schottelius
dc9e1e4a25
Merge branch 'master' into feature_init_process
2012-01-18 14:38:12 +01:00
Nico Schottelius
6df60b9908
Merge branch 'rvm-types' of https://github.com/evax/cdist
2012-01-18 14:35:35 +01:00
phrawzty (dan)
85876592e3
New type: __rsyncer
2012-01-18 14:30:31 +01:00
Evax Software
72dea3d930
__rvm* types documentation cleanup
2012-01-18 14:28:10 +01:00
Nico Schottelius
ac36b5e18d
template for new type that starts stuff on boot
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-18 13:31:22 +01:00
Nico Schottelius
37c723f198
Merge remote-tracking branch 'github/master'
2012-01-18 13:16:52 +01:00
telmich
dc616a6996
Merge pull request #20 from evax/package-apt-fixes
...
better handling of virtual packages in __package_apt
2012-01-18 04:16:23 -08:00
Evax Software
9317d57ff1
make virtual package detection more robust in __package_apt
2012-01-18 09:31:11 +01:00
Tim Kersten
9c2ca52382
When removing a ppa, don't forget deb-src line
...
(Also remove the [ppa-name].list file if empty.)
2012-01-16 23:50:12 +00:00
Evax Software
e4100e324a
better handling of virtual packages in __package_apt
2012-01-16 18:04:15 +01:00
Evax Software
8cc0d6f0e7
properly handle rvm and ruby dependencies
2012-01-16 12:30:19 +01:00
Evax Software
eb83190efd
use grep's -q option
2012-01-16 12:29:51 +01:00
Evax Software
34fa123ed1
prevent spurious output in __rvm_gem and __rvm_gemset explorers
2012-01-13 15:19:29 +01:00
Evax Software
11be251163
add rvm types
2012-01-13 08:28:13 +01:00
Steven Armstrong
38e5c3e407
fix issues with requirements caused by legacy code conflicting with the new autorequire feature
2012-01-12 09:18:43 +01:00
Nico Schottelius
60ebefe820
fix bug by documentation - has been solved before (__process)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 23:29:26 +01:00
Nico Schottelius
1e652569f8
Merge branch 'issue-13' of https://github.com/asteven/cdist
2012-01-09 22:44:28 +01:00
Steven Armstrong
62b5af8fdb
bugfix for github issue 13
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-01-09 21:07:03 +01:00
Nico Schottelius
3818548d9a
find conf/type -type f -exec sed -i 's/ *$//' {} \;
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 16:30:52 +01:00
Nico Schottelius
0d04f0ba34
correct documentation
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 15:46:35 +01:00
Nico Schottelius
a55dd390b1
simplify default value setting
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 15:46:24 +01:00
Nico Schottelius
7cc9b217da
display wrong state to the user (__link)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 15:43:12 +01:00
Nico Schottelius
1092103500
fix --ensure vs. --state bug [DOC]
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 15:41:15 +01:00
Nico Schottelius
228eb600bf
simplify default value code a lot
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 15:40:05 +01:00
Nico Schottelius
8320327956
rephrase if..elif..else to case..esac
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 15:37:16 +01:00
Nico Schottelius
f1273aa7a1
--state not --ensure [DOC BUG]
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 15:29:17 +01:00
Nico Schottelius
c1dc33a5a1
display unknown state, be nice to the user
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 15:27:11 +01:00
Nico Schottelius
7d0671e529
force removal - to not trigger rm -i behaviour in type
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 15:26:49 +01:00
Nico Schottelius
283b5eff6e
include __nfs_* into types_submitted_for_inclusion
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-01-09 11:53:22 +01:00
Nico Schottelius
2a3f294ec0
Merge branch 'nfs' of https://github.com/asteven/cdist
2012-01-09 11:45:42 +01:00
Steven Armstrong
2e61f54c11
import latest changes from private repo
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-01-09 10:51:53 +01:00
Steven Armstrong
8c1aa87296
Merge remote-tracking branch 'telmich/master' into filestate
...
Conflicts:
conf/type/__file/gencode-local
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-01-09 10:45:27 +01:00
phrawzty (dan)
dbf0767c4e
Add type __cdistmarker.
2012-01-06 16:58:58 +01:00
Steven Armstrong
a511461d9b
Merge remote-tracking branch 'telmich/master' into nfs
2012-01-06 11:04:17 +01:00
Steven Armstrong
865acf3771
strip duplicate /
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-01-06 10:50:34 +01:00
Steven Armstrong
b67d785a24
fix copy/paste error, use proper prefix and suffix
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-01-06 10:50:01 +01:00
Steven Armstrong
4e4a1598b2
run exportfs after changing /etc/exports, bugix: remove trailing quote
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-01-06 10:47:51 +01:00
Steven Armstrong
6fe66834fd
use pattern instead of string
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-01-06 10:46:32 +01:00
Steven Armstrong
77350b0a1d
use pattern instead of string
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-01-06 10:46:06 +01:00
phrawzty (dan)
7cbc494301
Add --regex to manual
2012-01-05 11:13:30 +01:00
phrawzty (dan)
6d55d7ae82
--regex to make __addifnosuchline more flexible
2012-01-05 11:08:16 +01:00
Nico Schottelius
06df35ef0f
Merge branch 'luarocks-package' of https://github.com/cwarden/cdist
2012-01-04 19:38:13 +01:00
Christian G. Warden
bdafb4ffef
A new type for managing luarocks packages
...
The __package_luarocks type manages the installation of Lua modules
distribued using LuaRocks. It is based on __package_rubygem.
2012-01-04 10:08:45 -08:00
Christian G. Warden
b0e25e8784
fix typo
2012-01-04 07:58:51 -08:00
Steven Armstrong
6b0935c207
/__self/__object_name/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-18 15:43:06 +01:00