def onNewSnippet(self, snippetPath): if ANSIBLE_INVENTORIES in self.context.model[SRC]: for inventory in self.context.model[SRC][ANSIBLE_INVENTORIES]: if FILE in inventory: inventory[FILE] = misc.snippetRelocate( snippetPath, inventory[FILE]) if VAULT_PASSWORD_FILE in inventory: inventory[VAULT_PASSWORD_FILE] = misc.snippetRelocate( snippetPath, inventory[VAULT_PASSWORD_FILE])
def onNewSnippet(self, snippetPath): #logger.debug("Called inventory self.onNewSnippet()") if HOSTS in self.context.model[SRC]: for h in self.context.model[SRC][HOSTS]: if SSH_PRIVATE_FILE_FILE in h and h[SSH_PRIVATE_FILE_FILE] != '': h[SSH_PRIVATE_FILE_FILE] = misc.snippetRelocate(snippetPath, h[SSH_PRIVATE_FILE_FILE]) if HOST_OVERRIDES in self.context.model[SRC]: for h in self.context.model[SRC][HOST_OVERRIDES]: if SSH_PRIVATE_FILE_FILE in h and h[SSH_PRIVATE_FILE_FILE] != '': h[SSH_PRIVATE_FILE_FILE] = misc.snippetRelocate(snippetPath, h[SSH_PRIVATE_FILE_FILE])
def onNewSnippet(self, snippetPath): model = self.context.model if HIVE_RELAY in model[SRC]: if REPORT_FILE in model[SRC][HIVE_RELAY]: model[SRC][HIVE_RELAY][REPORT_FILE] = misc.snippetRelocate( snippetPath, model[SRC][HIVE_RELAY][REPORT_FILE]) if LOCAL_KEYTAB_PATH in model[SRC][HIVE_RELAY]: model[SRC][HIVE_RELAY][ LOCAL_KEYTAB_PATH] = misc.snippetRelocate( snippetPath, model[SRC][HIVE_RELAY][LOCAL_KEYTAB_PATH])
def onNewSnippet(self, snippetPath): model = self.context.model if PLAYBOOKS_FOLDERS in model[SRC]: l2 = [] for p in model[SRC][PLAYBOOKS_FOLDERS]: l2.append(misc.snippetRelocate(snippetPath, p)) model[SRC][PLAYBOOKS_FOLDERS] = l2 if ROLES_FOLDERS in model[SRC]: l2 = [] for p in model[SRC][ROLES_FOLDERS]: l2.append(misc.snippetRelocate(snippetPath, p)) model[SRC][ROLES_FOLDERS] = l2
def onNewSnippet(self, snippetPath): model = self.context.model if HDFS_RELAY in model[SRC]: if LOCAL_KEYTAB_PATH in model[SRC][HDFS_RELAY]: model[SRC][HDFS_RELAY][ LOCAL_KEYTAB_PATH] = misc.snippetRelocate( snippetPath, model[SRC][HDFS_RELAY][LOCAL_KEYTAB_PATH]) if SOURCE_HOST_CREDENTIALS in model[SRC]: for h in model[SRC][SOURCE_HOST_CREDENTIALS]: if LOCAL_KEYTAB_PATH in h: h[LOCAL_KEYTAB_PATH] = misc.snippetRelocate( snippetPath, h[LOCAL_KEYTAB_PATH])
def onNewSnippet(self, snippetPath): model = self.context.model if LOCAL_FILES_FOLDERS in model[SRC]: l2 = [] for p in model[SRC][LOCAL_FILES_FOLDERS]: l2.append(misc.snippetRelocate(snippetPath, p)) model[SRC][LOCAL_FILES_FOLDERS] = l2 if LOCAL_TEMPLATES_FOLDERS in model[SRC]: l2 = [] for p in model[SRC][LOCAL_TEMPLATES_FOLDERS]: l2.append(misc.snippetRelocate(snippetPath, p)) model[SRC][LOCAL_TEMPLATES_FOLDERS] = l2
def onNewSnippet(self, snippetPath): model = self.context.model if RANGER_RELAY in model[SRC]: if CA_BUNDLE_LOCAL_FILE in model[SRC][RANGER_RELAY]: model[SRC][RANGER_RELAY][ CA_BUNDLE_LOCAL_FILE] = misc.snippetRelocate( snippetPath, model[SRC][RANGER_RELAY][CA_BUNDLE_LOCAL_FILE]) if LOCAL_KEYTAB_PATH in model[SRC][RANGER_RELAY]: model[SRC][RANGER_RELAY][ LOCAL_KEYTAB_PATH] = misc.snippetRelocate( snippetPath, model[SRC][RANGER_RELAY][LOCAL_KEYTAB_PATH])
def onNewSnippet(self, snippetPath): model = self.context.model if YARN_RELAY in model[SRC]: if LOCAL_KEYTAB_PATH in model[SRC][YARN_RELAY]: model[SRC][YARN_RELAY][ LOCAL_KEYTAB_PATH] = misc.snippetRelocate( snippetPath, model[SRC][YARN_RELAY][LOCAL_KEYTAB_PATH])
def onNewSnippet(self, snippetPath): #logger.debug("Called master self.onNewSnippet()") if PLUGINS_PATHS in self.context.model[SRC]: newList = [] for p in self.context.model[SRC][PLUGINS_PATHS]: newList.append(misc.snippetRelocate(snippetPath, p)) self.context.model[SRC][PLUGINS_PATHS] = newList
def onNewSnippet(self, snippetPath): #logger.debug("Called users self.onNewSnippet()") if USERS in self.context.model[SRC]: for u in self.context.model[SRC][USERS]: if AUTHORIZED_KEYS in u: absKeys = [] for key in u[AUTHORIZED_KEYS]: absKeys.append(misc.snippetRelocate(snippetPath, key)) u[AUTHORIZED_KEYS] = absKeys
def onNewSnippet(self, snippetPath): if ELASTICSEARCH_SERVERS in self.context.model[SRC]: for server in self.context.model[SRC][ELASTICSEARCH_SERVERS]: if CA_BUNDLE_LOCAL_FILE in server: server[CA_BUNDLE_LOCAL_FILE] = misc.snippetRelocate( snippetPath, server[CA_BUNDLE_LOCAL_FILE])
def onNewSnippet(self, snippetPath): if RANGER_RELAY in self.context.model[SRC]: if CA_BUNDLE_LOCAL_FILE in self.context.model[SRC][RANGER_RELAY]: self.context.model[SRC][RANGER_RELAY][CA_BUNDLE_LOCAL_FILE] = misc.snippetRelocate(snippetPath, self.context.model[SRC][RANGER_RELAY][CA_BUNDLE_LOCAL_FILE])