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
Nico Schottelius
622cd398c6
use quiet mode by default
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-19 18:51:23 +02:00
Nico Schottelius
84f2ca0d1f
add new type: __update_alternatives
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-19 18:49:43 +02:00
Nico Schottelius
137856002f
Merge branch 'master' into __cron-simplify
2013-06-19 11:31:33 +02:00
Nico Schottelius
4ecffa7d59
fix typo in __process
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-19 11:31:21 +02:00
Nico Schottelius
fb40ba4d0f
Merge branch 'master' into __cron-simplify
2013-06-19 11:20:25 +02:00
Nico Schottelius
135499f120
__process: make --state optional
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-19 11:19:45 +02:00
Nico Schottelius
1c94c615b1
__cron: remove parameter changing code, remove multiline code, remove early execution of included $() code, simplify __cron
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-19 10:55:07 +02:00
Nico Schottelius
1788b343d1
Merge branch '__postgres_role-changes' of https://github.com/nuex/cdist
2013-06-18 13:40:18 +02:00
nuex
90f7ec40fe
__postgres_database: make state parameter optional
2013-06-17 13:49:36 -04:00
nuex
48b6344645
__postgres_role: check if state parameter exists before reading it
2013-06-17 11:16:26 -04:00
nuex
dc39099730
__postgres_role: make state parameter optional, fix password parameter checking in gencode-remote
2013-06-17 11:05:23 -04:00
nuex
211363d5be
__git: quote variables in gencode-remote, add optional parameters in manpage
2013-06-16 01:40:11 -04:00
Nico Schottelius
2acce10497
change __start_on_boot to use systemd on archlinux
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-06-09 23:45:22 +02:00
Tyler Akins
1485381340
Fixing apt_ppa type - can't use double equals with dash
2013-05-26 15:54:28 -05:00
Nico Schottelius
e771e91043
Merge branch '__ssh_authorized_keys' of https://github.com/asteven/cdist
2013-05-10 13:13:13 +02:00
Steven Armstrong
d4bad031e9
bugfix: the parameter is named 'state' not 'present'
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-05-10 12:41:56 +02:00
Steven Armstrong
d72afd3903
dont change parameters; dont use tmpfile; update copyright
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2013-05-10 12:35:22 +02:00
Nico Schottelius
002537f5d1
Merge pull request #169 from arkaitzj/global_explorers
...
Make global explorers available to initial manifest
2013-04-09 06:11:07 -07:00
Nico Schottelius
5152bdfce7
add hint for 0700, root:root behaviour of __directory --parents
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-04-03 16:49:03 +02:00
Nico Schottelius
352c7da46c
quote the new value check - may contains spaces
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2013-04-02 09:21:01 +02:00
Nico Schottelius
dd566527a9
Merge branch 'user_create_home' of https://github.com/arkaitzj/cdist
2013-04-02 09:19:58 +02:00
Arkaitz Jimenez
4a89e64115
Make global explorers available to initial manifest and fix hostname explorer
2013-04-01 00:48:57 +02:00
Arkaitz Jimenez
60f85c5b85
__user support for --create-home
2013-04-01 00:02:22 +02:00
Arkaitz Jimenez
d59953642e
crontab -l should be allowed to fail with "no crontab" without stopping exec
2013-04-01 00:01:22 +02:00
Jake Guffey
a1fb621d19
Merge branch 'master' into __directory_fix
2013-02-20 08:19:46 -05:00
Jake Guffey
a50830dca8
Use $__explorer to get os type
2013-02-19 16:31:06 -05:00
Jake Guffey
9f330e361d
Added support for multiple IP addresses
...
FreeBSD jails support jail_${name}_ip="iface1|addr1, iface2|addr2" format for specifying multiple IP addresses
2013-02-19 16:24:22 -05:00
Jake Guffey
52fdf15a4b
Add umask
...
Some directories were being created 700 and causing problems, added umask 022 to fix this
2013-02-19 15:28:03 -05:00
Jake Guffey
005c94556e
Fix to support FreeBSD's stat(1)
...
Added check for OS type
Added FreeBSD syntax in case of $os=freebsd
2013-02-19 15:23:52 -05:00
Nico Schottelius
3b430c0d76
Merge pull request #156 from contradict/__git_permissions
...
__git respects --owner and --group, add --mode
2013-01-31 13:06:09 -08:00
Nico Schottelius
c620c2fa29
Merge pull request #155 from statianzo/directory-owner
...
Set permissions on existing directory
2013-01-31 13:05:10 -08:00
b772e09d53
Exit with no error if directory absent
...
Explorers need to handle the case of no directory.
2013-01-30 00:48:08 -08:00
Jason Staten
919707d6f9
Initialize variables to empty string
...
Set mode, group, etc. to an empty string to ensure that no external
environment variables can leak in.
2013-01-28 10:06:04 -07:00
Eivind Uggedal
1b25ef33b9
Slackware os and os_version explorer support.
2013-01-28 08:30:54 -05:00
3ff7621984
__git respects --owner and --group, add --mode
...
After checkout, chown and chmod as specified. If already present, but
not possessing correct permissions, run chown and chmod as needed.
2013-01-27 19:53:22 -08:00
Jason Staten
fc1a9ed27b
directory permission explorers
...
The group, mode, and owner are now pulled from a explorers. If the
desired value matches the existing value, then no code is executed.
If the recursive flag is set, the permissions are applied every run.
2013-01-24 22:37:52 -07:00
Nico Schottelius
1d933dd5d3
do not need to create directories - git will do this - thanks to Steven
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2013-01-20 22:02:10 +01:00
Nico Schottelius
7a41d6d8fa
__file: notify when doing changes
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2013-01-20 18:11:47 +01:00
Jason Staten
f16ac1911d
Set permissions on existing directory
...
Previously, an existing directory would not have its permissions
modified by the __directory type. This change removes exiting early when
$state_is matches $state_should
2013-01-16 20:46:23 -07:00
f41b029ade
Eliminiate excess output from machine explorer
...
command -v emits a string to stdout, silence this since we are only
interested in the return code.
2013-01-12 19:35:09 -08:00
Jake Guffey
7d7ad2630c
Fix issue #147
...
--state absent should imply --stopped.
2012-12-11 11:15:21 -05:00
Nico Schottelius
67c7351bec
install the right package, not pyro...
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-09 11:49:26 -08:00
Nico Schottelius
3167ececc6
add owner/group support to __git
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-05 23:16:03 +01:00
Nico Schottelius
8b91e3116a
create working version of __git
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-12-05 23:07:21 +01:00
Nico Schottelius
5a3dc38e60
Merge branch 'master' into type__git
2012-12-05 22:46:07 +01:00
Nico Schottelius
f37f3d201c
__ssh_authorized_key has been superseeded by __ssh_authorized_keys
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-30 14:41:47 +01:00
Steven Armstrong
1ef5bcaa74
new type: __ssh_authorized_keys - manage ssh authorized_keys files
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-30 11:59:38 +01:00
Nico Schottelius
868421bf16
Update examples to match new parameters
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-30 10:01:37 +01:00
Nico Schottelius
1bd27fffae
__jail: started -> stopped, correct help output
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-27 10:57:10 +01:00
Nico Schottelius
fd8fdf8b54
Merge branch 'master' into type__jail_boolean
2012-11-27 08:58:14 +01:00
Nico Schottelius
b996dcbae1
bugfix __qemu_img
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-19 17:42:39 +01:00
Nico Schottelius
8408f433e9
remove type from here - goes into cdist-nico repo
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-19 17:27:35 +01:00
Nico Schottelius
a6452cfabd
rename type to reflect new environment
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-19 17:24:38 +01:00
Nico Schottelius
3dfad32d4c
add new type: __localch_kvm_vm
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-19 17:24:01 +01:00
Nico Schottelius
d4fc49fa6b
begin manpage
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-19 15:13:57 +01:00
Nico Schottelius
d419722a24
adapt documentation to use boolean parameter as well
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-19 13:43:45 +01:00
Nico Schottelius
bb19902581
Merge branch 'master' into type__jail_boolean
2012-11-19 13:40:59 +01:00
Nico Schottelius
4718b81a08
Documentation cleanup (old pre-boolean variant)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-19 13:40:35 +01:00
Steven Armstrong
7f0ae7928a
fix state explorer to properly detect already existing ppa
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-19 13:05:23 +01:00
Nico Schottelius
13968d16f6
change __jail to boolean, fixes #128
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-19 10:36:52 +01:00
Nico Schottelius
327a0f2844
remove --groups from __user type
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-18 23:31:19 +01:00
Steven Armstrong
b0ac5fe78d
update __jail type to match changed signature of __directory: fixes #135
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-16 21:18:08 +01:00
Steven Armstrong
28e8632097
new type: __user_group: manage user groups
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-16 15:31:33 +01:00
Steven Armstrong
e4910933b1
__apt_ppa: /enabled/present/ -e /disabled/absent/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-16 14:56:20 +01:00
Nico Schottelius
e6bf226036
convert __rvm_gmeset to boolean parameter
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-15 17:47:06 +01:00
Nico Schottelius
80c6592ec8
add hints to related manpages
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-15 09:49:37 +01:00
Nico Schottelius
482ec3c5d8
make --default boolean in type __rvm_ruby
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 19:27:17 +01:00
Nico Schottelius
3d4bb3837f
documentation cleanups
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 19:22:02 +01:00
Nico Schottelius
0eda57986f
remove parameter changing code in __key_value (fixes #114,#36)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 18:28:58 +01:00
Nico Schottelius
344e08ddda
Archive __autofs types ( fixes #116 )
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 18:22:25 +01:00
Nico Schottelius
47424bf200
update __package* manpages
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 18:15:15 +01:00
Nico Schottelius
13d6644966
do not report errors on missing gemset
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 18:10:15 +01:00
Nico Schottelius
347c620eed
indent
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 18:08:03 +01:00
Nico Schottelius
aeff2bcb0f
indention
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 18:06:11 +01:00
Nico Schottelius
82830f191d
link __process to __start_on_boot and vice versa
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 18:04:49 +01:00
Nico Schottelius
7814ece7b7
remove parameter changing code
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 18:01:30 +01:00
Nico Schottelius
2cfa046cdd
indentions, whitespace
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 17:57:47 +01:00
Nico Schottelius
8ab408f890
remove parameter change code
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 17:52:05 +01:00
Nico Schottelius
7a44f30574
simplify manifest
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 17:47:55 +01:00
Nico Schottelius
a0add17cf8
++exit 1
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 17:44:54 +01:00
Nico Schottelius
265d1af56a
rename vm to diskimage, ensure state is setup
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 17:40:39 +01:00
Nico Schottelius
ace897de25
simplify timezone manifest
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-07 17:28:27 +01:00
Steven Armstrong
6adb20b829
__ssh_authorized_key: /installed/present/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-07 16:57:31 +01:00
Steven Armstrong
324a88c435
__timezone: set timezone in /etc/timezone on debuntu
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-07 16:57:31 +01:00
Steven Armstrong
f769b395c2
__file: implement --state exists
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-07 16:57:31 +01:00
Steven Armstrong
8f525fbc83
__apt_update_index: ignore top level directory
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-07 16:57:30 +01:00
Steven Armstrong
7e951fd4d1
__apt_ppa: /installed/present/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-07 16:57:30 +01:00
Steven Armstrong
03cc2a63b1
types to handle autofs maps
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-07 16:57:30 +01:00
Steven Armstrong
7a1f81dc7b
remove install types
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-11-07 16:54:34 +01:00
Nico Schottelius
b6f61a632f
__postgres_role: switch to boolean, use shortcut version
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 22:56:45 +01:00
Nico Schottelius
03d224c74c
add hint to db from role
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 22:43:19 +01:00
Nico Schottelius
5308d2cfe7
link to role from database
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 22:35:52 +01:00
Nico Schottelius
0eac132b83
adjust gemset explorer to work with new rvm version ( fixes #108 )
...
See https://github.com/wayneeseguin/rvm/issues/1285
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 21:46:08 +01:00
Nico Schottelius
df88d98ea0
many cleanups to __rvm* types
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 17:35:13 +01:00
Nico Schottelius
d5955bbb4d
reference dependency package as well
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 17:19:30 +01:00
Nico Schottelius
c779e16fe2
__rvm: use shortcut version
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 17:18:57 +01:00
Nico Schottelius
d97f6794d0
run rvm as user, not as root
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 17:16:25 +01:00
Nico Schottelius
13fc5aa8f5
use shortcut version to exit if nothing is to be done
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 17:15:16 +01:00
Nico Schottelius
5eac7512a5
fix dependencies for __rvm_ruby
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 17:04:00 +01:00
Nico Schottelius
384a20ffbc
building ruby requires bzip2 to be present to extract the tar.bz2
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-02 16:58:52 +01:00
Nico Schottelius
081d3aea37
remove manifests, which are not needed anymore (in production without them for some months)
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-11-01 11:09:45 +01:00
Nico Schottelius
c25c986992
re-add sample, but longer name
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-30 16:33:18 +01:00
Nico Schottelius
92d21a4625
remove init.sample from this place in the distribution
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-30 16:14:02 +01:00
Nico Schottelius
63573a9797
make package_data work
...
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-10-29 22:50:27 +01:00