kubespray / kubespray-cli

Easy to use command line tool for kubernetes deployment with kubespray
GNU General Public License v3.0
252 stars 62 forks source link

default config file path should be user's home #109

Closed silenceshell closed 7 years ago

silenceshell commented 7 years ago

Default config file path (where kubespray.yml) should be user's home dir, not /etc/kubespray/.

    if args.configfile is None:
        default_config_dir = os.path.expanduser("~")
        if not os.path.isdir(default_config_dir):
            os.makedirs(default_config_dir)
        args.configfile = os.path.join(default_config_dir, ".kubespray.yml")