+gen_config()
+{
+ (for i in $(invirt-getconf --ls hosts); do
+ hostname=$(invirt-getconf hosts.$i.hostname)
+ echo "#include /etc/conserver/conf.d/$hostname"
+ done) >/etc/conserver/invirt-hosts.cf
+ realm=$(invirt-getconf authn.0.realm)
+ (for i in $(invirt-getconf --ls hosts); do
+ hostname=$(invirt-getconf hosts.$i.hostname)
+ echo "host/$hostname@$realm"
+ done) >/etc/remctl/acl/invirt-console
+}
+