X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcaas-danm.git;a=blobdiff_plain;f=ansible%2Froles%2Fdanm_setup%2Ftasks%2Fdanm-tenant-configs.yaml;fp=ansible%2Froles%2Fdanm_setup%2Ftasks%2Fdanm-tenant-configs.yaml;h=dd696b7fa612602665a1c559639c6ec22824a0c5;hp=0000000000000000000000000000000000000000;hb=d45b4117f30f9ad842c24f0c7c9fd8524a7f358f;hpb=d24b652b4823c54bba217a60264185e6102c2552 diff --git a/ansible/roles/danm_setup/tasks/danm-tenant-configs.yaml b/ansible/roles/danm_setup/tasks/danm-tenant-configs.yaml new file mode 100644 index 0000000..dd696b7 --- /dev/null +++ b/ansible/roles/danm_setup/tasks/danm-tenant-configs.yaml @@ -0,0 +1,24 @@ +--- +# Copyright 2019 Nokia +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +- name: template DANM tenant configs + template: + src: "danm_tenant_config.yaml.j2" + dest: "{{ caas.manifests_directory }}/danm-tenant-config.yaml" + +- name: create DANM tenant configs + kubectl: + manifest: "{{ caas.manifests_directory }}/danm-tenant-config.yaml" + state: present