f5alliances / f5_provisioner

F5 Automation provisioner for a fully configured infrastructure in AWS
Apache License 2.0
3 stars 7 forks source link

provision_lab.yml fails on Mac OS #14

Closed danielcayer closed 4 years ago

danielcayer commented 4 years ago

I wonder if this could be due to the fact that I'm running python version 3.7.4? (https://github.com/f5alliances/f5_provisioner/issues/9)

cayer@FLD-VM-00028141:~/Documents/f5_provisioner/provisioner$ _ansible-playbook provision_lab.yml -e @f5vars.yml -vvvvv

[output linesomitted for brevity]

TASK [user_accounts : Create User Account] ** task path: /Users/cayer/Documents/f5_provisioner/provisioner/roles/user_accounts/tasks/main.yml:9 fatal: [DANTESTWORKSHOP1-student1-ansible]: FAILED! => msg: 'An unhandled exception occurred while templating ''{{ admin_password | password_hash(salt=''sRvXWmR5BBwqRlih'') }}''. Error was a <class ''ansible.errors.AnsibleFilterError''>,original message: crypt.crypt not supported on Mac OS X/Darwin, install passlib python module' fatal: [DANTESTWORKSHOP1-student1-host1]: FAILED! => msg: 'An unhandled exception occurred while templating ''{{ admin_password | password_hash(salt=''sRvXWmR5BBwqRlih'') }}''. Error was a <class ''ansible.errors.AnsibleFilterError''>,original message: crypt.crypt not supported on Mac OS X/Darwin, install passlib python module' fatal: [DANTESTWORKSHOP1-student1-host2]: FAILED! => msg: 'An unhandled exception occurred while templating ''{{ admin_password | password_hash(salt=''sRvXWmR5BBwqRlih'') }}''. Error was a <class ''ansible.errors.AnsibleFilterError''>,original message: crypt.crypt not supported on Mac OS X/Darwin, install passlib python module

ansible --version ansible 2.8.3 config file = /Users/cayer/Documents/f5_provisioner/provisioner/ansible.cfg configured module search path = ['/Users/cayer/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.7/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.7.4 (default, Sep 7 2019, 18:27:02) [Clang 10.0.1 (clang-1001.0.46.4)] cayer@FLD-VM-00028141:~/Documents/f5_provisioner/provisioner$

pip install --upgrade passlib Requirement already up-to-date: passlib in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (1.7.1) cayer@FLD-VM-00028141:~/Documents/f5_provisioner/provisioner$

payalsin commented 4 years ago

Not sure looked online but solution is to have the passlib installed which you do.

Can you try using a docker container which has all the pre-requisites installed for running the provisioner, that way we move away from debugging individual environments

https://github.com/f5alliances/f5_provisioner/blob/master/docker/README.md

danielcayer commented 4 years ago

Thanks Payal ! I missed the fact that your repo already includes a docker container for the F5 Ansible provisioner! Nice! I will give it a try later.

Sincères salutations,

Daniel Cayer +1-613-868-1535<tel:+1-613-868-1535> | danielcayer@hotmail.commailto:danielcayer@hotmail.com

From: payalsin notifications@github.com Reply-To: f5alliances/f5_provisioner reply@reply.github.com Date: Monday, November 18, 2019 at 3:31 PM To: f5alliances/f5_provisioner f5_provisioner@noreply.github.com Cc: Daniel Cayer danielcayer@hotmail.com, Author author@noreply.github.com Subject: Re: [f5alliances/f5_provisioner] provision_lab.yml fails on Mac OS (#14)

Not sure looked online but solution is to have the passlib installed which you do.

Can you try using a docker container which has all the pre-requisites installed for running the provisioner, that way we move away from debugging individual environments

https://github.com/f5alliances/f5_provisioner/blob/master/docker/README.md

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/f5alliances/f5_provisioner/issues/14?email_source=notifications&email_token=AGX6DR2HWOADG2GNWATPVW3QUL3RNA5CNFSM4JOYZ2G2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEELZ6BA#issuecomment-555196164, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGX6DR5PZFB7HAMKUX7DBGDQUL3RNANCNFSM4JOYZ2GQ.

ericzji commented 4 years ago

Provisioner repo has been moved to devCentral: https://github.com/f5devcentral/FAS-provisioner. For any of the issue, we will fixit in devCentral Repo.

Please help duplicate the issue to devCentral repo. Thanks @danielcayer

ericzji commented 4 years ago

Migrated to https://github.com/f5devcentral/FAS-provisioner/issues/3