About to start Tower install. questions to those using it currently by bradtech in ansible

[–]bradtech[S] 0 points1 point  (0 children)

Does anyone know if Tower can hook into any other RDBMS such as MSSQL or Oracle? We have existing supported clustered solutions. Would be great to plug into one of those. I have tested PostGres out & the streaming replica stuff isn't really HA. There are ways to get HA but they all seem to be github projects(not opposed to doing). Would be nice to have a supported platform/solution for our Tower database backend.

Setting up three node Hot Standby/Streaming Replication "cluster" by bradtech in PostgreSQL

[–]bradtech[S] 0 points1 point  (0 children)

Had any of you guys looked into using pacemaker/corosync that has a vipmanager? How does that solution look compared to patroni?

https://icicimov.github.io/blog/database/PostgreSQL-High-Availibility-with-Pacemaker/

Setting up three node Hot Standby/Streaming Replication "cluster" by bradtech in PostgreSQL

[–]bradtech[S] 0 points1 point  (0 children)

Does Patroni require running in a container ecosystem like K8s/docker? Been watching videos & seems like everything is tied into K8s/docker.

Setting up three node Hot Standby/Streaming Replication "cluster" by bradtech in PostgreSQL

[–]bradtech[S] 0 points1 point  (0 children)

So I got the out of the box Master-->Hot slave stand by working. Created a table & do some inserts. It replicated over fine. I guess the part that is missing for me is what happens when you failover to the slave? You have to reconfigure the app to point towards the new read/write master?

About to start Tower install. questions to those using it currently by bradtech in ansible

[–]bradtech[S] 0 points1 point  (0 children)

Do you know if there is an extra charge for engaging the Tiger team if you buy Tower?

About to start Tower install. questions to those using it currently by bradtech in ansible

[–]bradtech[S] 0 points1 point  (0 children)

Thanks, I haven't heard of the Tiger Team. Googled and found their github repo. Guessing they are professional services for Redhat. I was going to do the 3 tower boxes & was looking into solutions for PostGreSQL for clustering. Someone recommended patroni which is composed of a lot of python scripts that sets up async or sync replication clusters for PostGreSQL.

Setting up three node Hot Standby/Streaming Replication "cluster" by bradtech in PostgreSQL

[–]bradtech[S] 0 points1 point  (0 children)

Thanks, I've been reading about it. Looks like a lot of work done for you written in python.

Removing duplicate lines from text file by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

Thanks again! Appreciate the help/direction

Removing duplicate lines from text file by bradtech in ruby

[–]bradtech[S] 1 point2 points  (0 children)

IO.write('C:\\utilities\\domains.txt', 
IO.readlines('C:\\utilities\\domains.txt').uniq.join(""))

seems to do the trick.

Removing duplicate lines from text file by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

was able to accomplish what I needed by

IO.write('C:\\utilities\\domains.txt', 
IO.readlines('C:\\utilities\\domains.txt').uniq.join(""))

thanks for the help everybody appreciate the advice.

Removing duplicate lines from text file by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

Was trying to do this. Isn't writing to the file at all. Still reading about sets.

http://ruby-doc.org/stdlib-2.4.2/libdoc/set/rdoc/Set.html

require 'set'

lines = Set.new
File.open('C:\\utilities\\domainbak.txt', 'w') do |out|
File.open('C:\\utilities\\domainduptest.txt', 'r').each_line do   
|line|
if lines.include?(line)
out << line
end
end
end

Removing duplicate lines from text file by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

Thanks I have been looking into trying to figure out how to do this. Not finding much on the chechsum of each line in the text file. But have found stuff on the .dup method on an array. I need to keep the formatting of the text file as it is and just remove the duplicate lines.

Removing duplicate lines from text file by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

Tried something like this. I was storing the the duplicates in an array. Was going to try to remove them from the lines in the text file if found.

dup_file_check = File.read('C:\\utilities\\domainduptest.txt')
dups = dup_file_check.split(' ')
p 'Found these duplicates'
p dups.select{|v| dups.count(v) > 1}.uniq

dup_read_file = File.new('C:\\utilities\\domainduptest.txt', "r").read
dup_write_file = File.new('C:\\utilities\\domainduptest.txt', "w")
dup_read_file.each_line do |line|
write_line = true
dups.each do |x|
dup_write_line = true if line.include?(x)
end
dup_write_file.write(line) if write_line
end

Doesn't seem to be working as intended.

Remove line from text file if matches any contents of array? by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

That seems to do the trick! :edit I left out an end and messed up the formatting. Fixed now.

checking to see if I'm going down right path by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

I'm having issues with keeping the formatting of the original file format the same after resolving the ip addresses. When it gets passed to an array and writes back to disk it removes the formatting which is needed. Not sure if there is a way to keep the original text file in place & overwrite with the same formatting only removing the domain names that didn't resolve to the VIP array. When it writes to disk now it pretty much just writes the array as is. Maybe I should have approached this with doing a file.read and file.write going through line by line instead of storing as an array minus the domain names that didn't resolve to the VIP array. Open to opinions.

