Skip to content
Snippets Groups Projects
Commit abc9323c authored by debora.benedetto@hpe.com's avatar debora.benedetto@hpe.com
Browse files

change template location of piacere monitoring main, bugfix ansible file name

parent e761acb4
Branches
No related tags found
No related merge requests found
---
- 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
- hosts: all
pre_tasks:
- name: Ensure gnupg package
package:
name: gnupg
state: present
become: true
vars_files:
- vars/main.yaml
roles:
- dj-wasabi.telegraf
......@@ -91,6 +91,14 @@ resource "openstack_networking_router_interface_v2" "net1_router_interface" {
# Create ssh keys
resource "openstack_compute_keypair_v2" "ssh_key" {
name = "user1"
# public_key = "user1"
}
# CREATING SECURITY_GROUP
resource "openstack_compute_secgroup_v2" "icmp" {
......@@ -138,11 +146,3 @@ resource "openstack_compute_secgroup_v2" "ssh" {
}
# Create ssh keys
resource "openstack_compute_keypair_v2" "ssh_key" {
name = "user1"
# public_key = "user1"
}
---
engine: terraform
input: []
output: []
...
\ No newline at end of file
......@@ -57,7 +57,7 @@ def create_files(step, output_path):
# for resource_params in parameters[resource_name]:
resource_params = parameters[resource_name]
ansible_output_file_path = output_path + "/".join([step_name, resource_name]) + ".yaml"
ansible_output_file_path = output_path + "/".join([step_name, "main"]) + ".yaml"
inventory_output_file_path = output_path + "/".join([step_name, "inventory"]) + ".j2"
config_output_file_path = output_path + "/".join([step_name, "config"]) + ".yaml"
ssh_key_output_file_path = output_path + "/".join([step_name, "ssh_key.j2"])
......
......@@ -42,7 +42,7 @@ nginx = templates/ansible/ubuntu/nginx.tpl
mysql = templates/ansible/ubuntu/mysql.tpl
wordpress = templates/ansible/ubuntu/wordpress.tpl
postgres = templates/ansible/ubuntu/postgres.tpl
piacere_monitoring = templates/ansible/ubuntu/piacere_init.tpl
piacere_monitoring = templates/ansible/ubuntu/monitoring/main.tpl
[ansible.centos]
mysql = templates/ansible/centos/mysql.tpl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment