Commit graph

214 commits

Author SHA1 Message Date
Nico Schottelius
8ff02673f0 remove __motd from localhost (not good as an example for testers)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-14 23:43:00 +01:00
Nico Schottelius
1187a8594a more stuff for upcoming 1.0.4
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-14 23:41:46 +01:00
Nico Schottelius
49d3548f46 support debian/ubuntu in __motd
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-14 23:41:36 +01:00
Nico Schottelius
710ce98386 [DOC] __package_pacman gained manpage
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-14 23:23:32 +01:00
Steven Armstrong
8b614b274c fix fixing the merge conflict
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-14 09:32:18 +01:00
Steven Armstrong
a50e380174 fix merge conflict
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-14 09:26:18 +01:00
Nico Schottelius
d8ab38d846 [DOC] type __issue
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-12 19:48:37 +01:00
Nico Schottelius
bfb43079e3 Merge branch 'dev' of git://git.d-roth.li/cdist
Conflicts:
	conf/manifest/init

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-12 19:11:24 +01:00
Nico Schottelius
32042aba8f cleanup motd
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-12 18:58:22 +01:00
Nico Schottelius
ff1eb0895b add new type: __motd
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-12 18:47:34 +01:00
Nico Schottelius
783c4b12ca [__issue] remove unneeded parameters
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-11 19:08:52 +01:00
Nico Schottelius
d4fac09518 fail, if source is not existing
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-10 19:16:21 +01:00
Nico Schottelius
a190ee13b8 __file: --type symlink supported
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-10 18:14:35 +01:00
Nico Schottelius
5ababb1249 correct manifest of __issue
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-10 17:09:04 +01:00
Nico Schottelius
ddc1724ae0 Merge branch 'master' into only_once 2011-03-10 17:08:22 +01:00
Nico Schottelius
03502567e3 check for existence before (re-)creation
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-10 13:40:05 +01:00
Nico Schottelius
e48458f27f add explorer to find out whether file exists
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-10 13:38:12 +01:00
Nico Schottelius
62c6446412 exit true in case packet is not installed
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-10 13:36:58 +01:00
Nico Schottelius
637163d4af only md5sum if file is a regular file (not a directory)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-10 13:31:00 +01:00
Nico Schottelius
a67073a45b add example for singleton
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-09 22:21:39 +01:00
Nico Schottelius
41d82ea89a add only once to __issue
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-09 21:58:34 +01:00
Nico Schottelius
8ac043e95f comment the initial manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-09 20:22:02 +01:00
Nico Schottelius
1c45e4fe17 begin the manpage integration with man.text
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-09 13:06:23 +01:00
Daniel Roth
35df795342 Return values replaced 2011-03-08 20:21:10 +01:00
Daniel Roth
5333b98299 Testing/Demonstration of type addifnosuchline 2011-03-08 19:53:14 +01:00
Daniel Roth
ac815524f4 Implementation of addifnosuchline type 2011-03-08 19:51:47 +01:00
Steven Armstrong
885f362066 Merge remote branch 'nico/master' 2011-03-08 18:17:59 +01:00
Nico Schottelius
cc28d4ddbb do not exit 0 if __package_$type does not exit 0
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-08 12:39:05 +01:00
Steven Armstrong
a6b88d323e Merge remote branch 'nico/master' 2011-03-07 23:08:37 +01:00
Nico Schottelius
d3fe22b281 update __file to allow md5 also locally
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-07 18:04:59 +01:00
Nico Schottelius
5b2c52b977 __file: support md5 of macosx
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-07 17:51:34 +01:00
Nico Schottelius
4e4e53aebd +;; (esac)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-07 14:25:35 +01:00
Nico Schottelius
81acb39ad6 explorer/os: add support for solaris
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-07 13:56:29 +01:00
Nico Schottelius
e896fc6d4e explorer/os: add support for *bsd
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-07 13:56:18 +01:00
Nico Schottelius
14e7427508 add macosx support to explorer/os
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-07 13:32:14 +01:00
Nico Schottelius
62b392e65d use __global in type __package
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-04 15:11:37 +01:00
Nico Schottelius
908faea756 finish cdist-quickstart
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-04 02:06:13 +01:00
Nico Schottelius
30730a3ccc +add suse support to explorer "os"
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-03 20:17:05 +01:00
Nico Schottelius
b739f452b0 -debug
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-03 15:43:55 +01:00
Nico Schottelius
1d133ecb0a fix type __file: md5sum from stdin (=same name) and prepend / to object_id
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-03 15:42:09 +01:00
Steven Armstrong
614ff21f4a /deinstalled/uninstalled/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-03 10:37:49 +01:00
Steven Armstrong
b9ff43c657 use $__global instead of ./out/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-03 10:37:11 +01:00
Nico Schottelius
8bb3a5b416 beautify output
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-03 09:47:02 +01:00
Nico Schottelius
442a175755 update explorer for __package_apt and install only if not already installed (same for deinstall)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-03 09:12:55 +01:00
Nico Schottelius
45d267158f cleanup manifest/init
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-03 08:55:02 +01:00
Nico Schottelius
baea18be5f Merge remote-tracking branch 'sans/master' 2011-03-03 08:51:22 +01:00
Steven Armstrong
dde0878ffc /ensure/state/
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-03-03 08:44:58 +01:00
Steven Armstrong
c441f68c9c more /etc/hosts magic to ease development
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-03-03 08:44:03 +01:00
Steven Armstrong
cda7664e13 removed obsolete explorer
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-03-03 08:40:54 +01:00
Steven Armstrong
0d88bccead update to work with new tree layout and variables
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-03-03 08:39:37 +01:00
Steven Armstrong
fe5e0c7541 update to work with new variables
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-03-03 08:33:14 +01:00
Steven Armstrong
4c447b59ac need value from file not file itself
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-03-03 08:28:24 +01:00
Nico Schottelius
ae4ff8b497 -debug + fix
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-02 23:58:44 +01:00
Nico Schottelius
643c618a9f add archlinux test
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-02 23:34:34 +01:00
Nico Schottelius
34fa8260f5 finish __package_pacman
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-02 21:23:43 +01:00
Nico Schottelius
ddbcaf5152 add template for __package_pacman
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-02 21:15:03 +01:00
Nico Schottelius
3a10475151 only install/deinstall apt packages if necessary
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-02 19:21:15 +01:00
Nico Schottelius
c90ae945a8 add explorer for apt to find out pkg_status
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-02 19:14:32 +01:00
Nico Schottelius
7c34ccde99 update gencode to contain something useful
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-02 18:54:31 +01:00
Nico Schottelius
173c6b0d4e use __package_apt on ikq*
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-02 18:40:13 +01:00
Nico Schottelius
5594669b86 add template for __package_apt
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-02 18:37:15 +01:00
Nico Schottelius
dcaf0f619b move marker file to be /etc/cdist-configured
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-26 20:43:30 +01:00
Nico Schottelius
c27d052890 cleanup issue
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-26 10:44:50 +01:00
Nico Schottelius
1ed0b6d474 export __cdist_local_base_dir in cdist-deploy-to for others
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-26 10:42:06 +01:00
Nico Schottelius
06a56ab6d2 AR Steven: DOC: manifest can access $__type (implement $__type ;-)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-25 18:42:38 +01:00
Nico Schottelius
918bb8bb5a in theory, finish __file/gencode (with debug)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-25 18:33:12 +01:00
Nico Schottelius
45429c2ca0 Allow ids to contain slashes
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-25 02:13:11 +01:00
Nico Schottelius
1a718e7c23 adjust gencode of type __file
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-25 01:20:34 +01:00
Nico Schottelius
e4377f7532 remove debug
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-25 00:58:38 +01:00
Nico Schottelius
66610155ae add some debug to md5sum explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-25 00:55:06 +01:00
Nico Schottelius
72f62a8734 cleanup and fix some missing } in cdist-config
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-25 00:14:26 +01:00
Nico Schottelius
df2bbebed7 params -> parameter
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 21:37:55 +01:00
Nico Schottelius
b683b8ca70 more plural -> singular cleanups
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 21:36:11 +01:00
Nico Schottelius
238b5119eb begin to migrate from plural to singular, CONSISTENTLY
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 21:32:01 +01:00
Nico Schottelius
241548c6ec cleanup, -debug
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 15:43:53 +01:00
Nico Schottelius
3fdb5a2e24 successfully implement __target_host
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 15:14:00 +01:00
Nico Schottelius
368eed50c1 -debug
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 14:48:20 +01:00
Nico Schottelius
7d766d5376 export __manifests
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 14:47:52 +01:00
Nico Schottelius
f5eccb2cb1 introduce new variable names and use __explorers
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 14:24:47 +01:00
Nico Schottelius
2b9acf9f26 adjust issue manifest not to hide error if file is missing
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-24 09:41:42 +01:00
Nico Schottelius
957ab446fa introduce __cdist_local_base_dir and use it in HACKERS_README
This way out/ and conf/ are debugable.

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 19:05:46 +01:00
Nico Schottelius
0bf48923a9 change explorer to use locally available path
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 18:36:02 +01:00
Nico Schottelius
926a307234 transfer all cdist binaries to the target, may be helpful
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 17:55:35 +01:00
Nico Schottelius
9c9d3b33cf update cdist-explorer-run to almost run again
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 16:49:39 +01:00
Nico Schottelius
995bf8d963 a giant commit into the future
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 16:45:38 +01:00
Nico Schottelius
edc4bf6a47 add template for cdist-explorer-remote-run
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 16:31:28 +01:00
Nico Schottelius
2e266cfe3a finish conf/types/__file/explorers/md5sum
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:32:35 +01:00
Nico Schottelius
0c0209e83b update __file/gencode to include parameters/ prefix
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:29:57 +01:00
Nico Schottelius
5cc342fd68 add template for md5sum explorer of __file
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:28:05 +01:00
Nico Schottelius
53b51b0ead Merge branch 'master' into types_explorer 2011-02-23 09:24:25 +01:00
Nico Schottelius
cea051a105 fix __file/gencode: use destination, not path
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:23:59 +01:00
Nico Schottelius
756a12c4f0 remove failing objects from initial manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:15:38 +01:00
Nico Schottelius
adbd147857 remove failing objects from initial manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 09:10:17 +01:00
Nico Schottelius
d80d9738ef Merge branch 'master' into types_explorer 2011-02-23 00:05:52 +01:00
Nico Schottelius
6ff47f59a8 use ./ for other explorer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-23 00:05:35 +01:00
Steven Armstrong
0c47a70d6e commented out the future
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-02-22 23:22:27 +01:00
Nico Schottelius
5017119132 Merge remote-tracking branch 'sans/master' 2011-02-22 17:25:35 +01:00
Nico Schottelius
00220332a5 simplify manifests/init
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-02-22 17:25:31 +01:00
Steven Armstrong
81823131b0 +type:__package_emerge
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-02-22 16:19:02 +01:00
Steven Armstrong
e5366650ce +type:__package
Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
2011-02-22 16:15:50 +01:00