Browse Source

Merge pull request #6840 from yocum137/rm_origin-components

Automatic merge from submit-queue.

moving files to their correct <role>/files location

The openshift_web_console and template_service_broker roles are putting 'files' outside the openshift-ansible roles they belong to.
OpenShift Merge Robot 7 years ago
parent
commit
65d69eca7d

+ 0 - 4
openshift-ansible.spec

@@ -65,9 +65,6 @@ rm -f %{buildroot}%{python_sitelib}/openshift_ansible/gce
 mkdir -p docs/example-inventories
 cp inventory/hosts.* inventory/README.md docs/example-inventories/
 
-# openshift-ansible-files install
-cp -rp files %{buildroot}%{_datadir}/ansible/%{name}/
-
 # openshift-ansible-playbooks install
 cp -rp playbooks %{buildroot}%{_datadir}/ansible/%{name}/
 # remove contiv plabooks
@@ -101,7 +98,6 @@ popd
 %doc README*
 %license LICENSE
 %dir %{_datadir}/ansible/%{name}
-%{_datadir}/ansible/%{name}/files
 %{_datadir}/ansible/%{name}/inventory/dynamic
 %ghost %{_datadir}/ansible/%{name}/playbooks/common/openshift-master/library.rpmmoved
 

files/origin-components/console-config.yaml → roles/openshift_web_console/files/console-config.yaml


files/origin-components/console-rbac-template.yaml → roles/openshift_web_console/files/console-rbac-template.yaml


files/origin-components/console-template.yaml → roles/openshift_web_console/files/console-template.yaml


+ 1 - 1
roles/openshift_web_console/tasks/install.yml

@@ -33,7 +33,7 @@
 
 - name: Copy web console templates to temp directory
   copy:
-    src: "{{ __console_files_location }}/{{ item }}"
+    src: "{{ item }}"
     dest: "{{ mktemp.stdout }}/{{ item }}"
   with_items:
     - "{{ __console_template_file }}"

+ 0 - 2
roles/openshift_web_console/vars/main.yml

@@ -1,6 +1,4 @@
 ---
-__console_files_location: "../../../files/origin-components/"
-
 __console_template_file: "console-template.yaml"
 __console_rbac_file: "console-rbac-template.yaml"
 __console_config_file: "console-config.yaml"

files/origin-components/apiserver-config.yaml → roles/template_service_broker/files/apiserver-config.yaml


files/origin-components/apiserver-template.yaml → roles/template_service_broker/files/apiserver-template.yaml


files/origin-components/rbac-template.yaml → roles/template_service_broker/files/rbac-template.yaml


files/origin-components/template-service-broker-registration.yaml → roles/template_service_broker/files/template-service-broker-registration.yaml


+ 1 - 1
roles/template_service_broker/tasks/install.yml

@@ -28,7 +28,7 @@
   changed_when: false
 
 - copy:
-    src: "{{ __tsb_files_location }}/{{ item }}"
+    src: "{{ item }}"
     dest: "{{ mktemp.stdout }}/{{ item }}"
   with_items:
     - "{{ __tsb_template_file }}"

+ 1 - 1
roles/template_service_broker/tasks/remove.yml

@@ -9,7 +9,7 @@
   changed_when: false
 
 - copy:
-    src: "{{ __tsb_files_location }}/{{ item }}"
+    src: "{{ item }}"
     dest: "{{ mktemp.stdout }}/{{ item }}"
   with_items:
   - "{{ __tsb_template_file }}"

+ 0 - 2
roles/template_service_broker/vars/main.yml

@@ -1,6 +1,4 @@
 ---
-__tsb_files_location: "../../../files/origin-components/"
-
 __tsb_template_file: "apiserver-template.yaml"
 __tsb_config_file: "apiserver-config.yaml"
 __tsb_rbac_file: "rbac-template.yaml"