func (p *Params) Load(cfgFile string) {
	_, err := os.Stat(cfgFile)
	if err != nil {
		log.Fatalf("[Error] unable to read bmcbutler config file: %s", err)
	}
	err = p.unmarshalConfig(cfgFile)
	if err != nil {
		log.Fatalf("failed to unmarshal config: %s", err.Error())
	}
	validators := []func() error{
		p.validateVaultCfg,
		p.validateMetricsCfg,
		p.validateInventoryCfg,
		p.defaults,
		p.validateCertSignerCfg,
	}
	for _, v := range validators {
		err := v()
		if err != nil {
			log.Fatalf("[Error] %s", err.Error())
		}
	}
}
Load sets up bmcbutler configuration.
nolint: gocyclo
package config
import (
	"fmt"
	"io/ioutil"
	"log"
	"os"
	"strings"
	"github.com/spf13/viper"
)