Displaying 4 results from an estimated 4 matches for "replace_lin".
Did you mean:
replace_line
2007 Aug 16
6
definitions v. plugins
i was looking at the simple text recipes wiki:
http://reductivelabs.com/trac/puppet/wiki/SimpleTextRecipes
and based on that wrote something that can ensure a certain variable in a
config file is set to a specific value, using a specific delimiter as
requested (defaults to a space). this seems to work great at managing all
sorts of unix and mac config files (sshd_config, hostconfig on macs).
2006 Nov 16
7
Negating or removing classes
...oming back to my ssh key problem, I tried including statements at the
beginning of the class file outside the class definition for the service
that removes the keys if the class is not assigned:
$key = ''big long ssh key''
case tagged("sshkey_service"){
false: {
replace_line { rmkey:
file => ''authorized_keys",
search => $key,
replace => ""
}
<other stuff related to the service>
}
}
class sshkey_service {
append_if_no_such_line { mkkey:
file => "authorized_keys",...
2007 Sep 11
6
Managing rc.conf in FreeBSD?
I''m, still, working on converting my cfengine configs into puppet; one
of the major hang-ups is the lack of any find/replace in puppet.
So for those of you who are using FreeBSD and puppet, how do you
manage you rc.conf?
--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
2007 Apr 30
25
escape regex code
hello,
i wondered if it would not be interesting to have some filters
function in puppet like
filter_integer(), filter_prelregex, filter_text, filter_email or such
so we can validate and make our defines a little more foolproof :)
i particulary see filter_regex as usefull in quite a lot of exec that
manipulates text files. What do you think about this ?
--
Cordialement,
Ghislain