Oleg Iurchenko | 67c6485 | 2018-01-30 13:32:35 +0200 | [diff] [blame^] | 1 | |
| 2 | Sample Pillars |
| 3 | ============== |
| 4 | |
| 5 | Collect artifacts and deploy to artifactory: |
| 6 | Actifact list: |
| 7 | - packages list - collected by default |
| 8 | - Salt pillar - collected by default |
| 9 | - Salt grains - collected by default |
| 10 | - Logs - see example below |
| 11 | - Cmd output - see example below |
| 12 | |
| 13 | .. code-block:: yaml |
| 14 | runtest: |
| 15 | artifact_collector: |
| 16 | enabled: true |
| 17 | artifactory: |
| 18 | enabled: true |
| 19 | user: some_user_name |
| 20 | password: some_password |
| 21 | host: artifactory.mcp.mirantis.net |
| 22 | port: 443 |
| 23 | proto: https |
| 24 | endpoint: /oscore-local/${_param:cluster_domain}/${_param:infra_config_hostname} |
| 25 | artifacts: |
| 26 | sys_logs: |
| 27 | path: /var/log |
| 28 | etc: |
| 29 | path: /etc |
| 30 | cmds: |
| 31 | some_cmd: |
| 32 | cmd: ip addr |
| 33 | dst: /tmp/ip_addr.txt |
| 34 | yet_another_cmd: |
| 35 | cmd: ps -ef |
| 36 | dst: /tmp/ps.txt |