<commit_before>#!/bin/bash
#ams
#cn (kind of zone)
# X external
#mozilla.com
#  ad
#  akl1
#  ams1
#  any1
#  lon1
#  mtv1
#  pao1
#  par1
#  par2
#  pek1
#  pek2
#  phx1
#  scl1
#  scl2
#  scl3
#  services
#  sfo1
#  sjc1
#  sjc2
#  SOA
#  svc
#  tor1
#  tpe1
#  weave
#  yvr1

#mozilla.net
#mozilla.org
#mpt-dmz
#named.ca
#named.local
#named.stats
#offices
#phx
#slave-config
#slaves
#templates
#weave
#zeusglb
#zones

REL_PATH=/var/www/playdoh-env
export REL_PATH
SYSADMINS=$HOME
export SYSADMINS
BZ=$REL_PATH/inventory/mdns/migrate/build_migration_configs/bz_legacy.sh
ZONE_CONFIGS=$REL_PATH/inventory/mdns/migrate/zone_configs
rm -rf $ZONE_CONFIGS
mkdir $ZONE_CONFIGS
touch $ZONE_CONFIGS/__init__.py

$BZ cn $SYSADMINS/sysadmins/dnsconfig/cn > $ZONE_CONFIGS/cn_zone_config.py<commit_msg>fixed path (for my setup). Good thing this script is a one off :\<commit_after>#!/bin/bash
#ams
#cn (kind of zone)
# X external
#mozilla.com
#  ad
#  akl1
#  ams1
#  any1
#  lon1
#  mtv1
#  pao1
#  par1
#  par2
#  pek1
#  pek2
#  phx1
#  scl1
#  scl2
#  scl3
#  services
#  sfo1
#  sjc1
#  sjc2
#  SOA
#  svc
#  tor1
#  tpe1
#  weave
#  yvr1

#mozilla.net
#mozilla.org
#mpt-dmz
#named.ca
#named.local
#named.stats
#offices
#phx
#slave-config
#slaves
#templates
#weave
#zeusglb
#zones

REL_PATH=/home/juber # Where the inventory project is located.

export REL_PATH
SYSADMINS=$HOME
export SYSADMINS
BZ=$REL_PATH/inventory/mdns/migrate/build_migration_configs/bz_legacy.sh
ZONE_CONFIGS=$REL_PATH/inventory/mdns/migrate/zone_configs
rm -rf $ZONE_CONFIGS
mkdir $ZONE_CONFIGS
touch $ZONE_CONFIGS/__init__.py

$BZ cn $SYSADMINS/sysadmins/dnsconfig/cn > $ZONE_CONFIGS/cn_zone_config.py
{'fraction_non_alphanumeric': 0.11796407185628742, 'fraction_numerical': 0.023952095808383235, 'mean_word_length': 4.079027355623101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '2941307', 'n_tokens_mistral': 831, 'n_tokens_neox': 809, 'n_words': 152}