diff --git a/hadoop/plugin.py b/hadoop/plugin.py index c9b52edf7432abd20d336c2e6991917017b799e8..091cd5205645feee06a992e2fbf5d7079b4e8a8e 100644 --- a/hadoop/plugin.py +++ b/hadoop/plugin.py @@ -39,13 +39,17 @@ class ComponentHadoop: def commands(self, action): if action == 'init': 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'], + ['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', 'puppet apply --test /root/site2.pp >> stage2.log 2>&1; echo $?', 'all'], + ['ansible', '-i', './inventory', '-m', 'shell', '-a', + 'puppet apply --test /root/site.pp >> stage1.log 2>&1; echo $?', 'all'], + ['ansible', '-i', './inventory', '-m', 'shell', '-a', + 'puppet apply --test /root/site2.pp >> stage2.log 2>&1; echo $?', 'all'], ]