Steven Armstrong
b17a1f0edb
removing and adding keys must be atomic
...
If we delegate this to multiple seprarate objects (e.g. using __line) and the
config run is interrupted after applying only some of them we may leave the
target in some random state.
We may have even locked ourself out of the target.
So remove and add keys ourself so either none are all changes are
applied.
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
10 years ago
Steven Armstrong
eed058426a
fix that stupid stdin is truncated bug again
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
10 years ago
Steven Armstrong
68586a0c3d
new type to manage a single ssh authorized_key entry
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
10 years ago
Steven Armstrong
ffd2935cc4
complete rewrite
...
- add support for authorized_keys options see sshd(8)
- add support for explicit comment after key
- do not allow a key to exist more then once in an authorized_keys file
- remove all conflicting keys
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
10 years ago
Ricardo Catalinas Jiménez
60b2bbf4c9
Fix messaging variables not exported in type manifest
10 years ago
Jake Guffey
6eff4bb898
Implemented telmich's suggestions
...
Using $($__explorer/os), command -v directly
Fix spacing
Fix copyright year
10 years ago
Ricardo Catalinas Jiménez
3223a38889
Fix typo in cdistmarker doc
10 years ago
Jake Guffey
37a8b4af2b
Minor fixes
...
Fixed pkgng_exists explorer (can't reference $__global)
Fixed logic in __package/pkgng_freebsd/gencode-remote
Wasn't installing package if it already exists, but after explorer execution
10 years ago
Jake Guffey
e87b26f2de
Introduce __package_pkgng_freebsd type
...
Create __package_pkgng_freebsd type to handle package management via pkg-ng
Add requirement generation in __package/manifest
Add explorer inside __package to find if pkg-ng is installed on the target
10 years ago
Nico Schottelius
249455f347
also support archlinux in __locale
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Steven Armstrong
3dbe375837
no need to double escape a trailing $; $ by itself is not special in any way
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Steven Armstrong
fff5e48266
/index/match/
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Nico Schottelius
c6ad2e60b3
remove obsolete todos ... people believe they still need to be fixed!
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
37451590b1
add reset to iptables init.d script
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Daniel Heule
614c73e10e
correct date of c
11 years ago
Daniel Heule
ab6502c9df
correct match if / is the last char of a url and the end of the line
11 years ago
Manuel Hutter
981f8068d2
code diet on "memory"
11 years ago
Manuel Hutter
e727824964
`cat` and pipe diet
11 years ago
Manuel Hutter
c36fba4b99
Fixed global explorers on OSX
11 years ago
Nico Schottelius
d294a2c28e
+"
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
6a2f2352be
new type: __ssh_dot_ssh
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
3592a0c6dd
+suse support in __locale and __hostname
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
17504975a6
suse support for __timezone
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Manuel Hutter
8a70343e2c
Fixed wrong mode format for stat on OSX.
11 years ago
Manuel Hutter
90acfc3952
Fixed stat on OSX
11 years ago
Daniel Heule
9bac6da6c9
bugfix emerge type for slotted packages
11 years ago
Nico Schottelius
bbd451433f
add --url support for __package_yum
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
c363fc24de
begin to make OBJECT_MARKER dynamic
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
bfbc621010
++releasedate
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Daniel Heule
3710557c62
bugfix the list of interfaces
11 years ago
Daniel Heule
5a647ec763
Bugfix to auto import pgp keys for new repos, so we can add repos with new keys
11 years ago
Nico Schottelius
9127e06109
CentOS support for __hostname
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Steven Armstrong
8a4cc56266
ensure all files we create end with a single newline
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Daniel Heule
c5152b75f2
rename parameter service_uri to uri as requested
11 years ago
Daniel Heule
831acd16c6
rename parameter repo_uri to uri as requested by nico
11 years ago
Steven Armstrong
40e517f50c
new type __yum_repo to manage yum repositories
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
11 years ago
Jake Guffey
f7a6377b74
Updated man page
...
Included MESSAGES section
11 years ago
Jake Guffey
d12daf10c4
Added messaging support for __jail type
...
prints start/stop/create/delete/onboot to $__messages_out
11 years ago
Nico Schottelius
ad7977e51b
++;;
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
2955ef4344
cleanups
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
b7f8b5e339
catch unsupported state cases in __dog_vdi und __qemu_img
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
b22b581b67
first version of __dog_vdi
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Nico Schottelius
ff8f7ac287
add copied version __dog_vdi from __qemu_img
...
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
11 years ago
Daniel Heule
50316902e3
renamed ll to lastline, hope its now clear what the var is for ..
11 years ago
Daniel Heule
7b6102750e
as requested, replace space with _
11 years ago
Daniel Heule
bae472eb33
fixed some typos in the man page
11 years ago
Jake Guffey
c31278bcd0
Fix __jail explorers
...
Only fixed gencode*, manifest in PR #279 , fixed explorers here
11 years ago
Daniel Heule
b7fb973fa5
bugfix for whitespace stripping, its no more simple
11 years ago
Daniel Heule
f36dc11601
forgot myself to the headers ..
11 years ago
Daniel Heule
5ef27191fc
implementing the $__object and $__object_id on the local and remote
...
execution call, to allow read access to parameter files
11 years ago