updated docs
diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf5afcf --- /dev/null +++ b/README.md
@@ -0,0 +1,58 @@ +Apigee OPDK Update Component Qpid +========= + +This role takes steps to update a Qpid node of an Apigee Edge platform instance. + +Requirements +------------ + +None + +Role Variables +-------------- + +The `remove_components` collection is used to list those components that should be +removed prior to updating the system packages. The default list includes: + + remove_components: + - qpid-cpp-server + - qpid-cpp-server-linearstore + - qpid-tools + - qpid-qmf + - python-qpid + - qpid-cpp-client + - qpid-proton-c + +The `install_components` collection is used to list those component that should be +updated at the system. The default list includes: + + install_components: + - yum-plugin-priorities + - apigee-qpidd + + +Dependencies +------------ + +None + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - { role: apigee-opdk-update-component-qpidd } + +License +------- + +Apache 2.0 + +Author Information +------------------ + +Carlos Frias + +
diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..4bc2332 --- /dev/null +++ b/defaults/main.yml
@@ -0,0 +1,14 @@ +--- +# defaults file for apigee-opdk-update-component-qpidd +remove_components: +- qpid-cpp-server +- qpid-cpp-server-linearstore +- qpid-tools +- qpid-qmf +- python-qpid +- qpid-cpp-client +- qpid-proton-c + +install_components: +- yum-plugin-priorities +- apigee-qpidd
diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..696d802 --- /dev/null +++ b/handlers/main.yml
@@ -0,0 +1,2 @@ +--- +# handlers file for apigee-opdk-update-component-qpidd \ No newline at end of file
diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..7223799 --- /dev/null +++ b/meta/main.yml
@@ -0,0 +1,57 @@ +galaxy_info: + author: your name + description: your description + company: your company (optional) + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Some suggested licenses: + # - BSD (default) + # - MIT + # - GPLv2 + # - GPLv3 + # - Apache + # - CC-BY + license: license (GPLv2, CC-BY, etc) + + min_ansible_version: 1.2 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # Optionally specify the branch Galaxy will use when accessing the GitHub + # repo for this role. During role install, if no tags are available, + # Galaxy will use this branch. During import Galaxy will access files on + # this branch. If Travis integration is configured, only notifications for this + # branch will be accepted. Otherwise, in all cases, the repo's default branch + # (usually master) will be used. + #github_branch: + + # + # platforms is a list of platforms, and each platform has a name and a list of versions. + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: [] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: [] + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. \ No newline at end of file
diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..fa84eca --- /dev/null +++ b/tasks/main.yml
@@ -0,0 +1,16 @@ +--- +# tasks file for apigee-opdk-update-component-qpidd +- name: Work around remove for Qpid upgrade + ignore_errors: yes + become: true + yum: + name: "{{ item }}" + state: absent + with_items: "{{ remove_components }}" + +- name: Work around install for Qpid upgrade + become: true + yum: + name: "{{ item }}" + state: present + with_items: "{{ install_components }}"
diff --git a/tests/inventory b/tests/inventory new file mode 100644 index 0000000..878877b --- /dev/null +++ b/tests/inventory
@@ -0,0 +1,2 @@ +localhost +
diff --git a/tests/test.yml b/tests/test.yml new file mode 100644 index 0000000..4dc88d3 --- /dev/null +++ b/tests/test.yml
@@ -0,0 +1,5 @@ +--- +- hosts: localhost + remote_user: root + roles: + - apigee-opdk-update-component-qpidd \ No newline at end of file
diff --git a/vars/main.yml b/vars/main.yml new file mode 100644 index 0000000..ba1cfef --- /dev/null +++ b/vars/main.yml
@@ -0,0 +1,2 @@ +--- +# vars file for apigee-opdk-update-component-qpidd \ No newline at end of file