Nico Schottelius
a6e2cf853e
mkdiropt needs to be unquoted => empty if not existing
...
Otherwise this happens:
root@lilly ~ # cat
/var/lib/cdist/object/__directory/vm/.cdist/code-remote
rm -f "/vm"
mkdir "" "/vm"
which results into
mkdir: cannot create directory `': No such file or directory
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-12-01 22:33:13 +01:00
Nico Schottelius
48923d23d8
if ... THEN ;-)
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-12-01 18:37:08 +01:00
Nico Schottelius
f47d2c22bc
Merge remote-tracking branch 'steven/issue/202'
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
Conflicts:
cdist/conf/type/__link/explorer/type
2013-11-27 16:24:20 +01:00
Nico Schottelius
dfe4274467
Merge remote-tracking branch 'steven/issue/201'
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
Conflicts:
cdist/conf/type/__directory/explorer/stat
cdist/conf/type/__directory/explorer/type
2013-11-27 16:23:16 +01:00
Nico Schottelius
08dbf2e96c
Merge remote-tracking branch 'steven/issue/198'
2013-11-27 16:22:14 +01:00
Steven Armstrong
abf291cb20
add gpl header
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-27 16:09:02 +01:00
Steven Armstrong
71b41df733
no late delete
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-27 16:09:02 +01:00
Steven Armstrong
6d5686229f
only delete links; delete existing destination before creating links
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-27 16:09:02 +01:00
Steven Armstrong
f5a39e5281
add gpl header
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-27 16:08:50 +01:00
Steven Armstrong
7b065e931f
rewrite type to work analog to __file and __link
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-27 16:08:50 +01:00
Steven Armstrong
d7984df503
make explorers executable
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-27 16:08:50 +01:00
Steven Armstrong
6c3b1e3ca0
add gpl header
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-27 16:05:10 +01:00
Nico Schottelius
de4db39f88
Merge remote-tracking branch 'steven/issue/201'
2013-11-27 15:15:03 +01:00
Nico Schottelius
965526a930
Merge remote-tracking branch 'steven/issue/202'
2013-11-27 15:14:10 +01:00
Steven Armstrong
fcfd2d0a3c
refactor so that there is no interaction between code-local and code-remote
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-26 16:31:18 +01:00
Steven Armstrong
f82c4dc669
no late delete
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-26 16:31:17 +01:00
Steven Armstrong
5918de368d
fix quoting, remove redundant code
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-26 16:31:17 +01:00
Steven Armstrong
db29ea8e70
intial take on fixing the file type
...
- upload file in a safer way
- remove destination if it is not a file
- only set attributes if required
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-11-26 16:31:17 +01:00
Nico Schottelius
2932b8343f
use printf instead of echo to avoid bash broken echo builtin
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-11-25 19:08:46 +01:00
Nico Schottelius
95513ab538
__line: handle fixed strings correctly, posix gave us -F -x for this case
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-10-29 12:23:07 +01:00
Steven Armstrong
9db28fab97
no late delete
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-10-15 14:55:35 +02:00
Nico Schottelius
e7e610d829
add state parameter
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-10-14 22:05:29 +09:00
Nico Schottelius
465749f377
use localedef - locale-gen is a bad wrapper script
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-10-14 21:38:47 +09:00
Nico Schottelius
e0b009308a
initial template for __locale
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-10-14 21:27:07 +09:00
Nico Schottelius
9ded11daf0
Merge branch 'type/__postfix' of git://github.com/asteven/cdist
2013-10-10 10:04:44 +09:00
Nico Schottelius
49c686319e
add more exapmles to cdist-manifest
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-10-10 09:51:26 +09:00
Nico Schottelius
9b2d630807
do not install recommends by default
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-10-09 21:47:37 +09:00
Nico Schottelius
ba3819a83e
Merge remote-tracking branch 'github/master'
2013-09-27 23:25:51 +02:00
Steven Armstrong
d166224e68
create tmpfile on same volume as existing file
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-09-27 22:06:08 +02:00
Steven Armstrong
c769d0b681
preserve ownership and permissions of existing file
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-09-27 22:05:02 +02:00
Steven Armstrong
8a7639c191
preserve ownership and permissions of existing files
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-09-27 21:51:36 +02:00
Nico Schottelius
2b66889105
__line: support line/regexp containing /
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-09-26 16:26:01 +02:00
Steven Armstrong
97a8793fdd
add __postfix* types
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-09-24 15:54:14 +02:00
Steven Armstrong
4bee421f97
rewrite type to work analog to __file and __link
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-09-18 13:26:03 +02:00
Steven Armstrong
067614db1f
make explorers executable
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-09-18 11:14:18 +02:00
Steven Armstrong
bba68b6e40
only delete links; delete existing destination before creating links
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-09-18 10:40:29 +02:00
Steven Armstrong
127c512f84
call systemctl in subshell to prevent the explorer from failing if it exits non zero
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-09-08 22:10:25 +02:00
Nico Schottelius
5a2873efc8
remove customer types
...
Should not have been committed here - sorry for the noise.
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-09-03 09:11:12 +02:00
Nico Schottelius
e3f401900a
add the type as well...
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-09-02 19:58:11 +02:00
Nico Schottelius
f8d3e36efb
new type: __iptables_apply
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-09-02 19:29:11 +02:00
Nico Schottelius
0f6b6f420c
new type: __iptables_rule
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-09-02 19:22:53 +02:00
Nico Schottelius
6cd419b334
have __motd regenerate on Debian/Ubuntu
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-09-02 11:26:32 +02:00
Nico Schottelius
6af7eadc89
add --shell to __cdist
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-09-02 11:21:19 +02:00
Nico Schottelius
4d8840dba0
also setup homedir
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-09-02 10:50:42 +02:00
Steven Armstrong
8aacbe2885
Bourne is not bash
...
see http://shebang.brandonmintern.com/bourne-is-not-bash-or-read-echo-and-backslash/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-08-19 22:25:17 +02:00
Nico Schottelius
ff50a61344
use shortcut version in __package_opkg
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-10 14:16:56 +02:00
Nico Schottelius
ab50d8561b
add new type: __cdist
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-07-04 14:34:17 +02:00
Nico Schottelius
4ae241259f
remove the old entries on change
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-20 09:20:14 +02:00
Nico Schottelius
d78dc7af8b
Merge branch '__cron-simplify'
2013-06-19 21:50:49 +02:00
Nico Schottelius
e7527802a5
more hints for __debconf_set_selections
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-19 18:53:07 +02:00