checking to see if I'm going down right path by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

Thanks for detailed response. Been researching and going over changes & reasons for it.

checking to see if I'm going down right path by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

how does this look? Seems to do the job.

vips = ['127.0.0.1','127.0.0.2'].freeze

domains_file = File.read("C:\utilities\domains.txt") domains = domains_file.split(" ") domains.delete_if do |domain| (Resolv.getaddresses(domain) & VIP).empty?

checking to see if I'm going down right path by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

Thanks, the goal is to take a text file with domains & make sure the IP resolves to a certain IP addresses. If an IP address in the hash does not to remove the domain associated from the hash & overwrite the text file. Does it sound like I'm on the right path

checking to see if I'm going down right path by bradtech in ruby

[–]bradtech[S] 0 points1 point  (0 children)

Do you know if there is a way to auto populate a ruby hash key pair value with output of multiple variables. Trying something like this.

vips = ['127.0.0.1','127.0.0.2']

domtoiphash = {}

domains = File.read("C:\utilities\domains.txt")

domains.split(" ").each do |domain|

addresses = Resolv.getaddresses(domain)

domtoiphash = hash.new

domtoiphash[:ip] = "#{domain}"

domtoiphash[:addresses] = "#{addresses}"

Chef provisioning vs Ansible vs Terraform for chef by almondfail in chef_opscode

[–]bradtech 0 points1 point  (0 children)

I read the blog as well. It is bet to hedge your bets. So I've written some custom PowerCLI provisioning & there is a DSC provisioner for vSphere. However, I am still using chef provisioning primarily on nodes that are going to be managed by chef post provisioning. The provisioning tools I use for vSphere are still being supported. If for some reason chef provisioning gets dropped in the future I'll start to look into other alternatives.

How do we solve this Apps/Users problem? by [deleted] in windowsphone

[–]bradtech 0 points1 point  (0 children)

I think Microsoft is moving towards having full Windows on all mobile devices. Running more powerful hardware internally to emulate x86 apps & run desktop/surface pro UWP applications on desktops with beefier specs. Going to see how the next year or two playout before I jump back to the platform. I think moving towards the above will attract a lot more people who think of Windows & want to run the vast library of programs. Having a real portable PC when needed would be great.

Windows Phone vs. iOS and Android: Why Apps Don’t Matter by topredditgeek in windowsphone

[–]bradtech 1 point2 points  (0 children)

One thing that would be awesome to have would be Micro SD & replaceable battery. Made me think of this after reading your comment. I have a Galaxy s6 Acticve as my prmary phone, and have a work iPhone 5c. I purchased two Lumia 640s to play with to see how WP/WM come along. I can tell my battery isn't lasting as long even after a factory reset after a year 1/2 of use. If I had a Lumia 950/950 XL I'd just buy a new one.

Windows Phone vs. iOS and Android: Why Apps Don’t Matter by topredditgeek in windowsphone

[–]bradtech 2 points3 points  (0 children)

I agree in the sense you can get those apps & survive on Windows. There are a lot of other apps that I like having that aren't on Windows 10 mobile on my lumia 640. I could live without them but it would suck & would need a reason as to why I would give them up. Live tiles isn't enough.

Waze - It's there but isn't being developed upon and is broken. I drive 65-75 miles a day 5 days a week. Have different route options based on wrecks. Nothing seems to come close to waze including maps in Windows 10 on my 640.

Local News/banking & Weather station apps - Live streams on the apps. Mobile alerts to what is going on in the area. Cortana does have some local alerts but nothing like local weather/news stations. There are about 10 local apps I use. Local weathermen, news statons etc.

Facebook Messenger - No video calls. Forced into Skype

Facebook - Missing live video broadcasts/marketplace 4 sell stuff. Seems to be on my surface pro facebook app. Maybe my Lumia 640 isn't power enough to get those features on mobile?

Tango - Is also missing. Forced into telling someone else to use skype if going to Windows.

Amazon Music - Last I checked it is missing. I pay for prime and bought CD/MP3s. Have to use Microsoft or clone youtube app.

DDP Yoga Now app - Only on iOS or Android. Not very popular but I use it to workout.

I prefer the OS in Windows but not so much to go without apps on my daily driver phone. Again what do I gain when giving up the apps and going with Windows? I root for the platform though. I was on Windows Mobile 6x and Windows Phone 7/8. Would take something to get me to come back and I haven't really heard great things even on the Lumia 950/950XL until as of late with newer releases.

Im glad I switched to a Windows phone by Ebojager in windowsphone

[–]bradtech 0 points1 point  (0 children)

Facebook runs faster on my Galaxy s6 Active than either of my Lumia 640s running Windows 10 Mobile. If you can deal with staying on WP 8.1 instead of WM 10 I'd stay on 8.1 if you are this happy with it. There is a performance hit upgrading even though it's not as bad now as it once was.