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

default_attributes(
  :networking => {
    :interfaces => {
      :bond => {
        :interface => "bond0",
        :bond => {
          :slaves => %w[eno1 enp5s0f0]
        }
      },
      :internal_ipv4 => {
        :interface => "bond0.2801",
        :role => :internal,
        :family => :inet,
        :address => "10.0.0.20"
      },
      :external_ipv4 => {
        :interface => "bond0.2800",
        :role => :external,
        :family => :inet,
        :address => "172.16.58.3"
      }
    }
  },
  :postgresql => {
    :versions => ["13"],
    :settings => {
      :defaults => {
        :listen_addresses => "10.0.0.20",
        :work_mem => "160MB",
        :maintenance_work_mem => "10GB",
        :random_page_cost => "1.5",
        :effective_cache_size => "60GB",
        :effective_io_concurrency => "256",
        :fsync => "off"
      }
    }
  },
  :nominatim => {
    :state => "standalone",
    :dbadmins => %w[lonvia tomh],
    :dbcluster => "13/main",
    :postgis => "3",
    :enable_backup => true,
    :flatnode_file => "/ssd/nominatim/nodes.store",
    :config => {
      :tokenizer => "icu"
    },
    :tablespaces => {
      "dosm" => "/ssd/tablespaces/dosm",
      "iosm" => "/ssd/tablespaces/iosm",
      "dplace" => "/ssd/tablespaces/dplace",
      "iplace" => "/ssd/tablespaces/iplace",
      "daddress" => "/ssd/tablespaces/daddress",
      "iaddress" => "/ssd/tablespaces/iaddress",
      "dsearch" => "/ssd/tablespaces/dsearch",
      "isearch" => "/ssd/tablespaces/isearch",
      "daux" => "/data/tablespaces/daux",
      "iaux" => "/data/tablespaces/iaux"
    }
  }
)

run_list(
  "role[ucl]",
  "role[nominatim]"
)
<commit_msg>put pummelzacken back into production<commit_after>name "pummelzacken"
description "Master role applied to pummelzacken"

default_attributes(
  :networking => {
    :interfaces => {
      :bond => {
        :interface => "bond0",
        :bond => {
          :slaves => %w[eno1 enp5s0f0]
        }
      },
      :internal_ipv4 => {
        :interface => "bond0.2801",
        :role => :internal,
        :family => :inet,
        :address => "10.0.0.20"
      },
      :external_ipv4 => {
        :interface => "bond0.2800",
        :role => :external,
        :family => :inet,
        :address => "172.16.58.3"
      }
    }
  },
  :postgresql => {
    :versions => ["13"],
    :settings => {
      :defaults => {
        :listen_addresses => "10.0.0.20",
        :work_mem => "160MB",
        :maintenance_work_mem => "10GB",
        :random_page_cost => "1.5",
        :effective_cache_size => "60GB",
        :effective_io_concurrency => "256",
        :fsync => "on"
      }
    }
  },
  :nominatim => {
    :state => "standalone",
    :dbadmins => %w[lonvia tomh],
    :dbcluster => "13/main",
    :postgis => "3",
    :enable_backup => true,
    :flatnode_file => "/ssd/nominatim/nodes.store",
    :config => {
      :tokenizer => "icu"
    },
    :tablespaces => {
      "dosm" => "/ssd/tablespaces/dosm",
      "iosm" => "/ssd/tablespaces/iosm",
      "dplace" => "/ssd/tablespaces/dplace",
      "iplace" => "/ssd/tablespaces/iplace",
      "daddress" => "/ssd/tablespaces/daddress",
      "iaddress" => "/ssd/tablespaces/iaddress",
      "dsearch" => "/ssd/tablespaces/dsearch",
      "isearch" => "/ssd/tablespaces/isearch",
      "daux" => "/data/tablespaces/daux",
      "iaux" => "/data/tablespaces/iaux"
    }
  }
)

run_list(
  "role[ucl]",
  "role[nominatim]"
)

{'fraction_non_alphanumeric': 0.19429539678057045, 'fraction_numerical': 0.030499858796950014, 'mean_word_length': 2.137289636846767, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 97, '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': '1739803', 'n_tokens_mistral': 1372, 'n_tokens_neox': 1313, 'n_words': 196}