Migrate config installation from copy -> template

This migrates installation of config files from using 'copy' to 'template',
allowing downstream users of the role the ability to carry a template in their
playbooks and have it easily rendered out simply by overriding the
nodepool_file_*_dest variables.

Depends-on: I32cc11901bddd03125e1c4ce6f246d811f414cba

Change-Id: I744b3177e2c10a3a101b73405b885ae0bd231db8
This commit is contained in:
Adam Gandelman 2016-10-14 13:36:09 -07:00
parent e7df808c30
commit a831d2a607
7 changed files with 13 additions and 13 deletions

View File

@ -23,9 +23,9 @@
- /etc/nodepool
- /var/log/nodepool
- name: Copy nodepool configuration.
- name: Install nodepool configuration.
become: yes
copy:
template:
dest: "{{ nodepool_file_nodepool_yaml_dest }}"
group: "{{ nodepool_file_nodepool_yaml_group }}"
mode: "{{ nodepool_file_nodepool_yaml_mode }}"
@ -33,9 +33,9 @@
src: "{{ nodepool_file_nodepool_yaml_src }}"
register: nodepool_file_nodepool_yaml
- name: Copy nodepool secure configuration.
- name: Install nodepool secure configuration.
become: yes
copy:
template:
dest: "{{ nodepool_file_secure_conf_dest }}"
group: "{{ nodepool_file_secure_conf_group }}"
mode: "{{ nodepool_file_secure_conf_mode }}"
@ -43,9 +43,9 @@
src: "{{ nodepool_file_secure_conf_src }}"
register: nodepool_file_secure_conf
- name: Copy logging configuration file.
- name: Install logging configuration file.
become: yes
copy:
template:
dest: "{{ nodepool_file_logging_conf_dest }}"
group: "{{ nodepool_file_logging_conf_group }}"
mode: "{{ nodepool_file_logging_conf_mode }}"
@ -53,9 +53,9 @@
src: "{{ nodepool_file_logging_conf_src }}"
register: nodepool_file_logging_conf
- name: Copy builder logging configuration file.
- name: Install builder logging configuration file.
become: yes
copy:
template:
dest: "{{ nodepool_file_builder_logging_conf_dest }}"
group: "{{ nodepool_file_builder_logging_conf_group }}"
mode: "{{ nodepool_file_builder_logging_conf_mode }}"
@ -63,9 +63,9 @@
src: "{{ nodepool_file_builder_logging_conf_src }}"
register: nodepool_file_builder_logging_conf
- name: Copy deleter logging configuration file.
- name: Install deleter logging configuration file.
become: yes
copy:
template:
dest: "{{ nodepool_file_deleter_logging_conf_dest }}"
group: "{{ nodepool_file_deleter_logging_conf_group }}"
mode: "{{ nodepool_file_deleter_logging_conf_mode }}"
@ -73,9 +73,9 @@
src: "{{ nodepool_file_deleter_logging_conf_src }}"
register: nodepool_file_deleter_logging_conf
- name: Copy launcher logging configuration file.
- name: Install launcher logging configuration file.
become: yes
copy:
template:
dest: "{{ nodepool_file_launcher_logging_conf_dest }}"
group: "{{ nodepool_file_launcher_logging_conf_group }}"
mode: "{{ nodepool_file_launcher_logging_conf_mode }}"
@ -83,7 +83,7 @@
src: "{{ nodepool_file_launcher_logging_conf_src }}"
register: nodepool_file_launcher_logging_conf
- name: Copy nodepool elements directory.
- name: Install nodepool elements directory.
become: yes
copy:
dest: "{{ nodepool_file_nodepool_elements_dest }}"