Augeas in Puppet for mysql config failing
Okay, so I've managed to get SOMETHING happening; but without probably fully understanding what's going on.
Prior to asking the question above, I checked on the stock lenses available, and I saw both the PHP and MySQL lenses in the list at http://augeas.net/stock_lenses.html
Neither of the links work that SHOULD be taking you through to the documentation - so, knowing that the PHP lens worked in a 'set section/setting value'
type of way, I was assuming it's the same for the MySQL lens.
Not exactly the case. The following syntax worked for me.
augeas { 'my.cnf': require => [ Package['mysql-server'], Package['libaugeas-ruby'], ], notify => Service['mysql'], context => '/files/etc/mysql/my.cnf', changes => [ "set target[.='mysqld']/bind-address 0.0.0.0", ],}
The following two resources were where I found the information. If anybody has any other documentation they can point me to, I'd be more than grateful.
This gave me an idea of what the syntax probably should be: - https://www.adammalone.net/post/playing-augeas-fun-and-profit#.VXAEy1yqpBc
And lines 62-65 of this script reaffirmed it for me: - https://github.com/example42/puppet-mysql/blob/master/manifests/augeas.pp