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