From 7305fd42a935b6cdd7b018a264db2499fc6b0382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Thu, 31 Dec 2020 00:46:42 +0100 Subject: [PATCH] Hadoop: better to copy puppet files during the deployment action phase --- hadoop/plugin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hadoop/plugin.py b/hadoop/plugin.py index 091cd52..c018b32 100644 --- a/hadoop/plugin.py +++ b/hadoop/plugin.py @@ -37,15 +37,12 @@ class ComponentHadoop: f.write(site) def commands(self, action): - if action == 'init': + if action == 'deployment': return [ ['ansible', '-i', './inventory', '-m', 'copy', '-a', 'src=site.pp dest=/root', 'all'], ['ansible', '-i', './inventory', '-m', 'copy', '-a', 'src=site2.pp dest=/root', 'all'], - ] - elif action == 'deployment': - return [ ['ansible', '-i', './inventory', '-m', 'shell', '-a', 'puppet apply --test /root/site.pp >> stage1.log 2>&1; echo $?', 'all'], ['ansible', '-i', './inventory', '-m', 'shell', '-a', -- GitLab