Commit graph

486 commits

Author SHA1 Message Date
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
Steven Armstrong
654e19f28b mark _run_command as private
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-18 14:40:25 +01:00
Steven Armstrong
c59b2839cd Export target_host so remote_copy script has access to it
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-18 09:03:36 +01:00
Nico Schottelius
7d10560a61 Revert "pgrep -x -f is to restrictive -> impossible to guess/match"
It's not, regexp are your friends :-)

This reverts commit d7623fcf21.
2011-11-15 09:21:07 +01:00
Nico Schottelius
5efb921980 Merge remote-tracking branch 'steven/master' 2011-11-15 09:20:48 +01:00
Nico Schottelius
98ff723b24 add another example for __process
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-11-15 09:20:27 +01:00
Steven Armstrong
d7623fcf21 pgrep -x -f is to restrictive -> impossible to guess/match
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-14 23:18:44 +01:00
Steven Armstrong
b9301c8194 bugfix: process names dont start with slash
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-14 23:05:13 +01:00
Steven Armstrong
d88a4ea55f new type: __nfs_client
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-14 17:54:15 +01:00
Steven Armstrong
71260c7782 new type: __nfs_server
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-14 17:54:09 +01:00
Steven Armstrong
6d45a49219 new type: __nfs_export manage /etc/exports
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-14 17:54:00 +01:00
Steven Armstrong
fa95291cbc use diff instad of cmp
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 16:46:50 +01:00
Steven Armstrong
e195eb46c4 new type __cron: installs and manages cron jobs
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-11-02 16:30:35 +01:00
Nico Schottelius
d6d4d374bd remove unecessary whitespace :-)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-31 18:26:36 +01:00
Steven Armstrong
5ac857a87c realy, dont fail if lsb_release does not exist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-31 16:20:48 +01:00
Steven Armstrong
d4aa04f35d dont fail if lsb_release does not exist
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-31 16:16:10 +01:00
Steven Armstrong
de84542579 no lsb_release -> no output
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-31 14:36:58 +01:00
Steven Armstrong
9fedf314cf add explorers for lsb_*
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-31 11:09:42 +01:00
Steven Armstrong
4775c93a6e use __remote_copy in __file type
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-21 16:01:39 +02:00
Nico Schottelius
837489ce85 remove obsolete preseed code from __package_apt
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2011-10-18 15:54:08 +02:00
Nico Schottelius
1e4de3521a skip errer detection in findline explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-10-16 19:38:50 +02:00
Steven Armstrong
648f57173c bugfix: use -gt when comparing int values
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 23:53:06 +02:00
Steven Armstrong
9d6a00af38 --debug without creating syntax errors
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 23:13:53 +02:00
Steven Armstrong
f0223647e3 --debug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 23:12:49 +02:00
Steven Armstrong
de4ddf9d1e mv installer install
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 23:03:50 +02:00
Steven Armstrong
3d017abd6f pass options to mkfs without -o
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 22:56:50 +02:00
Steven Armstrong
20241a0c5c fix copy/paste error
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 22:56:24 +02:00
Steven Armstrong
9fd74acfac add support for swap
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 22:50:49 +02:00
Steven Armstrong
67cbfee60b Merge remote-tracking branch 'telmich/master' 2011-10-04 22:43:53 +02:00
Steven Armstrong
27a774432e mark __partition_msdos and __partition_msdos_apply as installer types
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 22:42:19 +02:00
Steven Armstrong
acc64caf95 new type: __mkfs
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 22:23:26 +02:00
Steven Armstrong
919f251759 ++examples
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-10-04 16:33:58 +02:00
Steven Armstrong
8ac691f4ac Merge remote-tracking branch 'asteven/master' into partition_msdos 2011-10-04 16:30:36 +02:00
Steven Armstrong
32832777c6 give disk some time to write parition table
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 15:24:19 +02:00
Steven Armstrong
5940c21fba get rid of bashism /echo -n/printf/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-10-04 14:56:59 +02:00
Steven Armstrong
2fd0223347 Merge remote-tracking branch 'cdist/master' into partition_msdos 2011-10-04 13:54:35 +02:00
Steven Armstrong
840254cdd3 Merge remote-tracking branch 'cdist/master' 2011-09-27 15:40:17 +02:00
Nico Schottelius
b9335bb7ce update os/os_version explorer to support owl (openwall linux)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-27 10:35:25 +02:00
Steven Armstrong
b2f1d8e7c0 Merge remote-tracking branch 'cdist/master' 2011-09-27 09:32:45 +02:00
Nico Schottelius
1cfb6bf5a8 make manpage compile for __partition_msdos_apply
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-27 00:11:59 +02:00
Steven Armstrong
9751f16fb1 Merge remote-tracking branch 'cdist/master' 2011-09-26 15:01:12 +02:00
Nico Schottelius
c8dc4181f6 Merge branch 'master' into split_into_modules
Conflicts:
	.gitignore

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-26 09:36:36 +02:00
Nico Schottelius
c10fedaf8c it's not preos, but cdist-preos
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-25 21:10:18 +02:00
Nico Schottelius
a5bfd41195 Detect owl
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-09-25 15:26:54 +02:00
Steven Armstrong
ef97849676 distinguish between disk size and extended partition size
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-09-23 16:20:26 +02:00
Steven Armstrong
721119a34f quote arguments
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-09-23 16:18:55 +02:00
Steven Armstrong
cd5b0cc50c merge cdist/master
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-09-19 15:05:12 +02:00
Steven Armstrong
a3086ae795 make it actually write the partition
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-09-17 09:27:19 +02:00
Steven Armstrong
16d86dcf04 +debug, -type, -bug
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-09-17 09:26:09 +02:00
Steven Armstrong
9d3fa5d4c7 new type __partition_msdos_apply
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-09-17 08:55:24 +02:00
Steven Armstrong
31e9937098 finish new type for partition definition
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-09-17 06:53:18 +02:00
Steven Armstrong
a4ec6f93ce Merge remote-tracking branch 'cdist/install' into install 2011-09-16 12:43:43 +02:00
Nico Schottelius
3f2a27fa82 Merge branch 'master' into install 2011-09-16 12:31:25 +02:00
Steven Armstrong
b6738aaf60 rename __cinst_partition_msdos __partition_msdos
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-09-16 12:19:09 +02:00
Nico Schottelius
298784b12b __package_rubygem: remove optional parameter version, it is not used
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-20 23:02:53 +02:00
Nico Schottelius
b82f2b0f23 fixup manpage for cdist-type__package_rubygem
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-08-20 23:00:31 +02:00
nuex
b7deafc26d fix author email in gencode-remote 2011-08-17 09:27:36 -04:00