summaryrefslogtreecommitdiffstats
path: root/resources/roles/qtip-bootstrap/templates
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-19 22:03:52 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-20 11:50:52 +0800
commit7455eb762165d336e81ca901885dc9b45fa7cced (patch)
tree0e605b59fc1b5cdc48d891636602139e663747f1 /resources/roles/qtip-bootstrap/templates
parent5da68bf0911e12237a3484e4160f959933f26c9a (diff)
Create workspace by ansible playbook
Change-Id: Ia79353e686240c5915e40b8202d3fdc289df2158 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/roles/qtip-bootstrap/templates')
-rw-r--r--resources/roles/qtip-bootstrap/templates/ansible.cfg.j230
-rw-r--r--resources/roles/qtip-bootstrap/templates/hosts.j23
2 files changed, 33 insertions, 0 deletions
diff --git a/resources/roles/qtip-bootstrap/templates/ansible.cfg.j2 b/resources/roles/qtip-bootstrap/templates/ansible.cfg.j2
new file mode 100644
index 00000000..e7d76dd0
--- /dev/null
+++ b/resources/roles/qtip-bootstrap/templates/ansible.cfg.j2
@@ -0,0 +1,30 @@
+# config file for ansible -- https://ansible.com/
+# ===============================================
+
+# nearly all parameters can be overridden in ansible-playbook
+# or with command line flags. ansible will read ANSIBLE_CONFIG,
+# ansible.cfg in the current working directory, .ansible.cfg in
+# the home directory or /etc/ansible/ansible.cfg, whichever it
+# finds first
+
+[defaults]
+
+# some basic default values...
+
+inventory = ./hosts
+library = {{ qtip_package }}/qtip/ansible_library/
+
+# set plugin path directories here, separate with colons
+action_plugins = {{ qtip_package }}/qtip/ansible_library/plugins/action
+#cache_plugins = /usr/share/ansible/plugins/cache
+#callback_plugins = /usr/share/ansible/plugins/callback
+#connection_plugins = /usr/share/ansible/plugins/connection
+#lookup_plugins = /usr/share/ansible/plugins/lookup
+#inventory_plugins = /usr/share/ansible/plugins/inventory
+#vars_plugins = /usr/share/ansible/plugins/vars
+filter_plugins = {{ qtip_package }}/qtip/ansible_library/plugins/filter
+#test_plugins = /usr/share/ansible/plugins/test
+#terminal_plugins = /usr/share/ansible/plugins/terminal
+#strategy_plugins = /usr/share/ansible/plugins/strategy
+
+callback_whitelist = profile_tasks
diff --git a/resources/roles/qtip-bootstrap/templates/hosts.j2 b/resources/roles/qtip-bootstrap/templates/hosts.j2
new file mode 100644
index 00000000..c4b985b3
--- /dev/null
+++ b/resources/roles/qtip-bootstrap/templates/hosts.j2
@@ -0,0 +1,3 @@
+localhost ansible_connection=local
+
+{{ installer_master }}