Commit graph

3272 commits

Author SHA1 Message Date
Nico Schottelius
612fb4cb7b fix type and add fixme
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 17:27:38 +02:00
Nico Schottelius
e05c5e699c always call umask 077 before doing stuff on the remote side
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 17:24:58 +02:00
Nico Schottelius
1b8b54f84f use os.umask locally
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 17:21:58 +02:00
Nico Schottelius
67a95b50aa cool solution for variable sending
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 16:01:03 +02:00
Nico Schottelius
9b809ce9a2 Merge branch 'git-version' of https://github.com/evax/cdist
Conflicts:
	lib/cdist/__init__.py

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 15:35:11 +02:00
Nico Schottelius
02bd4fdf3f add template for tutorial for remote-exec-copy
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 15:10:02 +02:00
Nico Schottelius
26d7eab852 document change + manpage
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 15:06:04 +02:00
Nico Schottelius
9f319ae121 support passing remote_{exec, copy} to context
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 14:55:11 +02:00
Nico Schottelius
108283bbeb add default values in argparse
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 13:01:31 +02:00
Nico Schottelius
c7fbdc8195 add --remote-exec and --remote-copy to command line args
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-22 12:40:38 +02:00
Nico Schottelius
ab53f471f8 ++date
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-18 16:42:14 +02:00
Nico Schottelius
cd79d2b1eb ++version
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-18 16:41:51 +02:00
Nico Schottelius
f873f12d77 ++changes(2.0.10)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-18 16:39:55 +02:00
Nico Schottelius
dee266aca0 ignore "no crontab for ..." message
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-18 16:39:13 +02:00
Evax Software
5c70018411 switch the __rvm type to the new present/absent state scheme 2012-05-18 10:55:28 +02:00
Evax Software
196fb7e656 use new rvm install command (fixes #67) 2012-05-18 10:43:39 +02:00
Nico Schottelius
dfd60ca837 __package uses present/absent
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-18 10:08:19 +02:00
Evax Software
f1e8bfb8a7 improve version printing when run from a checkout 2012-05-15 09:58:45 +02:00
Nico Schottelius
d02a1374dd ++changes(2.0.10)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-14 18:32:55 +02:00
Nico Schottelius
b2c21e24a9 publishing more verbose
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-14 18:32:45 +02:00
Nico Schottelius
c1e1e7b8cb Merge pull request #62 from lamby/master
Freenode.net, not freenode.org.
2012-05-14 09:18:50 -07:00
Chris Lamb
42bcbc532b Freenode.net, not freenode.org.
Signed-off-by: Chris Lamb <lamby@debian.org>
2012-05-14 16:00:02 +01:00
Nico Schottelius
d109db31d0 Merge pull request #61 from lamby/master
Fixup some typos
2012-05-10 10:23:36 -07:00
Chris Lamb
1557630e91 s/specifiend/specified/
Signed-off-by: Chris Lamb <lamby@debian.org>
2012-05-10 16:20:43 +00:00
Chris Lamb
69badd6f2d s/nows about/knows about/
Signed-off-by: Chris Lamb <lamby@debian.org>
2012-05-10 15:51:22 +00:00
Nico Schottelius
91e1efe512 Merge pull request #60 from asteven/issue_dependency-inheritance-3
fix autorequire dependency handling
2012-05-03 04:43:30 -07:00
Steven Armstrong
7d61b77708 fix autorequire dependency handling
- inherit explicit requirements that the user defined himself
- but _not_ implicit requirements that cdist added for autorequire

Changes:
- added new .autorequire property to CdistObject to keep track of implicit autorequire dependencies
- Emulator appends implicit requirements to this .autorequire property
- DependencyResolver preprocess these .autorequire properties before resolving normal dependencies
- refactored and documented DependencyResolver so it's clearer what happens and easier to use from tests
- update test cases to match new DependencyResolver behaviour

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-05-03 10:16:08 +02:00
Nico Schottelius
3d0493bb65 ++changes(2.0.10)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-05-02 15:54:25 +02:00
Nico Schottelius
af27e9424e Merge pull request #53 from jdguffey/__jail
__jail type
2012-05-02 06:53:43 -07:00
Jake Guffey
4b11a6172d Fixed variable naming in /etc/fstab.$name
had referenced $jailbase when meaning to reference $jaildir
2012-04-30 17:29:08 -04:00
Jake Guffey
1a20f0087e Merge branch 'master' into __jail 2012-04-27 16:47:14 -04:00
Jake Guffey
14e851341a Implemented Nico's suggestions
Parameterized {jailbase,jaildir}
Replaced all usages of /usr/jail with $jaildir
Explicitly fail if $os isn't FreeBSD
Removed $__type/files/ as it is pointless to have now
Updated man page
2012-04-27 11:45:34 -04:00
Nico Schottelius
75aea91643 ++changes(2.0.10)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-04-27 11:39:08 +02:00
Nico Schottelius
c24788a452 Merge pull request #51 from pestaa/master
Fix sed for FreeBSD
2012-04-27 02:34:58 -07:00
Nico Schottelius
d3df37920d Merge branch 'issue_dependency-inheritance' of https://github.com/asteven/cdist 2012-04-27 11:16:28 +02:00
Steven Armstrong
2ff286cf1d inherit dependencies from defining object when setting up implicit dependencies through autorequire
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2012-04-25 17:18:16 +02:00
Jake Guffey
131889b454 Added jail_${name}_flags variable
To make future work, such as resource limiting (rctl(8)) easier, added
"-n ${name}" to jail_flags for each jail.
2012-04-23 14:39:26 -04:00
Jake Guffey
d39821782d Copy /root to $jailbase/rw/$name/root
Copies /root to ${jailbase}/rw/${name}/root
Adds /root to /etc/fstab.${name}
2012-04-23 13:43:27 -04:00
Nico Schottelius
bc1a2d769d ++title line
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-04-22 01:20:44 +02:00
Nico Schottelius
32d6cbb7a1 ++todo
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-04-22 01:20:32 +02:00
Jake Guffey
a4c89c5552 Merge branch 'master' into __jail 2012-04-18 13:13:11 -04:00
Jake Guffey
847fc9d8c1 Multiple bugfixes
fixed remote copy command
fixed problem with code-remote when jail_enable wasn't in rc.conf
fixed problem with code-remote when jail_list wasn't in rc.conf
added check to see if /etc/devfs.rules exists before trying to use it
added dependency on __directory/usr/jail
2012-04-11 14:53:28 -04:00
Jake Guffey
f5437ccce6 Bugfix for jail_list
If jail_list wasn't already defined in /etc/rc.conf, gencode-remote wasn't adding the variable to the file.
2012-04-06 13:32:59 -04:00
pestaa
deafcc60e8 Workound lack of pipeline's integrity guarantee. 2012-04-06 18:55:35 +02:00
pestaa
cd5050cc91 Merge branch 'master' of https://github.com/pestaa/cdist
Conflicts:
	conf/type/__start_on_boot/gencode-remote
2012-04-06 11:20:39 +02:00
pestaa
f9c945cc86 Changed tactics. Sed's -i flag is not cross-platform. 2012-04-06 11:15:06 +02:00
Istvan Beregszaszi
cb47a7d56f Fix indenting. 2012-04-06 00:29:14 +03:00
pestaa
0e11583b1e Fix sed argumenting on FreeBSD. While specifying -i flag is optional on GNU sed, it is mandatory on non-GNU variants. In order to keep behavior backward-compatible, the backup file is always removed. 2012-04-05 23:21:11 +02:00
Nico Schottelius
7d2799d958 Make __manifest usable in type manifests
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-04-04 17:21:54 +02:00
Nico Schottelius
689acb4c21 ++changes(2.0.10)
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
2012-04-04 09:47:52 +02:00