Changeset 888 for trunk


Ignore:
Timestamp:
Aug 14, 2008, 3:11:14 PM (16 years ago)
Author:
y_z
Message:

generate config files using mako

Location:
trunk/packages/sipb-xen-console
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-console/debian/changelog

    r844 r888  
     1sipb-xen-console (7.8) unstable; urgency=low
     2
     3  * generate config files using mako
     4
     5 -- Yang Zhang <y_z@mit.edu>  Thu, 14 Aug 2008 15:10:50 -0400
     6
    17sipb-xen-console (7.7) unstable; urgency=low
    28
  • trunk/packages/sipb-xen-console/debian/sipb-xen-console.init

    r887 r888  
    3838gen_config()
    3939{
    40     {
    41         for i in $(invirt-getconf --ls hosts); do
    42             local hostname=$(invirt-getconf hosts.$i.hostname)
    43             echo "#include /etc/conserver/conf.d/$hostname"
    44         done
    45     } > /etc/conserver/invirt-hosts.cf
    46     local realm=$(invirt-getconf authn.0.realm)
    47     {
    48         for i in $(invirt-getconf --ls hosts); do
    49             local hostname=$(invirt-getconf hosts.$i.hostname)
    50             echo "host/$hostname@$realm"
    51         done
    52     } > /etc/remctl/acl/invirt-console
    53 
    54     mako-render /etc/nss-pgsql.conf.mako > /etc/nss-pgsql.conf
    55 
    56     fmt > /etc/issue.net.no_tkt << EOF
    57 You must login to the $(invirt-getconf console.hostname) console server using
    58 Kerberos tickets, but your ssh client did not pass a valid ticket to the
    59 console server.
    60 EOF
     40    for i in /etc/conserver/invirt-hosts.cf \
     41             /etc/remctl/acl/invirt-console \
     42             /etc/issue.net.no_tkt \
     43             /etc/nss-pgsql.conf \
     44             ; do
     45        mako-render $i.mako > $i
     46    done
    6147}
    6248
  • trunk/packages/sipb-xen-console/files/etc/remctl/acl/invirt-console

    r678 r888  
     1<% from invirt.config import structs as cfg %>\
     2% for h in cfg.hosts:
     3host/${h.hostname}@${cfg.authn[0].realm}
     4% endfor
Note: See TracChangeset for help on using the changeset viewer.