Sha256: 0461da4f910a402df8d5ebaa13a70be93c5bfd97dae8f086e79ee3b6b353db9a

Contents?: true

Size: 760 Bytes

Versions: 38

Compression:

Stored size: 760 Bytes

Contents

#!/usr/bin/ruby
##
## mysql-replication.rb
##
## This script uses facter to setup mysql replication based upon the
#facts mysql_master and mysql_repl_dbs
##
## It is currently in beta
##
#
## 1) Require the relevant libraries
require 'rubygems'
require 'facter'
#
## 2) Get the relevant facts and echo them to the screen
puts "Getting facts"
#begin
       Facter.loadfacts()
      puts "Facts received"
      puts  Facter.ipaddress
#rescue
#      Facter.loadfacts()
#      puts "running rescue"
#end

#                                mysql_master = Facter.value('mysql_master')
#                                mysql_repl_dbs = Facter.value('mysql_master')
#
#                                puts "Master Server: #{mysql_master}\nDatabases: #{mysql_repl_dbs}"

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
HeSYINUvSBZfxqA-veewee-0.203.3 trials/f.rb
HeSYINUvSBZfxqA-veewee-0.203.2 trials/f.rb
HeSYINUvSBZfxqA-veewee-0.203.1 trials/f.rb
veewee-0.2.3 trials/f.rb
veewee-0.2.2 trials/f.rb
veewee-0.2.1 trials/f.rb
HeSYINUvSBZfxqA-veewee-0.2.0.2 trials/f.rb
veewee-0.2.0 trials/f.rb
veewee-0.1.29 trials/f.rb
veewee-0.1.28 trials/f.rb
veewee-0.1.27 trials/f.rb
veewee-0.1.26 trials/f.rb
veewee-0.1.25 trials/f.rb
veewee-0.1.24 trials/f.rb
veewee-0.1.23 trials/f.rb
veewee-0.1.22 trials/f.rb
veewee-0.1.21 trials/f.rb
veewee-0.1.20 trials/f.rb
veewee-0.1.19 trials/f.rb
veewee-0.1.18 trials/f.rb