Skip to content
Snippets Groups Projects
Commit 07b7d3f5 authored by František Dvořák's avatar František Dvořák
Browse files

Python lint

parent cc4e73af
No related branches found
No related tags found
No related merge requests found
Pipeline #421 passed
......@@ -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'],
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment