diff options
Diffstat (limited to 'plugins/stor4nfv/roles/stor4nfv/templates')
-rw-r--r-- | plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2 | 4 | ||||
-rw-r--r-- | plugins/stor4nfv/roles/stor4nfv/templates/opensds-nbp.hosts.j2 (renamed from plugins/stor4nfv/roles/stor4nfv/templates/opensds.hosts.j2) | 5 | ||||
-rw-r--r-- | plugins/stor4nfv/roles/stor4nfv/templates/post-install.yml.j2 | 20 |
3 files changed, 25 insertions, 4 deletions
diff --git a/plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2 b/plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2 deleted file mode 100644 index 0e8fa4c9..00000000 --- a/plugins/stor4nfv/roles/stor4nfv/templates/nbp.hosts.j2 +++ /dev/null @@ -1,4 +0,0 @@ -[worker-nodes] -{% for worker in hostvars[inventory_hostname]['groups']['storage_master'] %} -{{ worker }} ansible_ssh_host={{ hostvars[worker]['ansible_ssh_host'] }} -{% endfor %} diff --git a/plugins/stor4nfv/roles/stor4nfv/templates/opensds.hosts.j2 b/plugins/stor4nfv/roles/stor4nfv/templates/opensds-nbp.hosts.j2 index 97068b90..c93f2b77 100644 --- a/plugins/stor4nfv/roles/stor4nfv/templates/opensds.hosts.j2 +++ b/plugins/stor4nfv/roles/stor4nfv/templates/opensds-nbp.hosts.j2 @@ -7,3 +7,8 @@ {% for dock in hostvars[inventory_hostname]['groups']['storage_master'] %} {{ dock }} ansible_ssh_host={{ hostvars[dock]['ansible_ssh_host'] }} {% endfor %} + +[worker-nodes] +{% for worker in hostvars[inventory_hostname]['groups']['storage_master'] %} +{{ worker }} ansible_ssh_host={{ hostvars[worker]['ansible_ssh_host'] }} +{% endfor %} diff --git a/plugins/stor4nfv/roles/stor4nfv/templates/post-install.yml.j2 b/plugins/stor4nfv/roles/stor4nfv/templates/post-install.yml.j2 new file mode 100644 index 00000000..662abc34 --- /dev/null +++ b/plugins/stor4nfv/roles/stor4nfv/templates/post-install.yml.j2 @@ -0,0 +1,20 @@ +# ############################################################################# +# Copyright (c) 2018 Intel Corp. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# ############################################################################# +--- + +- hosts: + - mons + - osds + - mgrs + + tasks: + - name: run modprobe rbd + remote_user: root + command: modprobe rbd + ignore_errors: "true" |