Page MenuHomePhabricator
Paste P7692

Hiera files/lines in operations/puppet
ActivePublic

Authored by faidon on Oct 18 2018, 3:22 PM.
$ cat ~/count-hiera.sh
#!/bin/bash
for y in 2015 2016 2017 2018; do
for m in 01 04 07 10; do
git checkout `git rev-list -n 1 --before="$y-$m-01" production` >/dev/null 2>&1
NFILES=$(find hieradata/ -type f | wc -l)
NLINES=$(find hieradata/ -type f -exec cat {} \; | grep -v ^$ | grep -v ^# | wc -l)
echo "$y-$m: $NFILES $NLINES"
done
done
git checkout production >/dev/null 2>&1
$ ~/count-hiera.sh
2015-01: 48 292
2015-04: 136 1271
2015-07: 226 3910
2015-10: 235 3159
2016-01: 385 5362
2016-04: 420 7886
2016-07: 457 6335
2016-10: 471 6955
2017-01: 508 6895
2017-04: 522 7792
2017-07: 634 8169
2017-10: 597 8468
2018-01: 700 9147
2018-04: 713 10256
2018-07: 745 10812
2018-10: 726 10936