<commit_before># run this when making a slave a master

rightscale_marker :begin

right_link_tag "redis:role=master" do
  action :publish
end

right_link_tag "redis:role=slave" do
  action :remove
end

log "remove replication file on master"
file "#{node[:redis][:conf_dir]}/conf.d/replication.conf" do
  action :delete
end

log "run replication script on slaves"<commit_msg>psst-84  change order which tags are managed<commit_after># run this when making a slave a master

rightscale_marker :begin

right_link_tag "redis:role=slave" do
  action :remove
end

right_link_tag "redis:role=master" do
  action :publish
end

log "remove replication file on master"
file "#{node[:redis][:conf_dir]}/conf.d/replication.conf" do
  action :delete
end

log "run replication script on slaves"
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.002560819462227913, 'mean_word_length': 5.571428571428571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1877244', 'n_tokens_mistral': 262, 'n_tokens_neox': 256, 'n_words': 87}