Commit graph

317 commits

Author SHA1 Message Date
Nico Schottelius
aedbc263d7 need to use --whatprovides
This ensure we also check for other packages which are used instead
of the requested one, which does not work with rpm -q:

[root@brett ~]# rpm -q vim
package vim is not installed
[root@brett ~]# yum --assumeyes --quiet install "vim"
Package 2:vim-enhanced-7.3.056-1.fc14.x86_64 already installed and
latest version
[root@brett ~]# rpm -q --whatprovides vim
vim-enhanced-7.3.056-1.fc14.x86_64

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-02 02:49:57 +02:00
Nico Schottelius
13f4140b3d update manpage for __package_yum
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-02 02:26:42 +02:00
Nico Schottelius
a778dee9fc use rpm -q to get status
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-02 02:19:47 +02:00
Nico Schottelius
bcc7d0e795 cleanup of gencode-remote
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-02 02:19:30 +02:00
Nico Schottelius
d9e2493eb9 add fedora support to __package
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-02 02:13:44 +02:00
Nico Schottelius
e19c079f24 add template for new type __package_yum
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-02 02:00:20 +02:00
Nico Schottelius
e700437b01 also detect fedora
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-02 01:20:24 +02:00
Nico Schottelius
cee51f0088 make __package_apt use DEBIAN_FRONTEND=noninteractive
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-01 13:12:00 +02:00
Nico Schottelius
e21283c579 remove preseeding support from __package_apt
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-01 13:08:47 +02:00
Nico Schottelius
0db21eb308 document, cleanup and theoretically finish __debconf_set_selections
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-01 12:47:48 +02:00
Nico Schottelius
48a96591d1 add template for type __debconf_set_selections/
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-01 12:11:50 +02:00
Steven Armstrong
fb426bd412 __directory type does not have a destination parameter
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-29 20:10:40 +02:00
Steven Armstrong
1e42861ff4 Merge remote branch 'nico/master' 2011-03-28 17:08:46 +02:00
Steven Armstrong
f337612d36 Merge remote branch 'nico/master' 2011-03-28 15:22:45 +02:00
Nico Schottelius
9bdba19d4a prepend slash when using __object_id as name for __process
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-28 15:20:58 +02:00
Nico Schottelius
417ce61821 -''
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-28 08:54:41 +02:00
Nico Schottelius
271aa95a4d add --name example to manpage
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-27 23:32:28 +02:00
Nico Schottelius
b8002efa6d add support for __process --name (in theory)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-27 23:29:10 +02:00
Nico Schottelius
40b7b158c0 -debug
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-27 23:13:18 +02:00
Nico Schottelius
0e8d36f592 add -x to pgrep
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-27 23:12:25 +02:00
Nico Schottelius
ec29717870 in theory finish __process
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-27 22:59:00 +02:00
Nico Schottelius
e7c1d3f16b add parameter
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-27 00:07:39 +01:00
Nico Schottelius
e4467de8fd describe how __process should work
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-27 00:05:30 +01:00
Nico Schottelius
06fe371b1d create type explorer "runs"
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-26 23:56:17 +01:00
Nico Schottelius
6c6ece859b update documentation for __process
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-26 23:51:45 +01:00
Nico Schottelius
4ba452874a add template for fancy idea __process
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-26 23:45:41 +01:00
Steven Armstrong
4088da5d8c escape __NOTSET__ in man page
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-24 23:47:05 +01:00
Steven Armstrong
b959a14dc2 fix length of ascidoc header
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-24 23:22:08 +01:00
Steven Armstrong
abaa79e19a Merge remote branch 'nico/master' 2011-03-24 23:20:07 +01:00
Steven Armstrong
e27501218f new type __key_value
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-24 23:16:25 +01:00
Nico Schottelius
0961e003be Revert "new type: __apt_update_index" (until it works)
This reverts commit 9094f50b03.
2011-03-24 15:28:20 +01:00
Nico Schottelius
c968028596 Revert "use __apt_update_index" (until it works)
This reverts commit 15b1bdab77.
2011-03-24 15:28:07 +01:00
Nico Schottelius
4b01791e69 Merge remote-tracking branch 'sans/master' 2011-03-24 14:35:58 +01:00
Nico Schottelius
c7ef2210fc update manpage for __apt_ppa
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-24 13:32:09 +01:00
Steven Armstrong
15b1bdab77 use __apt_update_index
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-24 08:31:23 +01:00
Steven Armstrong
9094f50b03 new type: __apt_update_index
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-24 08:30:51 +01:00
Steven Armstrong
e829fe65cd checking for filesize already includes check for file existence
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-23 21:14:17 +01:00
Steven Armstrong
0356d2eeff also check if sources file is not empty
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-23 17:45:03 +01:00
Steven Armstrong
f46b2a9a5a no longer need check-apt-repository
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-23 17:39:28 +01:00
Steven Armstrong
2bab4ed93b dont use python in type explorer
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-23 17:38:28 +01:00
Steven Armstrong
08a53cb130 new type: __apt_ppa
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-23 13:18:13 +01:00
Nico Schottelius
e4190c3d0a add --recursive to __directory (man, gencode, parameter, changelog)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-22 09:59:41 +01:00
Nico Schottelius
4ff794b11a __file now supports --preseed (including the documentation)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-21 10:07:38 +01:00
Nico Schottelius
3927da66b6 update __directory documentation
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-21 09:44:14 +01:00
Nico Schottelius
1a4fd4854c __motd now supports --source as well
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-21 09:30:42 +01:00
Nico Schottelius
240b4aebbc begin to add --preseed to __package_apt
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-21 09:14:42 +01:00
Nico Schottelius
c0705c1efd update documentation for __issue
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-21 08:54:12 +01:00
Nico Schottelius
a6b4c468e3 and add __issue parameter
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-20 02:04:50 +01:00
Nico Schottelius
04a07cfaf6 enhance and fix __issue
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-20 02:04:30 +01:00
Nico Schottelius
c87ecbe23f update comment for __link
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-19 23:44:25 +01:00
Nico Schottelius
c601298760 gencode -> gencode-remote in types
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-19 23:39:01 +01:00
Nico Schottelius
a761a035fe update __file with gencode-local and gencode-remote
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-19 23:26:41 +01:00
Nico Schottelius
3eed0f97ce begin to migrate __file to new local/remote scheme
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-19 22:38:36 +01:00
Nico Schottelius
ea2cbb176a fix generation of manpage for cdist-type__removeline
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-19 14:50:11 +01:00
Steven Armstrong
cef58ae85f handle numeric group id as well as group name for consistency with usermod|groupmod
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-18 23:37:10 +01:00
Nico Schottelius
43afb07598 move init to init.sample to avoid conflicts with real world
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-18 02:17:49 +01:00
Nico Schottelius
cbc8a254f4 +=
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-18 02:11:47 +01:00
Nico Schottelius
d4d2f47b60 more examples, document dependencies
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-18 02:01:37 +01:00
Nico Schottelius
756226f153 enhance example even further
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-18 01:53:54 +01:00
Nico Schottelius
96cbb37a29 fix example code in conf/manifest/init
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-18 01:51:44 +01:00
Nico Schottelius
b521fa07a1 Merge branch 'master' into dependencies 2011-03-18 00:01:20 +01:00
Nico Schottelius
f358a34e1d obsolete cdist-bin-transfer
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-17 20:40:22 +01:00
Daniel Roth
74d3a23930 Removed a not 2011-03-17 19:06:33 +01:00
Daniel Roth
5c39063a89 Added type __removeline 2011-03-17 18:58:28 +01:00
Steven Armstrong
59e774b08d fix merge conflict in changelog
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-16 14:41:43 +01:00
Nico Schottelius
e0520edb10 document redhat support
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-16 11:20:18 +01:00
Nico Schottelius
1bc37f5ba2 setup mode 0644 for motd
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-16 11:20:07 +01:00
Nico Schottelius
f94b39c22b fix __file usage in __issue and add redhat support
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-16 11:16:45 +01:00
Nico Schottelius
aee6953ecd [BUGFIX] __link: remove trailing 's' in variable name
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-16 10:28:00 +01:00
Nico Schottelius
d2c4ffb5f0 cleanup manpages for new types
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-16 08:45:01 +01:00
Nico Schottelius
e7f64758ce update conf/manifest/init example
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-16 08:39:51 +01:00
Nico Schottelius
0847b5b364 Merge branch 'master' into filedirectorylink 2011-03-16 08:36:40 +01:00
Nico Schottelius
bf60df1a9b cleanup in __file manifest
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-16 08:31:30 +01:00
Nico Schottelius
501fcf36d1 remove old --destination parameter from __file explorers
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-16 08:30:02 +01:00
Nico Schottelius
f69802b3d8 s/md5sum/cksum/g
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-16 08:25:36 +01:00
Steven Armstrong
af0b62ecef update man page for __group type
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 23:41:30 +01:00
Steven Armstrong
ec99a22db6 add new type __group
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 23:37:17 +01:00
Steven Armstrong
58718f735a use getent to get entry from shadow database
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 23:35:55 +01:00
Steven Armstrong
4432b476d0 __user: only set password if it changed
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 23:26:24 +01:00
Steven Armstrong
1518bf1935 __user: only run commands if value has changed
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 23:11:01 +01:00
Nico Schottelius
6f7312e877 some cleanups in cdist-type__addifnosuchline(7)
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 21:25:09 +01:00
Nico Schottelius
4a44b3bdf5 __file: -destination
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 21:19:49 +01:00
Daniel Roth
2ed638a0a2 Minor doc fixes 2011-03-15 21:18:18 +01:00
Nico Schottelius
e06e8026dd begin to cleanup __file
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 21:18:15 +01:00
Nico Schottelius
1619964cbb __file does not require --type anymore
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 21:13:01 +01:00
Nico Schottelius
1202131195 update __directory parameters
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 21:11:59 +01:00
Nico Schottelius
86d98ddec4 begin cleanup doc for __directory
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 21:06:18 +01:00
Daniel Roth
c010c9b288 moved manpages 2011-03-15 21:02:47 +01:00
Steven Armstrong
42c87edad1 moved __package_gentoo to gentoo branch
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 20:52:52 +01:00
Nico Schottelius
4c59a0fde1 cleanup __link
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 20:51:09 +01:00
Nico Schottelius
b8c68fcb9e remove explorer for __directory
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 20:37:51 +01:00
Nico Schottelius
3d24edae51 + template for __link
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 20:37:23 +01:00
Steven Armstrong
bead47f6bf remove currently unhandled parameter
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 17:10:27 +01:00
Steven Armstrong
f2f67ad0ad +man __package_emerge/man.text
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 17:09:45 +01:00
Steven Armstrong
26b10dec69 +man
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 17:01:35 +01:00
Steven Armstrong
a9d0bfee16 new type __user
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2011-03-15 16:47:40 +01:00
Nico Schottelius
8d8491232c add template for type __directory
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 16:41:04 +01:00
Nico Schottelius
63452e0fee document __package_apt
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 16:37:34 +01:00
Nico Schottelius
77381b9981 cleanup manpages for __issue and __motd
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 16:35:04 +01:00
Nico Schottelius
aa4a23e7dd doc: -\n
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-03-15 00:18:31 +01:00