Browse Source

Add manage toggle for logging config

Allow a user to toggle the installation of logging files, as we allow
them to disable services.

Change-Id: Ie354cb0547fa247f940aa15222bbf4994d4201ee
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/49/626649/1
Paul Belanger 6 months ago
parent
commit
96ac665eaa
2 changed files with 4 additions and 0 deletions
  1. 2
    0
      defaults/main.yaml
  2. 2
    0
      tasks/config.yaml

+ 2
- 0
defaults/main.yaml View File

@@ -40,12 +40,14 @@ nodepool_file_secure_conf_src: etc/nodepool/secure.conf
40 40
 
41 41
 nodepool_file_builder_logging_conf_dest: /etc/nodepool/builder-logging.conf
42 42
 nodepool_file_builder_logging_conf_group: "{{ nodepool_user_group }}"
43
+nodepool_file_builder_logging_conf_manage: true
43 44
 nodepool_file_builder_logging_conf_mode: 0644
44 45
 nodepool_file_builder_logging_conf_owner: "{{ nodepool_user_name }}"
45 46
 nodepool_file_builder_logging_conf_src: etc/nodepool/builder-logging.conf
46 47
 
47 48
 nodepool_file_launcher_logging_conf_dest: /etc/nodepool/launcher-logging.conf
48 49
 nodepool_file_launcher_logging_conf_group: "{{ nodepool_user_group }}"
50
+nodepool_file_launcher_logging_conf_manage: true
49 51
 nodepool_file_launcher_logging_conf_mode: 0644
50 52
 nodepool_file_launcher_logging_conf_owner: "{{ nodepool_user_name }}"
51 53
 nodepool_file_launcher_logging_conf_src: etc/nodepool/launcher-logging.conf

+ 2
- 0
tasks/config.yaml View File

@@ -54,6 +54,7 @@
54 54
     owner: "{{nodepool_file_builder_logging_conf_owner }}"
55 55
     src: "{{ nodepool_file_builder_logging_conf_src }}"
56 56
   register: nodepool_file_builder_logging_conf
57
+  when: nodepool_file_builder_logging_conf_manage
57 58
 
58 59
 - name: Install launcher logging configuration file.
59 60
   become: true
@@ -64,3 +65,4 @@
64 65
     owner: "{{nodepool_file_launcher_logging_conf_owner }}"
65 66
     src: "{{ nodepool_file_launcher_logging_conf_src }}"
66 67
   register: nodepool_file_launcher_logging_conf
68
+  when: nodepool_file_launcher_logging_conf_manage

Loading…
Cancel
Save