search for: ovirt_setup_anyterm

Displaying 4 results from an estimated 4 matches for "ovirt_setup_anyterm".

2009 Aug 03
1
[PATCH node] changed fickle anyterm sysconfig changes to something more robust (revised)
...--- scripts/ovirt-functions | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index af3a257..98e88e7 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -213,11 +213,10 @@ ovirt_setup_libvirtd() { ovirt_setup_anyterm() { # configure anyterm - sed -i -e 's/^# ANYTERM_CMD=\/usr\/bin\/anyterm-cmd/ANYTERM_CMD="sudo \/usr\/bin\/virsh console %p"/' \ - /etc/sysconfig/anyterm - - sed -i -e 's/^# ANYTERM_LOCAL_ONLY=true/ANYTERM_LOCAL_ONLY=false/' \ - /etc/sysconfig/anyter...
2009 Aug 03
0
[PATCH node] changed fickle anyterm sysconfig changes to something more rebust
...--- scripts/ovirt-functions | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index af3a257..1c7b0c4 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -213,11 +213,10 @@ ovirt_setup_libvirtd() { ovirt_setup_anyterm() { # configure anyterm - sed -i -e 's/^# ANYTERM_CMD=\/usr\/bin\/anyterm-cmd/ANYTERM_CMD="sudo \/usr\/bin\/virsh console %p"/' \ - /etc/sysconfig/anyterm - - sed -i -e 's/^# ANYTERM_LOCAL_ONLY=true/ANYTERM_LOCAL_ONLY=false/' \ - /etc/sysconfig/anyter...
2011 Jul 25
0
[PATCH node] Drop F15 build recipes
...sure we we setup gssapi in the mech_list - sasl_conf=/etc/sasl2/libvirt.conf - if ! grep -qE "^mech_list: gssapi" $sasl_conf ; then - sed -i -e "s/^\([[:space:]]*mech_list.*\)/#\1/" $sasl_conf - echo "mech_list: gssapi" >> $sasl_conf - fi - -#ovirt_setup_anyterm() - # configure anyterm - cat >> /etc/sysconfig/anyterm << \EOF_anyterm -ANYTERM_CMD="sudo /usr/bin/virsh console %p" -ANYTERM_LOCAL_ONLY=false -EOF_anyterm - - # permit it to run the virsh console - echo "anyterm ALL=NOPASSWD: /usr/bin/virsh console *" >&...
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...= os.system('grep -qE "^mech_list: gssapi %s') % sasl_conf + if ret > 0: + os.system("sed -i -e \"s/^\([[:space:]]*mech_list.*\)/#\1/\" %s") % sasl_conf + os.system("echo \"mech_list: gssapi\" >> %s") % sasl_conf + +def ovirt_setup_anyterm(): + # configure anyterm + anyterm_conf = open("/etc/sysconfig/anyterm", "w") + anyterm_conf.write("ANYTERM_CMD=\"sudo /usr/bin/virsh console %p\"") + anyterm_conf.write("ANYTERM_LOCAL_ONLY=false") + anyterm_conf.close() + # permit it to...