{"action":"created","issue":{"url":"https://api.github.com/repos/theforeman/foreman-ansible-modules/issues/85","repository_url":"https://api.github.com/repos/theforeman/foreman-ansible-modules","labels_url":"https://api.github.com/repos/theforeman/foreman-ansible-modules/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/theforeman/foreman-ansible-modules/issues/85/comments","events_url":"https://api.github.com/repos/theforeman/foreman-ansible-modules/issues/85/events","html_url":"https://github.com/theforeman/foreman-ansible-modules/pull/85","id":281481868,"number":85,"title":"Ansible Playbook for test_playbook for REALM creation and deletion","user":{"login":"claudiol","id":2573425,"avatar_url":"https://avatars0.githubusercontent.com/u/2573425?v=4","gravatar_id":"","url":"https://api.github.com/users/claudiol","html_url":"https://github.com/claudiol","followers_url":"https://api.github.com/users/claudiol/followers","following_url":"https://api.github.com/users/claudiol/following{/other_user}","gists_url":"https://api.github.com/users/claudiol/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiol/subscriptions","organizations_url":"https://api.github.com/users/claudiol/orgs","repos_url":"https://api.github.com/users/claudiol/repos","events_url":"https://api.github.com/users/claudiol/events{/privacy}","received_events_url":"https://api.github.com/users/claudiol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-12-12T17:58:44Z","updated_at":"2017-12-21T09:21:03Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/theforeman/foreman-ansible-modules/pulls/85","html_url":"https://github.com/theforeman/foreman-ansible-modules/pull/85","diff_url":"https://github.com/theforeman/foreman-ansible-modules/pull/85.diff","patch_url":"https://github.com/theforeman/foreman-ansible-modules/pull/85.patch"},"body":"Completed tasks:\r\n- Modified current realm.yml under test/test_playbook directory to include self contained variables to create a REALM in Satellite 6.\r\n- test/test_playbooks/realm.yml\r\n```---\r\n- hosts: localhost\r\n  tasks:\r\n  - name: Load server config\r\n    include_vars:\r\n      file: server_vars.yml\r\n  - include: tasks/realm.yml\r\n    vars:\r\n      realm_name: \"EXAMPLE.LOCAL\"\r\n      realm_proxy: 1\r\n      realm_type: \"Red Hat Identity Management\"\r\n      realm_state: present\r\n  - include: tasks/realm.yml\r\n    vars:\r\n      realm_name: \"EXAMPLE.LOCAL\"\r\n      realm_proxy: 1\r\n      realm_type: \"Red Hat Identity Management\"\r\n      realm_state: absent\r\n```\r\n- Added a realm.yml to the test/test_playbooks/tasks directory\r\n```\r\n---\r\n- name: \"Ensure realm '{{ realm_name }}' is {{ realm_state }}\"\r\n  foreman_realm:\r\n    server_url: \"{{ foreman_server_url }}\"\r\n    username: \"{{ foreman_username }}\"\r\n    password: \"{{ foreman_password }}\"\r\n    verify_ssl: \"{{ foreman_verify_ssl }}\"\r\n    name: \"{{ realm_name }}\"\r\n    realm_proxy: '{{ realm_proxy }}'\r\n    realm_type: \"{{ realm_type }}\"\r\n    state: \"{{ realm_state }}\"\r\n```\r\n- Ran test for the playbook:\r\n[root@fedora26 foreman-ansible-modules]# ansible-playbook test/test_playbooks/realm.yml [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use \r\n'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This \r\nfeature will be removed in a future release. Deprecation warnings can be disabled by \r\nsetting deprecation_warnings=False in ansible.cfg.\r\n[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is \r\ndiscouraged. The module documentation details page may explain more about this rationale.. \r\nThis feature will be removed in a future release. Deprecation warnings can be disabled by \r\nsetting deprecation_warnings=False in ansible.cfg.\r\n\r\nPLAY [localhost] ***************************************************************************\r\n\r\nTASK [Gathering Facts] *********************************************************************\r\nok: [localhost]\r\n\r\nTASK [Load server config] ******************************************************************\r\nok: [localhost]\r\n\r\nTASK [Ensure realm 'EXAMPLE.LOCAL' is present] *********************************************\r\nchanged: [localhost]\r\n\r\nTASK [Ensure realm 'EXAMPLE.LOCAL' is absent] **********************************************\r\nchanged: [localhost]\r\n\r\nPLAY RECAP *********************************************************************************\r\nlocalhost                  : ok=4    changed=2    unreachable=0    failed=0  \r\n\r\nLet me know if I need to provide more updates.\r\n\r\nBest,\r\nLester\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/theforeman/foreman-ansible-modules/issues/comments/353300459","html_url":"https://github.com/theforeman/foreman-ansible-modules/pull/85#issuecomment-353300459","issue_url":"https://api.github.com/repos/theforeman/foreman-ansible-modules/issues/85","id":353300459,"user":{"login":"mdellweg","id":25984076,"avatar_url":"https://avatars1.githubusercontent.com/u/25984076?v=4","gravatar_id":"","url":"https://api.github.com/users/mdellweg","html_url":"https://github.com/mdellweg","followers_url":"https://api.github.com/users/mdellweg/followers","following_url":"https://api.github.com/users/mdellweg/following{/other_user}","gists_url":"https://api.github.com/users/mdellweg/gists{/gist_id}","starred_url":"https://api.github.com/users/mdellweg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdellweg/subscriptions","organizations_url":"https://api.github.com/users/mdellweg/orgs","repos_url":"https://api.github.com/users/mdellweg/repos","events_url":"https://api.github.com/users/mdellweg/events{/privacy}","received_events_url":"https://api.github.com/users/mdellweg/received_events","type":"User","site_admin":false},"created_at":"2017-12-21T09:21:03Z","updated_at":"2017-12-21T09:21:03Z","author_association":"CONTRIBUTOR","body":"I am still unable to run this playbook against my forklift instance, because neither the `realm_proxy` nor the `realm_type` are available. If they can be setup inside the playbook, please do so. If not, please include detailed instructions in the README (\"In order to run the test for _realm_, you need to ...\").\r\n\r\nI want everyone (in priciple) to be able to run the test suite locally.\r\n\r\nOptional: In the end you might want to duplicate the tasks to test for idempotence.\r\nBTW: If the fix for idempotence is not too complicated, just add it here."}}
{"actor":{"display_login":"mdellweg"}}