Add example playbooks 56/57556/1
authorAkshita Jha <zenith158@gmail.com>
Wed, 22 Feb 2017 10:01:08 +0000 (15:31 +0530)
committerDaniel Farrell <dfarrell@redhat.com>
Fri, 19 May 2017 16:52:26 +0000 (12:52 -0400)
Change-Id: I26141d214a274c5d59834d110ce9ad0a8ec7dc7e
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
examples/all_defaults_playbook.yml
examples/deb_path_install_playbook.yml [new file with mode: 0644]
examples/deb_repo_install_playbook.yml [new file with mode: 0644]
examples/odl_4_testing_playbook.yml [new file with mode: 0644]
examples/rpm_path_install_playbook.yml [new file with mode: 0644]

index 084aeef1e5af540255c39088e9e01446fbf41491..fa136387972ecb9be1a027c6086a46560055cbe0 100644 (file)
@@ -3,3 +3,5 @@
   become: yes
   roles:
     - role: opendaylight
+      # Accept all default vars
+      # https://github.com/dfarrell07/ansible-opendaylight/blob/master/vars/main.yml
diff --git a/examples/deb_path_install_playbook.yml b/examples/deb_path_install_playbook.yml
new file mode 100644 (file)
index 0000000..d8a6dd6
--- /dev/null
@@ -0,0 +1,8 @@
+---
+- hosts: all
+  become: yes
+  roles:
+    - role: opendaylight
+      # Install ODL from a local/remote .deb path. Not including
+      # this causes the install to use a repo for the RPM.
+      install_method: "deb_path"
diff --git a/examples/deb_repo_install_playbook.yml b/examples/deb_repo_install_playbook.yml
new file mode 100644 (file)
index 0000000..923a8d8
--- /dev/null
@@ -0,0 +1,8 @@
+---
+- hosts: all
+  become: yes
+  roles:
+    - role: opendaylight
+      # Install ODL from a Debian repo. Not including this
+      # causes the install to use a repo for the RPM.
+      install_method: "deb_repo"
diff --git a/examples/odl_4_testing_playbook.yml b/examples/odl_4_testing_playbook.yml
new file mode 100644 (file)
index 0000000..9ded7ac
--- /dev/null
@@ -0,0 +1,7 @@
+---
+- hosts: all
+  become: yes
+  roles:
+    - role: opendaylight
+      rpm_repo_file: "opendaylight-4-testing.repo"
+      rpm_repo_url: "https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=rpm/example_repo_configs/opendaylight-4-testing.repo"
diff --git a/examples/rpm_path_install_playbook.yml b/examples/rpm_path_install_playbook.yml
new file mode 100644 (file)
index 0000000..f09db9e
--- /dev/null
@@ -0,0 +1,10 @@
+---
+- hosts: all
+  become: yes
+  roles:
+    - role: opendaylight
+      # Install from a local/remote path to an ODL RPM. Not including this
+      # causes the install to use a repo for the RPM, which is recommended.
+      install_method: "rpm_path"
+      # Accept default (local/remote) path to ODL RPM
+      # rpm_path: ""