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

Hadoop: better to copy puppet files during the deployment action phase

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