Displaying 7 results from an estimated 7 matches for "mysql_password".
2011 Aug 11
6
need urgent help with including Ruby DSL class from puppet manifests
Hi,
I have a Ruby class in "nagios" module - it''s located in nagios/
manifests/ssa_nagios_checks.rb
and looks like this
hostclass :ssa_nagios_checks do
...
end
In nagios/manifests/init.pp I have
class nagios::server {
...
include ssa_nagios_checks
...
}
And I get the following error
....
debug: importing ''/etc/puppet/modules/nagios/manifests/
2012 Jul 19
3
Problems granting privileges with puppetlabs/mysql
...able to divine the correct way to do this. I''ve
tried a number of different variations, but my user doesn''t get the
repl_slave_priv on my user table... This is the relevant part of my
manifest:
-----------------
database_user { "repl_slave@%":
password_hash => mysql_password('' ... ''),
}
database_grant { "repl_slave@%/*.*":
privileges => [''repl_slave_priv''],
}
----------------
The puppet run doesn''t raise an error, it says:
notice:
/Stage[main]/Db::Repl_user/Database_grant[repl_slave@%/*.*]/privileges:
p...
2009 May 05
1
Asterisk cdr_odbc problems
...river = /usr/lib/odbc/libmyodbc.so
Setup = /usr/lib/odbc/libodbcmyS.so
/etc/odbc.ini:
[asterisk]
Description = asterisk ODBC
Driver = MySQL
Socket = /var/run/mysqld/mysqld.sock
Server = localhost
User = asterisk
Password = mysql_password
Database = asterisk
Option = 3
#Port =
Trace = On
TraceFile = /var/log/odbc-asterisk
/etc/asterisk/res_odbc.conf:
[asterisk]
enabled => yes
dsn => asterisk
username => asterisk
password => exodus_2009
pre-connect => yes
/etc/asterisk/cdr_o...
2009 Dec 14
1
AGI with PHP
....conf file looks like:
exten => 111,1,Answer()
exten => 111,n,AGI(GoTalk.php)
exten => 111,n,NoOp(Result is : ${callnum})
exten => 111,n,HangUp()
My php file is:
#!/usr/bin/php
<?php
$start = '5';
$mysql_host = 'localhost';
$mysql_user = 'username';
$mysql_password = 'password';
$my_database = 'asteriskcdr';
$dbtable = 'cdr';
$from_date = '20091205000000';
$to_date = '20100104235959';
$callnum = '0';
$minutes = '0';
$query_duration = "SELECT SUM(billsec) FROM $dbtable WHERE calldate >= $from_d...
2013 Dec 09
0
mysql module v 1.0 mysql_grant - database_grant
...e:
mysql_database{ [ ''biosql'' , ''biosql-test'' ] :
ensure => present,
require => Class[''mysql::server''],
}
database_user { ''biocore@%.XXXXX'' :
password_hash => mysql_password(''XXXXX'') ;
}
database_grant { [ ''biocore@%.XXXXXX/biosql'' , ''biocore@%.XXXX/biosql-test'' ] :
privileges => [''all''] ;
}
now I must write soemthing like:
mysql_grant { ''bi...
2013 Mar 21
6
How we can create two database Using same credetial using Puppet
Hello All,
I wanted to create two two MySQL database with same user credential using
Puppet-MySQL. How can I achieve this? Please find my script below.
class mysql::vsdatabase {
include mysql
mysql::db { ''vidispine'':
user => ''user'',
password => ''user123'',
host => ''db.<hostname>.com'',
}
}
How can I add
2012 Feb 06
3
Passing class parameters to hiera
I am using puppet 2.6.11 and want to pass parameter for implementing
sudo for mulitple users. So here is my simple code, which I would like
to pass to hiera to specify user name lookup. Appreciate any help,
thanks in advance.
class sudo( $name) {
#Class:: sudo
#
#
package { "sudo": ensure => present, }
file { "/etc/sudoers":
owner => root,
group => root,