def _generate_configs_from_dir(self, component, config_params):
        config_dir = config_params[defs.PARAM_CONFIG_TEMPALTES_DIR_CONFIG_DIR]
        template_dir = \
            config_params[defs.PARAM_CONFIG_TEMPALTES_DIR_TEMPLATES_PATH]
        # iterate over the files in the dir...
        # and just perform the same steps as in _generate_config_from_file
        for subdir, dirs, files in os.walk(template_dir):
            for template_file in files:
                output_file = '.'.join(template_file.split('.')[:-1])
                output_path = os.path.join(
                    component[defs.PARAM_SOURCES_PATH], config_dir,
                    output_file)

                self.mkdir(os.path.join(
                    component[defs.PARAM_SOURCES_PATH], config_dir))
                self.generate_from_template(
                    component, output_path, template_file, template_dir)
generates configuration files from a a templates directory
dataset/ETHPy150Open cloudify-cosmo/packman/packman/templater.py/Handler._generate_configs_from_dir