Repository navigation
Conversation
|
aos-ci-test |
| serial: 1 | ||
| handlers: | ||
| - include: roles/openshift_master/handlers/main.yml | ||
| - include: ../../../roles/openshift_master/handlers/main.yml |
There was a problem hiding this comment.
I don't like that we are pulling handlers out of roles like this, but that is another issue to address.
|
+1, you read my mind. |
|
I expected CI to have a hard time with this. |
|
[test] |
|
Evaluated for openshift ansible test up to 3f4f288 |
|
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_openshift_ansible/475/) (Base Commit: 11f0b7a) (PR Branch Commit: 3f4f288) |
|
A few things to take into consideration when trying to implement something like this. We don't really want to require users to be in the repo root when they are running playbooks. Using the export ANSIBLE_CONFIG=/complete/path/to/openshift-ansibleIt would be better if the paths in ansible.cfg were relative instead of having to include env vars. |
|
It is customary in ansible projects to execute plays inside the directory of the project. It's also customary for roles to be inside the playbooks directory. This behavior should be expected and encouraged. All things should be either child directories of the root of the project, child directories of playbooks, or installed in normal ansible locations (eg roles in /etc/ansible/roles) |
|
👍 to this. I echo Luke's ux issue for action plugins, but I still think this is the way to go given the options. |
It may be customary but it is problematic. Anything that breaks (or worse, works differently) just because of where the user has changed directory to is a support call waiting to happen (also, causes user frustration and loss of confidence in the product). I doubt it's common to have a set of playbooks as complicated as ours either. Nonetheless, I think it's somewhat unavoidable that we want people to be running from the config we provide (unless they copy and explicitly tweak it). So thinking through what needs to happen...
|
|
I'm against dropping ansible.cfg into /etc/ansible. We certainly can't claim that file as our own system-wide. There may be other ansible projects installed on the same deployment host. Adding small notes to the documentation regard where the playbooks should be run from is trivial.
|
|
Agreed. Pushing the config on users system wide would be problematic. In the container version of the installer I believe we use a flag to specify the ansible config and we default to the one provided from our repo. |
|
On Mon, Aug 21, 2017 at 3:33 PM, Michael Gugino ***@***.***> wrote:
Adding small notes to the documentation regard where the playbooks should
be run from is trivial.
True. It's getting users to read them and understand what's happening when
they ignore them that's hard :-D
Nevertheless it does seem like the best course of action.
|
|
If we're going to tell RPM users to |
|
You will want my latest commit on https://github.com/openshift/openshift-ansible/pull/5125/commits ("fix integration tests"). Other than that the CI jobs all need to be changed as they're running the playbooks from RPMs, while sitting in the jobs directory and configured with /etc/ansible/ansible.cfg. Finally, if we get past that and merge this, I'm pretty sure it will totally break QE's automation which is also RPM-based. |
|
Closing this for now. We'll revisit removing symlinks once we default to the containerized installer. |
Removing all the symlinks for Ansible components and referencing them using the
ansible.cfgfile. This will require running all playbooks from the repo root or ensure the user has a properly configuredansible.cfgfile in the directory they are runningansible-playbook. We want the user to have these default settings anyway to run callback_plugins and have tweaks for performance improvements.