pull.py (ansible-2.14.0) | : | pull.py (ansible-2.14.1rc1) | ||
---|---|---|---|---|
skipping to change at line 40 | skipping to change at line 40 | |||
from ansible.utils.display import Display | from ansible.utils.display import Display | |||
display = Display() | display = Display() | |||
class PullCLI(CLI): | class PullCLI(CLI): | |||
''' Used to pull a remote copy of ansible on each managed node, | ''' Used to pull a remote copy of ansible on each managed node, | |||
each set to run via cron and update playbook source via a source reposit ory. | each set to run via cron and update playbook source via a source reposit ory. | |||
This inverts the default *push* architecture of ansible into a *pull* ar chitecture, | This inverts the default *push* architecture of ansible into a *pull* ar chitecture, | |||
which has near-limitless scaling potential. | which has near-limitless scaling potential. | |||
None of the CLI tools are designed to run concurrently with themselves, | ||||
you should use an external scheduler and/or locking to ensure there are | ||||
no clashing operations. | ||||
The setup playbook can be tuned to change the cron frequency, logging lo cations, and parameters to ansible-pull. | The setup playbook can be tuned to change the cron frequency, logging lo cations, and parameters to ansible-pull. | |||
This is useful both for extreme scale-out as well as periodic remediatio n. | This is useful both for extreme scale-out as well as periodic remediatio n. | |||
Usage of the 'fetch' module to retrieve logs from ansible-pull runs woul d be an | Usage of the 'fetch' module to retrieve logs from ansible-pull runs woul d be an | |||
excellent way to gather and analyze remote logs from ansible-pull. | excellent way to gather and analyze remote logs from ansible-pull. | |||
''' | ''' | |||
name = 'ansible-pull' | name = 'ansible-pull' | |||
DEFAULT_REPO_TYPE = 'git' | DEFAULT_REPO_TYPE = 'git' | |||
DEFAULT_PLAYBOOK = 'local.yml' | DEFAULT_PLAYBOOK = 'local.yml' | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 4 lines changed or added |