private void installAllKnownModules(ClusterActionEvent event) throws IOException {
Map<String, String> moduleProps = ModulePropertiesFromConfiguration.INSTANCE.apply(event.getClusterSpec()
.getConfigurationForKeysWithPrefix(PUPPET));
StatementToInstallModule statementMaker = getStatementToInstallModuleForAction.apply(event);
Statement installModules = new InstallAllModulesStatementFromProperties(statementMaker).apply(moduleProps);
event.getStatementBuilder().addStatement(installModules);
LOG.debug("Puppet finished installing modules for " + event.getInstanceTemplate());
}