Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
  • y1
  • y2
3 results

Target

Select target project
  • piacere/public/demos/icg-nginx-on-openstack-with-monitoring-agents
1 result
Select Git revision
  • master
  • y1
  • y2
3 results
Show changes
Commits on Source (5)
Showing
with 42 additions and 129 deletions
[submodule "security_monitoring"]
path = security_monitoring
url = ../../agents/sma-playbook.git
[submodule "performance_monitoring"]
path = performance_monitoring
url = ../../agents/pma-playbook.git
---
iac:
- terraform
- piacere_monitoring_requirements
- piacere_monitoring
# - terraform
- performance_monitoring
- security_monitoring
- nginx
...
\ No newline at end of file
---
input:
- instance_ip_vm1
- instance_server_private_key_user1
input: []
# - instance_ip_vm1
# - instance_server_private_key_user1
output: []
engine: ansible
...
[servers_for_nginx]
{{ instance_ip_vm1 }}
demo-server-for-agents-at-iem
[servers_for_nginx:vars]
ansible_connection=ssh
......
{{ instance_server_private_key_user1 }}
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA1FrTNE42EgZr9WJNMtvpKFHYhPUJ4lzEp83EM0jYY3TyjmIe
ThMuqMLAHCk22fl4a8PttucggJ5ZWKhcJh623/y8AybJcmqZgq9a41Q609dmirf0
7frCl+6zL8Mqy2Le2BD4eRADcq11s8r8Ys6J+EBPHQgEnK9CeZLSc/WFRlVr4bOD
s0bEouDxjTAMYjYcpsCwqYgGdIXI9WWsnt3RvcEe8CaiTqoyDN8ZtgkG6MweSrTQ
js8ySHO6o25cOoF7aT9Ihhf32I+KUanNIOvk3RAw2z1FK5xkFbbqMggZqz7rJn3M
sn2dDiCQi2CWox2OYXV/jJKLC3UFuOX64fS9cwIDAQABAoIBAQCs69Tm1/Vx0ibh
aA4DJ06C1bsh8cP9v5soJgfp1xzWSGooBcA1xasOI6B6jhkrgNlNr/uIIEe4VLne
1yJKrGIwnUagrloGQMYGxDKXwYQx80p+FXRuwe7p96eUcjIL8tQSUCd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S4p3oxFlTw==
-----END RSA PRIVATE KEY-----
Subproject commit 1c3fcb737f8f43e02023453b66c9b4bd37d45a63
# https://docs.ansible.com/ansible/latest/reference_appendices/config.html
[defaults]
host_key_checking = False
deprecation_warnings=False ; to remove the python version depretation warning
display_skipped_hosts = no
\ No newline at end of file
---
input:
- instance_ip_vm1
- instance_server_private_key_user1
- DEPLOYMENT_ID
output: []
engine: ansible
...
[servers_for_piacere_monitoring]
{{ instance_ip_vm1 }}
[servers_for_piacere_monitoring:vars]
ansible_connection=ssh
ansible_user=ubuntu
ansible_ssh_private_key_file=ssh_key
- hosts: all
pre_tasks:
- name: Check parameters
fail:
msg: 'variable {{item}} empty'
when: item | length == 0
with_items:
- "{{ pma_deployment_id }}"
- "{{ pma_influxdb_bucket }}"
- "{{ pma_influxdb_token }}"
- "{{ pma_influxdb_org }}"
- "{{ pma_influxdb_addr }}"
- name: Print parameters
debug:
msg:
- "pma_deployment_id: {{ pma_deployment_id }}"
- "pma_influxdb_bucket: {{ pma_influxdb_bucket }}"
- "pma_influxdb_token: {{ pma_influxdb_token }}"
- "pma_influxdb_org: {{ pma_influxdb_org }}"
- "pma_influxdb_addr: {{ pma_influxdb_addr | length }}"
- name: Ensure gnupg package
package:
name: gnupg
state: present
become: true
vars_files:
- vars/main.yaml
roles:
- dj-wasabi.telegraf
- hosts: localhost
tasks:
- name: print disclamer
debug:
msg: this can also be done with "ansible-galaxy install -r requirements"
- name: install telegraf from galaxy
community.general.ansible_galaxy_install:
type: role
requirements_file: ansible_requirements.yml
{{ instance_server_private_key_user1 }}
pma_deployment_id: "{{ lookup('env', 'DEPLOYMENT_ID' ) }}"
pma_influxdb_bucket: "{{ lookup('env', 'INFLUXDB_BUCKET' ) }}"
pma_influxdb_token: "{{ lookup('env', 'INFLUXDB_TOKEN' ) }}"
pma_influxdb_org: "{{ lookup('env', 'INFLUXDB_ORG' ) }}"
pma_influxdb_addr: "{{ lookup('env', 'INFLUXDB_ADDR' ) }}"
telegraf_agent_package_state: latest
telegraf_agent_output:
- type: influxdb_v2
config:
- urls = ["{{ pma_influxdb_addr }}"]
- token = "{{ pma_influxdb_token }}"
- organization = "{{ pma_influxdb_org }}"
- bucket = "{{ pma_influxdb_bucket }}"
- insecure_skip_verify = true
telegraf_global_tags:
- tag_name: deployment_id
tag_value: "{{ pma_deployment_id }}"
telegraf_plugins_default:
- plugin: cpu
- plugin: mem
- plugin: processes
- plugin: disk
- plugin: net
\ No newline at end of file
# https://docs.ansible.com/ansible/latest/reference_appendices/config.html
[defaults]
host_key_checking = False
deprecation_warnings=False ; to remove the python version depretation warning
display_skipped_hosts = no
\ No newline at end of file
roles:
# - name: dj-wasabi.telegraf
# version: 0.13.2
# source: https://galaxy.ansible.com
- name: dj-wasabi.telegraf
src: https://github.com/dj-wasabi/ansible-telegraf.git
scm: git
version: 0.13.2
---
input: []
output: []
engine: ansible
...
localhost ansible_connection=local
\ No newline at end of file
- name: "Intalling requirements"
hosts: localhost
connection: local
tasks:
- name: print disclamer
debug:
msg: this can also be done with "ansible-galaxy install -r requirements"
- name: install telegraf from galaxy
community.general.ansible_galaxy_install:
type: role
requirements_file: ansible_requirements.yml
Subproject commit 8667c8fc40710c8c005c654a73d8749977832af1