Comments

6 Comments

sorry for the lack of carrage return ^^

It work for me , but not sure if it works by default sudo dnf install python-docker docker sudo systemctl enable docker && sudo systemctl start docker sudo molecule init role -r lol and then sudo molecule test TASK [Destroy molecule instance(s)] ******** fatal: [localhost]: FAILED! => {"msg": "An unhandled exception occurred while templating '{{ lookup('file', molecule_file) | molecule_from_yaml }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: template error while templating string: no filter named 'molecule_from_yaml'. String: {{ lookup('file', molecule_file) | molecule_from_yaml }}"} Not sure if it's normal it dont install docker and python-docker by default and fail with a default config ?

With: sudo dnf --enablerepo=updates-testing install python-molecule

molecule init role -r rpm --> Initializing new role rpm... Traceback (most recent call last): File "/usr/bin/molecule", line 10, in <module> sys.exit(main()) File "/usr/lib/python3.6/site-packages/click/core.py", line 721, in call return self.main(args, kwargs) File "/usr/lib/python3.6/site-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/usr/lib/python3.6/site-packages/click/core.py", line 1065, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3.6/site-packages/click/core.py", line 1065, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3.6/site-packages/click/core.py", line 894, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3.6/site-packages/click/core.py", line 534, in invoke return callback(args, kwargs) File "/usr/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, kwargs) File "/usr/lib/python3.6/site-packages/molecule/command/init/role.py", line 128, in role r.execute() File "/usr/lib/python3.6/site-packages/molecule/command/init/role.py", line 61, in execute self._process_templates('role', self._command_args, role_directory) File "/usr/lib/python3.6/site-packages/molecule/command/init/base.py", line 61, in _process_templates no_input=True, File "/usr/lib/python3.6/site-packages/cookiecutter/main.py", line 63, in cookiecutter password=password File "/usr/lib/python3.6/site-packages/cookiecutter/repository.py", line 122, in determine_repo_dir '\n'.join(repository_candidates) cookiecutter.exceptions.RepositoryNotFound: A valid repository for "/usr/lib/python3.6/site-packages/molecule/command/init/../../cookiecutter/role" could not be found in the following locations: /usr/lib/python3.6/site-packages/molecule/command/init/../../cookiecutter/role /usr/lib/python3.6/site-packages/molecule/command/init/../../cookiecutter/role

Not sure if fonctional :/ i got this cookiecutter.exceptions.RepositoryNotFound: A valid repository for "/usr/lib/python3.6/site-packages/molecule/command/init/../../cookiecutter/role" could not be found in the following locations: /usr/lib/python3.6/site-packages/molecule/command/init/../../cookiecutter/role /usr/lib/python3.6/site-packages/molecule/command/init/../../cookiecutter/role

Ok for me and necessary for running in fedora 28 because of python 3.6 because of bug Fedora@1575821

karma

Works fine for me