On Fri, Feb 10, 2012 at 06:24:12PM +, John Mitchell said:
> firewall. I can do a iptables --list to get a list, but I'm not quite
> sure how to set a value on a match for a process. Ideally I'd like to do
> something along the lines of
>
> classes:
> "https_port_allowed" => if_line_in_pro
On Wed, Jan 04, 2012 at 03:12:17PM +0100, davidlee said:
> commands:
> ### If a file was adjusted above, run a command:
> optional_class::
> "/sbin/service my_service restart"
> ifvarclass => "class_indicating_file_change";
Is there any particular reason to use the above s
Hi Michael
On Wed, Jan 04, 2012 at 02:51:48PM +, Michael Gliwinski said:
> bundle common g {
> classes:
> "have_aptitude" not => "have_aptitude";
> }
While I don't know if it's possible to negate an existing class, if what
you're trying to do is force cfengine to unconditionally use a
g => execresult("/usr/bin/makepasswd --chars 12","noshell"),
commands:
set_mysql_root::
"/usr/bin/mysqladmin --password= password $(newpass)"
}
--
Simon Blake si...@katipo.co.nz
Geek for hire
Hi all
Thanks to everybody who replied. I agree that the best way would be to
use an internal cfengine call to generate a random password, but as
there doesn't seem to be an internal way of generating strings with
alphanumeric and or punctuation symbols, I persued the external call.
On Wed, J
Hi all. First post from a cfengine n00b, please be gentle!
I'm trying to set a random mysql root password, and write it to
~root/.my.cnf.
My problem is that I set $(newpass) with a shell call to makepasswd, and
then use it twice. My first use of $(newpass) is in a command, during
pass 1. Th