I'm using the phpvars lens for a cacti file, trying to set the password.

The file entry should look like:
$database_password = "testpass";

I can successfully set and save the password with quotes, while using
augtool:
augtool> set /files/usr/share/cacti/include/config.php/$database_password
"\"testpass\""

But when using the augeas type with the following:
changes => 'set \$database_password "\"test\""',

The file entry looks like:
$database_password = \"test\";

I've tried a bunch of escape iterations and quoting options.  So far I've
not been able to get this to work properly.

Is there some way I can get this to print the variable with quotes, using
puppet/augeas?
Thanks,

-- 
Kent Brede

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2BnSE3_EfyMBoV%2BP8EKeLWsEbRSdVVWH50p_-eK854QEDEn%2BNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to