def __init__(self, *args, **kwargs):
     # Options are defined in an __init__ method to support swapping out
     # custom user models in tests.
     super(Command, self).__init__(*args, **kwargs)
     default_username = get_default_celeryd_username()
     self.option_list = BaseCommand.option_list + (
         make_option('--username', dest='username', default=default_username,
             help='Specifies the login for the superuser.'),
         make_option('--mgmt_prefix', dest='mgmt_prefix',
             default=settings.MGMT_IPV6_PREFIX,
             help='Mgmt prefix, the settings file will be updated.'),
         make_option('--default_port', dest='default_port',
             default=TINC_PORT_DFLT,
             help='Tinc port default, the settings file will be updated.'),
         make_option('--address', dest='address', default='0.0.0.0',
             help='Tinc BindToAddress'),
         make_option('--net_name', dest='net_name', default=TINC_NET_NAME,
             help='Tinc net name'),
         make_option('--nohup', dest='nohup', default=TINC_TINCD_SEND_HUP,
             help='Whether we want to send a HUP signal to tinc after an update'
                  ' or not. It requires sudo'),
         make_option('--noinput', action='store_false', dest='interactive',
             help='Tells Django to NOT prompt the user for input of any kind. '
                  'You must use --username with --noinput, and must contain the '
                  'cleeryd process owner, which is the user how will perform '
                  'tincd updates', default=True),
         )
 def __init__(self, *args, **kwargs):
     # Options are defined in an __init__ method to support swapping out
     # custom user models in tests.
     super(Command, self).__init__(*args, **kwargs)
     default_username = get_default_celeryd_username()
     self.option_list = BaseCommand.option_list + (
         make_option('--username', dest='username', default=default_username,
             help='Specifies username crontab'),
         )
Exemple #3
0
 def __init__(self, *args, **kwargs):
     # Options are defined in an __init__ method to support swapping out
     # custom user models in tests.
     super(Command, self).__init__(*args, **kwargs)
     default_username = get_default_celeryd_username()
     self.option_list = BaseCommand.option_list + (make_option(
         '--username',
         dest='username',
         default=default_username,
         help='Specifies username crontab'), )
 def __init__(self, *args, **kwargs):
     super(Command, self).__init__(*args, **kwargs)
     self.option_list = BaseCommand.option_list + (
         make_option('--username', dest='username', default=get_default_celeryd_username(),
             help='Specifies the system user that would generate the firmwares.'),
         make_option('--noinput', action='store_false', dest='interactive', default=True,
             help='Tells Django to NOT prompt the user for input of any kind. '
                  'You must use --username with --noinput, and must contain the '
                  'cleeryd process owner, which is the user how will perform tincd updates'),
         )
Exemple #5
0
 def __init__(self, *args, **kwargs):
     super(Command, self).__init__(*args, **kwargs)
     self.option_list = BaseCommand.option_list + (
         make_option('--user', dest='user', default=get_default_celeryd_username(),
             help='uWSGI daemon user.'),
         make_option('--group', dest='group', default='',
             help='uWSGI daemon group.'),
         make_option('--processes', dest='processes', default=4,
             help='uWSGI number of processes.'),
         make_option('--noinput', action='store_false', dest='interactive', default=True,
             help='Tells Django to NOT prompt the user for input of any kind.'),
         )
 def __init__(self, *args, **kwargs):
     super(Command, self).__init__(*args, **kwargs)
     self.option_list = BaseCommand.option_list + (
         make_option('--user', dest='user', default=get_default_celeryd_username(),
             help='WSGIDaemonProcess user.'),
         make_option('--group', dest='group', default='',
             help='WSGIDaemonProcess group.'),
         make_option('--processes', dest='processes', default=4,
             help='WSGIDaemonProcess processes.'),
         make_option('--threads', dest='threads', default=50,
             help='WSGIDaemonProcess threads.'),
         make_option('--noinput', action='store_false', dest='interactive', default=True,
             help='Tells Django to NOT prompt the user for input of any kind.'),
         )
Exemple #7
0
 def __init__(self, *args, **kwargs):
     # Options are defined in an __init__ method to support swapping out
     # custom user models in tests.
     super(Command, self).__init__(*args, **kwargs)
     default_username = get_default_celeryd_username()
     self.option_list = BaseCommand.option_list + (
         make_option('--username',
                     dest='username',
                     default=default_username,
                     help='Specifies the login for the superuser.'),
         make_option(
             '--mgmt_prefix',
             dest='mgmt_prefix',
             default=settings.MGMT_IPV6_PREFIX,
             help='Mgmt prefix, the settings file will be updated.'),
         make_option(
             '--default_port',
             dest='default_port',
             default=TINC_PORT_DFLT,
             help='Tinc port default, the settings file will be updated.'),
         make_option('--address',
                     dest='address',
                     default='0.0.0.0',
                     help='Tinc BindToAddress'),
         make_option('--net_name',
                     dest='net_name',
                     default=TINC_NET_NAME,
                     help='Tinc net name'),
         make_option(
             '--nohup',
             dest='nohup',
             default=TINC_TINCD_SEND_HUP,
             help=
             'Whether we want to send a HUP signal to tinc after an update'
             ' or not. It requires sudo'),
         make_option(
             '--noinput',
             action='store_false',
             dest='interactive',
             help=
             'Tells Django to NOT prompt the user for input of any kind. '
             'You must use --username with --noinput, and must contain the '
             'cleeryd process owner, which is the user how will perform '
             'tincd updates',
             default=True),
     )
 def __init__(self, *args, **kwargs):
     super(Command, self).__init__(*args, **kwargs)
     self.option_list = BaseCommand.option_list + (
         make_option(
             '--username',
             dest='username',
             default=get_default_celeryd_username(),
             help=
             'Specifies the system user that would generate the firmwares.'
         ),
         make_option(
             '--noinput',
             action='store_false',
             dest='interactive',
             default=True,
             help=
             'Tells Django to NOT prompt the user for input of any kind. '
             'You must use --username with --noinput, and must contain the '
             'cleeryd process owner, which is the user how will perform tincd updates'
         ),
     )