FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > EPEL Development

 
 
LinkBack Thread Tools
 
Old 03-08-2011, 05:54 PM
David Cantrell
 
Default Add "firewall --no-ssh" option (#681944).

Ack, FWIW.

Chris Lumens <clumens@redhat.com> wrote:

> ---
> pykickstart/data.py | 2 +-
> pykickstart/parser.py | 2 ++
> 2 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/pykickstart/data.py b/pykickstart/data.py
> index dc816c1..9549aed 100644
> --- a/pykickstart/data.py
> +++ b/pykickstart/data.py
> @@ -32,7 +32,7 @@ class KickstartData:
> self.deviceprobe = ""
> self.displayMode = DISPLAY_MODE_GRAPHICAL
> self.driverdisk = ""
> - self.firewall = {"enabled": True, "ports": [], "trusts": []}
> + self.firewall = {"enabled": True, "ports": [], "trusts": [], "disableSsh": False}
> self.firstboot = FIRSTBOOT_SKIP
> self.ignoredisk = {"drives": [], "onlyuse": []}
> self.interactive = False
> diff --git a/pykickstart/parser.py b/pykickstart/parser.py
> index f1c6984..d3129ac 100644
> --- a/pykickstart/parser.py
> +++ b/pykickstart/parser.py
> @@ -410,6 +410,8 @@ class KickstartHandlers:
> op.add_option("--port", dest="ports", action="callback",
> callback=firewall_port_cb, nargs=1, type="string")
> op.add_option("--trust", dest="trusts", action="append")
> + op.add_option("--no-ssh", dest="disableSsh", action="store_true",
> + default=False)
>
> (opts, extra) = op.parse_args(args=args)
> self._setToDict(op, opts, self.ksdata.firewall)
> --
> 1.7.4.1
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

--
David Cantrell <dcantrell@redhat.com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Honolulu, HI | UTC-10

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org