<commit_before>name "grisu"
description "Master role applied to grisu"

default_attributes(
  :networking => {
    :interfaces => {
      :internal_ipv4 => {
        :interface => "bond0",
        :role => :internal,
        :family => :inet,
        :address => "10.0.32.20",
        :bond => {
          :slaves => %w[em1 em2]
        }
      },
      :external_ipv4 => {
        :interface => "bond0.214",
        :role => :external,
        :family => :inet,
        :address => "192.168.3.11"
      },
      :external_ipv6 => {
        :interface => "bond0.214",
        :role => :external,
        :family => :inet6,
        :address => "fc00:db20:35b:7399::5"
      }
    }
  },
  :openvpn => {
    :address => "10.0.16.5",
    :tunnels => {
      :ic2bm => {
        :port => "1194",
        :mode => "server",
        :peer => {
          :host => "ironbelly.openstreetmap.org"
        }
      },
      :aws2bm => {
        :port => "1195",
        :mode => "server",
        :peer => {
          :host => "fafnir.openstreetmap.org"
        }
      },
      :ucl2bm => {
        :port => "1196",
        :mode => "server",
        :peer => {
          :host => "ridley.openstreetmap.org"
        }
      }
    }
  },
  :planet => {
    :replication => "disabled"
  }
)

run_list(
  "role[bytemark]",
  "role[hp-dl180-g6]",
  "role[gateway]",
  "role[web-storage]",
  "role[planet]",
  "recipe[openvpn]"
)<commit_msg>Add backup role to grisu<commit_after>name "grisu"
description "Master role applied to grisu"

default_attributes(
  :networking => {
    :interfaces => {
      :internal_ipv4 => {
        :interface => "bond0",
        :role => :internal,
        :family => :inet,
        :address => "10.0.32.20",
        :bond => {
          :slaves => %w[em1 em2]
        }
      },
      :external_ipv4 => {
        :interface => "bond0.214",
        :role => :external,
        :family => :inet,
        :address => "192.168.3.11"
      },
      :external_ipv6 => {
        :interface => "bond0.214",
        :role => :external,
        :family => :inet6,
        :address => "fc00:db20:35b:7399::5"
      }
    }
  },
  :openvpn => {
    :address => "10.0.16.5",
    :tunnels => {
      :ic2bm => {
        :port => "1194",
        :mode => "server",
        :peer => {
          :host => "ironbelly.openstreetmap.org"
        }
      },
      :aws2bm => {
        :port => "1195",
        :mode => "server",
        :peer => {
          :host => "fafnir.openstreetmap.org"
        }
      },
      :ucl2bm => {
        :port => "1196",
        :mode => "server",
        :peer => {
          :host => "ridley.openstreetmap.org"
        }
      }
    }
  },
  :planet => {
    :replication => "disabled"
  }
)

run_list(
  "role[bytemark]",
  "role[hp-dl180-g6]",
  "role[gateway]",
  "role[web-storage]",
  "role[backup]",
  "role[planet]",
  "recipe[openvpn]"
)
{'fraction_non_alphanumeric': 0.1948593261549149, 'fraction_numerical': 0.04654393886766238, 'mean_word_length': 1.6470588235294117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '4351850', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1051, 'n_words': 165}