def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 
           'enable', DefaultSetterConstant(False)
        )

        ## on default activate all features
        self._add_defaultsetter(kwargs, 
           'default_features', DefaultSetterConstant([
              'FeatureMain',  ## Core AdoptOpenJDK installation (DEFAULT)
              'FeatureEnvironment',  ## Update the PATH environment variable (DEFAULT)
              'FeatureJarFileRunWith',  ## Associate .jar files with Java applications (DEFAULT)
              'FeatureJavaHome',  ## Update the JAVA_HOME environment variable
              'FeatureIcedTeaWeb',  ## Install IcedTea-Web
              'FeatureJNLPFileRunWith',  ## Associate .jnlp files with IcedTea-web
              'FeatureOracleJavaSoft',
           ])
        )

        self._add_defaultsetter(kwargs, 
           'features', DefaultSetterConstant(None)
        )

        subnorms = kwargs.setdefault('sub_normalizers', [])
        subnorms += [
          JavaDefaultsArgsNormalizer(pluginref),
        ]

        super(JavaDefaultsNormalizer, self).__init__(
           pluginref, *args, **kwargs
        )
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'name', DefaultSetterConstant('nssm'))

        self._add_defaultsetter(kwargs, 'state',
                                DefaultSetterConstant('latest'))

        super(NssmInstallNormalizer, self).__init__(pluginref, *args, **kwargs)
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'state',
                                DefaultSetterConstant('started'))

        self._add_defaultsetter(kwargs, 'start_mode',
                                DefaultSetterConstant('auto'))

        super(ServiceConfigNormalizer, self).__init__(pluginref, *args,
                                                      **kwargs)
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 
           'state', DefaultSetterConstant('started')
        )

        self._add_defaultsetter(kwargs, 
           'password', DefaultSetterConstant('')
        )

        super(ServiceNormalizer, self).__init__(
           pluginref, *args, **kwargs
        )
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 
           'name', DefaultSetterConstant('adoptopenjdk8jre')
        )

        self._add_defaultsetter(kwargs, 
           'state', DefaultSetterConstant('latest')
        )

        super(JavaDefaultsArgsNormalizer, self).__init__(
           pluginref, *args, **kwargs
        )
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 
           'state', DefaultSetterConstant('present')
        )

        self._add_defaultsetter(kwargs, 
           'enabled', DefaultSetterConstant(True)
        )

        super(FirewallNormalizer, self).__init__(
           pluginref, *args, **kwargs
        )
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'disable_winssh',
                                DefaultSetterConstant(False))

        self._add_defaultsetter(kwargs, 'use_gitbash',
                                DefaultSetterConstant(None))

        subnorms = kwargs.setdefault('sub_normalizers', [])
        subnorms += [
            JenkinsBaseNormalizer(pluginref),
            JenkinsAgentNormalizer(pluginref),
            ServiceNormalizer(pluginref),
        ]

        super(ConfigRootNormalizer, self).__init__(pluginref, *args, **kwargs)
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(
            kwargs, 'rootdir',
            DefaultSetterConstant('C:\\winservices\\script'))

        self._add_defaultsetter(kwargs, 'interpreter',
                                DefaultSetterConstant('powershell'))

        subnorms = kwargs.setdefault('sub_normalizers', [])
        subnorms += [
            SourceNormalizer(pluginref),
            ServiceNormalizer(pluginref),
        ]

        super(ConfigRootNormalizer, self).__init__(pluginref, *args, **kwargs)
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 
           'command', DefaultSetterConstant('*Windows\\System32\\cmd.exe')
        )

        self._add_defaultsetter(kwargs, 
           'use_profiling', DefaultSetterConstant(True)
        )

        subnorms = kwargs.setdefault('sub_normalizers', [])
        subnorms += [
          ShellProfilingNormalizer(pluginref),
        ]

        super(ShellNormalizer, self).__init__(
           pluginref, *args, **kwargs
        )
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'default_params',
                                DefaultSetterConstant(True))

        self._add_defaultsetter(kwargs, 'params', DefaultSetterConstant([]))

        self._add_defaultsetter(
            kwargs, 'agent_url',
            DefaultSetterFmtStrSubCfg('{master_url}/jnlpJars/agent.jar'))

        self._add_defaultsetter(
            kwargs, 'node_url',
            DefaultSetterFmtStrSubCfg(
                '{master_url}/computer/{node_name}/slave-agent.jnlp'))

        super(JenkinsAgentNormalizer, self).__init__(pluginref, *args,
                                                     **kwargs)
    def __init__(self, *args, config_path=None, default_scheme='https', 
      default_port='', extra_connection=False, **kwargs
    ):
        self._add_defaultsetter(kwargs, 
           'scheme', DefaultSetterConstant(default_scheme)
        )

        self._add_defaultsetter(kwargs, 
           'port', DefaultSetterConstant(default_port)
        )

        self._add_defaultsetter(kwargs, 
           'user', DefaultSetterConstant('')
        )

        self._config_path = config_path or ['connection']
        self.extra_connection = extra_connection
        super(ConfigNormerConnection, self).__init__(*args, **kwargs)
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'random_pwlen',
                                DefaultSetterConstant(80))

        subnorms = kwargs.setdefault('sub_normalizers', [])
        subnorms += [
            ServersNormalizer(pluginref),
        ]

        super(ConfigRootNormalizer, self).__init__(pluginref, *args, **kwargs)
    def __init__(self, pluginref, *args, **kwargs):
        subnorms = kwargs.setdefault('sub_normalizers', [])
        subnorms += [
            SrvUsrCfgNormalizer(pluginref),
        ]

        self._add_defaultsetter(kwargs, 'pw_access',
                                DefaultSetterConstant(True))

        super(SrvUsrNormalizer, self).__init__(pluginref, *args, **kwargs)
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'name',
                                DefaultSetterConstant('jenkins_slave'))

        subnorms = kwargs.setdefault('sub_normalizers', [])
        subnorms += [
            ServiceCreateNormalizer(pluginref),
        ]

        super(ServiceNormalizer, self).__init__(pluginref, *args, **kwargs)
