From 47a9432f88342c96c8aeb84bcd5cc20d888306b0 Mon Sep 17 00:00:00 2001 From: Akshita Jha Date: Wed, 22 Feb 2017 15:31:08 +0530 Subject: [PATCH] Add example playbooks Change-Id: I26141d214a274c5d59834d110ce9ad0a8ec7dc7e Signed-off-by: Akshita Jha Signed-off-by: Daniel Farrell --- examples/all_defaults_playbook.yml | 2 ++ examples/deb_path_install_playbook.yml | 8 ++++++++ examples/deb_repo_install_playbook.yml | 8 ++++++++ examples/odl_4_testing_playbook.yml | 7 +++++++ examples/rpm_path_install_playbook.yml | 10 ++++++++++ 5 files changed, 35 insertions(+) create mode 100644 examples/deb_path_install_playbook.yml create mode 100644 examples/deb_repo_install_playbook.yml create mode 100644 examples/odl_4_testing_playbook.yml create mode 100644 examples/rpm_path_install_playbook.yml diff --git a/examples/all_defaults_playbook.yml b/examples/all_defaults_playbook.yml index 084aeef..fa13638 100644 --- a/examples/all_defaults_playbook.yml +++ b/examples/all_defaults_playbook.yml @@ -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 index 0000000..d8a6dd6 --- /dev/null +++ b/examples/deb_path_install_playbook.yml @@ -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 index 0000000..923a8d8 --- /dev/null +++ b/examples/deb_repo_install_playbook.yml @@ -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 index 0000000..9ded7ac --- /dev/null +++ b/examples/odl_4_testing_playbook.yml @@ -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 index 0000000..f09db9e --- /dev/null +++ b/examples/rpm_path_install_playbook.yml @@ -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: "" -- 2.36.6