signalfx / ansible-signalfx-agent Goto Github PK
View Code? Open in Web Editor NEWInstall and Configure the SignalFx Smart Agent. (Partial mirror of https://github.com/signalfx/signalfx-agent. Do not edit manually.)
Install and Configure the SignalFx Smart Agent. (Partial mirror of https://github.com/signalfx/signalfx-agent. Do not edit manually.)
Hello,
The task "Initialize tmpfile override" breaks molecule's idempotence.
Fix
Insert changed_when: "result.rc != 0"
under this line
Regards,
The latest changes are not compatible with old versions of ansible as apt is not able to install it.
The problems lies with apt
being unable to install policy_rc_d
This is only possible with ansible 2.8
However, the meta is saying it should be possible:
min_ansible_version: 2.4.1
TASK [signalfx.smart_agent : Add Signalfx Agent repository into sources list] ***
fatal: [debian9]: FAILED! => {"changed": false, "msg": "apt cache update failed"}
changed: [debian-latest]
changed: [ubuntu]
molecule with docker
here is the playbook
---
- name: Setup Signalfx smart agent
hosts: all
become: yes
tasks:
- name: "Install package requirements"
package:
name:
- gnupg
state: present
- include_role:
name: "signalfx.smart_agent"
vars:
sfx_agent_config:
signalFxAccessToken: testxxxxx
monitors:
- type: cpu
- type: filesystems
- type: disk-io
- type: net-io
- type: load
- type: memory
- type: vmem
- type: host-metadata
- type: processlist
Set molecule if you want to test it. but You can use a docker container with the debian:9 image.
Run the playbook on debian:9 fresh installation. You can use vvv option on ansible to have more details
The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
File "/tmp/ansible_apt_repository_payload_UnGu3W/ansible_apt_repository_payload.zip/ansible/modules/packaging/os/apt_repository.py", line 548, in main
File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 483, in update
raise FetchFailedException(e)
fatal: [debian9]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"codename": null,
"filename": "signalfx-agent",
"install_python_apt": true,
"mode": 644,
"repo": "deb https://splunk.jfrog.io/splunk/signalfx-agent-deb release main",
"state": "present",
"update_cache": true,
"validate_certs": true
}
},
"msg": "apt cache update failed"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.