Example #15
0
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'users', DefaultSetterConstant(dict()))

        subnorms = kwargs.setdefault('sub_normalizers', [])
        subnorms += [
            DockConfNormImageUsersList(pluginref),
        ]

        super(DockConfNormImageUsersGeneric,
              self).__init__(pluginref, *args, **kwargs)
Example #16
0
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'force', DefaultSetterConstant(False))

        subnorms = kwargs.setdefault('sub_normalizers', [])
        subnorms += [
            ProfBaseScriptNormalizer(pluginref),
            ProfDirNormalizer(pluginref),
            ProfScriptsNormalizer(pluginref),
        ]

        super(ConfigRootNormalizer, self).__init__(pluginref, *args, **kwargs)
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(
            kwargs,
            ## on default remove j2 as file ending, as we expect
            ## jinja templates to end with it, and if they do, we
            ## also expect that wanted target name has this ending stripped
            'strip_endings',
            DefaultSetterConstant(['j2']))

        super(CommonPathModNormalizer, self).__init__(pluginref, *args,
                                                      **kwargs)
    def __init__(self, *args, **kwargs):
        ## note: force is needed here to replace files
        ##   when they have changed
        self._add_defaultsetter(kwargs, 'force', DefaultSetterConstant(True))

        super(CopyItemCopyApiNormalizer, self).__init__(*args, **kwargs)
Example #19
0
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'role_paths',
                                DefaultSetterConstant(True))

        super(ExpandVarDirsNormalizer, self).__init__(pluginref, *args,
                                                      **kwargs)
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'no_autolinking',
                                DefaultSetterConstant(False))

        super(RemoteFsNormalizer, self).__init__(pluginref, *args, **kwargs)
Example #21
0
    def __init__(self, pluginref, *args, **kwargs):
        self._add_defaultsetter(kwargs, 'config',
                                DefaultSetterConstant(dict()))

        super(DockConfNormImageUser, self).__init__(pluginref, *args, **kwargs)