From 28544868b29c412418436e9924f301ac210c6236 Mon Sep 17 00:00:00 2001 From: Don Brewer Date: Thu, 27 Mar 2008 14:46:11 -0400 Subject: Adding support for standalone, master and slave mysql instances * Adding config file for UTF8 encoding * A fact called 'mysql_type' needs to be laid down on all mysql nodes. This should just be 'standalone' for now. * This module now requires the passwords module * Added ip variable to slave for master 2 * include passwords class and passwords.pp Brenton: * turned off resource collectiong since it broke us needlessly. * Added a definition for creating datasources. User's of this definition should not have to worry about what type of mysql (master,slave,etc) is running. --- manifests/variables.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 manifests/variables.pp (limited to 'manifests/variables.pp') diff --git a/manifests/variables.pp b/manifests/variables.pp new file mode 100644 index 0000000..5efc726 --- /dev/null +++ b/manifests/variables.pp @@ -0,0 +1,13 @@ +class variables { + $mysql_root_user = "root" + $mysql_root_database = "mysql" + $mysql_root_local_host = "localhost" + $mysql_global_host = "%" + + # Replication MySQL User + $mysql_replication_user = "replication" + + # Replication MySQL Server ID's + $mysql_master_server_id ="1" + $mysql_slave_server_id ="2" +} -- cgit