Example #1
0
    def get(self):
	s = get_host_list((os.path.join(os.getcwd(),'config')) + '/' + 'n_conf.conf')
	vhlist = ansible_nconf()
	_dict = { "config_file" : s ,"vhlist" : vhlist ,'user_func':self.user_func}
	self.render("nconf.html",**_dict)
Example #2
0
 def get(self):
     s = get_host_list((os.path.join(os.getcwd(), "config")) + "/" + "n_conf.conf")
     vhlist = ansible_nconf()
     _dict = {"config_file": s, "vhlist": vhlist, "user_func": self.user_func}
     self.render("nconf.html", **_dict)
Example #3
0
    def user_func(slef, host):
	vhlist = ansible_nconf(host)
        return  vhlist
Example #4
0
 def user_func(slef, host):
     vhlist = ansible_nconf(host)
     return vhlist